#1 Hier à 09:12
- Nico89
Raccourci clavier pour activer/désactiver bluetooth
Bonjour à tous,
Je dispose d'une touche "bluetooth" qui n'a aucun effet sur le système. Je souhaiterais pouvoir la rendre effective pour activer/désactiver le bluetooth.
Pourriez-vous m'indiquer la marche à suivre svp ?
En vous remerciant
crdlt
MSI Modern 15 - 32go - i7
Hors ligne
#2 Hier à 09:14
- xubu1957
Re : Raccourci clavier pour activer/désactiver bluetooth
Bonjour,
Il faudrait fournir, en te servant du Retour utilisable de commande :
uname -a; lspci -nnk | grep -iA3 net; lsusb; sudo dmesg | grep -i bluetooth; sudo dmesg | grep -i firmware; lsmod | grep bluetooth
dpkg -l | grep blue
rfkill list all
sudo service bluetooth status | cat
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#3 Hier à 10:09
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
Bonjour,
Alors voici les éléments demandés :
toto@titi:~$ uname -a; lspci -nnk | grep -iA3 net; lsusb; sudo dmesg | grep -i bluetooth; sudo dmesg | grep -i firmware; lsmod | grep bluetooth
Linux Lui 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
00:14.3 Network controller [0280]: Intel Corporation Raptor Lake PCH CNVi WiFi [8086:51f1] (rev 01)
Subsystem: Intel Corporation Raptor Lake PCH CNVi WiFi [8086:0094]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
--
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1462:1461]
Kernel driver in use: r8169
Kernel modules: r8169
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 04f2:b832 Chicony Electronics Co., Ltd HD Webcam
Bus 001 Device 003: ID 8087:0033 Intel Corp. AX211 Bluetooth
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
[ 19.315532] Bluetooth: Core ver 2.22
[ 19.315561] NET: Registered PF_BLUETOOTH protocol family
[ 19.315563] Bluetooth: HCI device and connection manager initialized
[ 19.315568] Bluetooth: HCI socket layer initialized
[ 19.315570] Bluetooth: L2CAP socket layer initialized
[ 19.315574] Bluetooth: SCO socket layer initialized
[ 19.360765] Bluetooth: hci0: Device revision is 0
[ 19.360772] Bluetooth: hci0: Secure boot is enabled
[ 19.360773] Bluetooth: hci0: OTP lock is enabled
[ 19.360774] Bluetooth: hci0: API lock is enabled
[ 19.360775] Bluetooth: hci0: Debug lock is disabled
[ 19.360777] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[ 19.360779] Bluetooth: hci0: Bootloader timestamp 2019.40 buildtype 1 build 38
[ 19.361027] Bluetooth: hci0: DSM reset method type: 0x00
[ 19.368431] Bluetooth: hci0: Found device firmware: intel/ibt-0040-0041.sfi
[ 19.368456] Bluetooth: hci0: Boot Address: 0x100800
[ 19.368457] Bluetooth: hci0: Firmware Version: 60-48.23
[ 20.366232] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 20.366237] Bluetooth: BNEP filters: protocol multicast
[ 20.366242] Bluetooth: BNEP socket layer initialized
[ 20.912004] Bluetooth: hci0: Waiting for firmware download to complete
[ 20.912017] Bluetooth: hci0: Firmware loaded in 1507402 usecs
[ 20.912173] Bluetooth: hci0: Waiting for device to boot
[ 20.927750] Bluetooth: hci0: Device booted in 15324 usecs
[ 20.927793] Bluetooth: hci0: Malformed MSFT vendor event: 0x02
[ 20.932373] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-0040-0041.ddc
[ 20.934938] Bluetooth: hci0: Applying Intel DDC parameters completed
[ 20.937983] Bluetooth: hci0: Firmware timestamp 2023.48 buildtype 1 build 75324
[ 20.937991] Bluetooth: hci0: Firmware SHA1: 0x23bac558
[ 21.011306] Bluetooth: MGMT ver 1.22
[ 23.131077] Bluetooth: RFCOMM TTY layer initialized
[ 23.131088] Bluetooth: RFCOMM socket layer initialized
[ 23.131096] Bluetooth: RFCOMM ver 1.11
[ 68.021750] Bluetooth: hci0: Device revision is 0
[ 68.021763] Bluetooth: hci0: Secure boot is enabled
[ 68.021766] Bluetooth: hci0: OTP lock is enabled
[ 68.021769] Bluetooth: hci0: API lock is enabled
[ 68.021771] Bluetooth: hci0: Debug lock is disabled
[ 68.021774] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[ 68.021779] Bluetooth: hci0: Bootloader timestamp 2019.40 buildtype 1 build 38
[ 68.022921] Bluetooth: hci0: DSM reset method type: 0x00
[ 68.025584] Bluetooth: hci0: Found device firmware: intel/ibt-0040-0041.sfi
[ 68.025677] Bluetooth: hci0: Boot Address: 0x100800
[ 68.025683] Bluetooth: hci0: Firmware Version: 60-48.23
[ 70.041319] Bluetooth: hci0: Waiting for firmware download to complete
[ 70.041529] Bluetooth: hci0: Firmware loaded in 1968681 usecs
[ 70.041587] Bluetooth: hci0: Waiting for device to boot
[ 70.057666] Bluetooth: hci0: Device booted in 15754 usecs
[ 70.057669] Bluetooth: hci0: Malformed MSFT vendor event: 0x02
[ 70.057707] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-0040-0041.ddc
[ 70.059693] Bluetooth: hci0: Applying Intel DDC parameters completed
[ 70.062731] Bluetooth: hci0: Firmware timestamp 2023.48 buildtype 1 build 75324
[ 70.062740] Bluetooth: hci0: Firmware SHA1: 0x23bac558
[ 70.135796] Bluetooth: MGMT ver 1.22
[ 19.313382] iwlwifi 0000:00:14.3: loaded firmware version 86.fb5c9aeb.0 so-a0-gf-a0-86.ucode op_mode iwlmvm
[ 19.318283] msi_ec: Unable to find a valid firmware version!
[ 19.360777] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[ 19.368431] Bluetooth: hci0: Found device firmware: intel/ibt-0040-0041.sfi
[ 19.368457] Bluetooth: hci0: Firmware Version: 60-48.23
[ 19.941800] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/adlp_dmc.bin (v2.20)
[ 19.960038] i915 0000:00:02.0: [drm] GT0: GuC firmware i915/adlp_guc_70.bin version 70.20.0
[ 19.960046] i915 0000:00:02.0: [drm] GT0: HuC firmware i915/tgl_huc.bin version 7.9.3
[ 20.912004] Bluetooth: hci0: Waiting for firmware download to complete
[ 20.912017] Bluetooth: hci0: Firmware loaded in 1507402 usecs
[ 20.937983] Bluetooth: hci0: Firmware timestamp 2023.48 buildtype 1 build 75324
[ 20.937991] Bluetooth: hci0: Firmware SHA1: 0x23bac558
[ 66.654266] i915 0000:00:02.0: [drm] GT0: GuC firmware i915/adlp_guc_70.bin version 70.20.0
[ 66.654276] i915 0000:00:02.0: [drm] GT0: HuC firmware i915/tgl_huc.bin version 7.9.3
[ 68.021774] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[ 68.025584] Bluetooth: hci0: Found device firmware: intel/ibt-0040-0041.sfi
[ 68.025683] Bluetooth: hci0: Firmware Version: 60-48.23
[ 70.041319] Bluetooth: hci0: Waiting for firmware download to complete
[ 70.041529] Bluetooth: hci0: Firmware loaded in 1968681 usecs
[ 70.062731] Bluetooth: hci0: Firmware timestamp 2023.48 buildtype 1 build 75324
[ 70.062740] Bluetooth: hci0: Firmware SHA1: 0x23bac558
bluetooth 1028096 44 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm
ecdh_generic 16384 2 bluetooth
toto@titi:~$
toto@titi:~$ dpkg -l | grep blue
ii blueman 2.4.4+ubuntu2+xia amd64 Graphical bluetooth manager
ii bluetooth 5.72-0ubuntu5 all Bluetooth support (metapackage)
ii bluez 5.72-0ubuntu5 amd64 Bluetooth tools and daemons
ii bluez-cups 5.72-0ubuntu5 amd64 Bluetooth printer driver for CUPS
ii bluez-obexd 5.72-0ubuntu5 amd64 bluez obex daemon
ii libbluetooth3:amd64 5.72-0ubuntu5 amd64 Library to use the BlueZ Linux Bluetooth stack
ii libspa-0.2-bluetooth:amd64 1.0.5-1ubuntu2 amd64 libraries for the PipeWire multimedia server - bluetooth plugins
toto@titi:~$
toto@titi:~$ rfkill list all
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
toto@titi:~$
toto@titi:~$ sudo service bluetooth status | cat
● bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
Active: active (running) since Fri 2025-03-14 07:47:42 CET; 2h 19min ago
Docs: man:bluetoothd(8)
Main PID: 888 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 18767)
Memory: 3.5M (peak: 4.4M)
CPU: 119ms
CGroup: /system.slice/bluetooth.service
└─888 /usr/libexec/bluetooth/bluetoothd
mars 14 07:49:52 titi bluetoothd[888]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource/aptx_ll_1
mars 14 07:49:52 titi bluetoothd[888]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource/aptx_ll_0
mars 14 07:49:52 titi bluetoothd[888]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
mars 14 07:49:52 titi bluetoothd[888]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
mars 14 07:49:52 titi bluetoothd[888]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource/faststream
mars 14 07:49:52 titi bluetoothd[888]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource/faststream_duplex
mars 14 07:49:52 titi bluetoothd[888]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSink/opus_05
mars 14 07:49:52 titi bluetoothd[888]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource/opus_05
mars 14 07:49:52 titi bluetoothd[888]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSink/opus_05_duplex
mars 14 07:49:52 titi bluetoothd[888]: Endpoint registered: sender=:1.48 path=/MediaEndpoint/A2DPSource/opus_05_duplex
toto@titi:~$
MSI Modern 15 - 32go - i7
Hors ligne
#4 Hier à 11:01
- iznobe
Re : Raccourci clavier pour activer/désactiver bluetooth
Bonjour , probablement que le raccourci clavier de cette touche est en fait affecter à autre chose .
il suffit d ' aller dans les parametres , puis de rechercher " clavier " ou " raccourci " pour avoir la config des raccourcis .
verifier si cette touche est affectée actuellement a un raccourci , si non modiifier , si oui , ba selon a quoi est affecté le raccourci ...
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#5 Hier à 11:33
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
Bonjour,
J'ai déjà été dans "raccourci". je ne vois aucune référence à l'activation/désactivation du bluetooth. Du coup je ne vois pas comment assigner cette touche (ou même une autre).
Ou alors je suis passé à côté...
MSI Modern 15 - 32go - i7
Hors ligne
#6 Hier à 11:37
- iznobe
Re : Raccourci clavier pour activer/désactiver bluetooth
Pour le moment , il faut vérifier si cette touche est affecté a un raccourci quelconque ... si oui lequel ?
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#7 Hier à 11:41
- xubu1957
Re : Raccourci clavier pour activer/désactiver bluetooth
Montre :
xinput list
cat /etc/default/keyboard
@iznobe
Tenter :
sudo dpkg-reconfigure keyboard-configuration
?
Doc tutoriel/configurer_le_clavier
Dernière modification par xubu1957 (Hier à 11:44)
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#8 Hier à 12:50
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
toto@titi:~$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="fr"
XKBVARIANT="latin9"
XKBOPTIONS=""
BACKSPACE="guess"
toto@titi:~$
Dernière modification par Nico89 (Hier à 12:50)
MSI Modern 15 - 32go - i7
Hors ligne
#9 Hier à 12:52
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
toto@titi:~$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ LITE0650:00 04CA:2642 Touchpad id=9 [slave pointer (2)]
⎜ ↳ LITE0650:00 04CA:2642 Mouse id=10 [slave pointer (2)]
⎜ ↳ Logitech M275/M280 id=15 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Video Bus id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ Intel HID events id=12 [slave keyboard (3)]
↳ Intel HID 5 button array id=14 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
↳ MSI WMI hotkeys id=14 [slave keyboard (3)]
toto@titi:~$
MSI Modern 15 - 32go - i7
Hors ligne
#10 Hier à 14:54
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
alors j'ai lancé la commande :
xinput test 11
Lorsque j'appui sur la touche du bluetooth, elle ne me ressort que dal. (ps : pour d'autres touches j'ai un retour de commande)
Pareil pour :
xinput test 14
MSI Modern 15 - 32go - i7
Hors ligne
#11 Hier à 15:04
- iznobe
Re : Raccourci clavier pour activer/désactiver bluetooth
@iznobe
Tenter :
sudo dpkg-reconfigure keyboard-configuration
?
Salut xubu , je dirais que cela ne me parait necessaire , vu que le fichier de config et la config en general me parraissent correct .
alors j'ai lancé la commande :
xinput test 11
Lorsque j'appui sur la touche du bluetooth, elle ne me ressort que dal. (ps : pour d'autres touches j'ai un retour de commande)
Pareil pour :
xinput test 14
ok , je suppose donc , que ces touches spéciales ne sont pas configurés .
tu peux donc en toute logique te servir de cette touche pour executer une commande ( comme justement celle qui permet de desactiver le bluetooth : " rfkill " )
la commande a donner en argument à la touche desirée sera :
rfkill toggle bluetooth
quand c' est " start " , ca stop , quand c' est " stop " ca start le bluetooth .
Dernière modification par iznobe (Hier à 15:10)
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#12 Hier à 15:33
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
J'ai créé un nouveau raccourci avec ta commande. Impossible d'y assigner cette touche bluetooth.
En revanche j'ai testé avec une autre touche ; ça fonctionne comme tu l'as indiqué.
Pour la touche spécifique bluetooth, c'est comme si elle n'était pas détectée.
Je peux préciser une choses : la touche bluetooth fonctionne sous windows.
MSI Modern 15 - 32go - i7
Hors ligne
#13 Hier à 15:37
- iznobe
Re : Raccourci clavier pour activer/désactiver bluetooth
si la touche n' est pas détectée c ' est que tu as un clavier " spécial " .
je ne saurais pas comment il faut le configurer pour que cela fonctionne sous ubuntu
Peut être qu ' en cherchant sur le net avec le modèle précis de ta machine , il y aurait des résultats .
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#14 Hier à 15:39
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
j'ai tenté une reconfiguration du clavier comme l'a suggeré xubu1957, mais ça ne donne rien non plus.
MSI Modern 15 - 32go - i7
Hors ligne
#15 Hier à 15:42
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
on ne devrait quand même pas détecter un code avec xinput ?
C'est comme si la touche n'existait pas
MSI Modern 15 - 32go - i7
Hors ligne
#16 Hier à 15:44
- iznobe
Re : Raccourci clavier pour activer/désactiver bluetooth
oui njustement , si aucun code ne sort , c' est que la " config " clavier ne prend pas en charge cette touche .
il faudrait voir quel clavier / machine c' est , et chercher sur le net la config appropriée .
A noter que tu peux tester differentes config de clavier dans la section approprié , forcément au moins une devrait prendre en charge cette touche .
Mais il y a enormement de possibilité ....
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#17 Hier à 15:51
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
A noter que tu peux tester differentes config de clavier dans la section approprié , forcément au moins une devrait prendre en charge cette touche .
Mais il y a enormement de possibilité ....
arrf il y a toujours un truc qui merdouille.
qu'entends tu par là ? tester d'autres disposition de clavier ? allemand, finois, ... et voir si cette touche est reconnue ?
MSI Modern 15 - 32go - i7
Hors ligne
#18 Hier à 16:05
- iznobe
Re : Raccourci clavier pour activer/désactiver bluetooth
qu'entends tu par là ? tester d'autres disposition de clavier ? allemand, finois, ... et voir si cette touche est reconnue ?
oui , mais pas dans d' autres langues ( , sauf si tu geres ) toujours en français .
latin9 , azerty , bepo afnor , ce genre de chose .
Mais le mieux c' est de chercher sur le net avec le modèle précis de ton ordi ( 3 fois déjà que je le dis ) . car il y a beaucoup de possibilités à la main ...
retour COMPLET et utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .
Hors ligne
#19 Hier à 16:32
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
ok, je vais quand même chercher.
J'ai bien compris que ça dépendait de mon PC. Je chercherais ce soir si je trouve quelques chose.
Je vous tiens au jus
MSI Modern 15 - 32go - i7
Hors ligne
#20 Hier à 16:43
- ylag
Re : Raccourci clavier pour activer/désactiver bluetooth
Bonjour,
Tu piurrais utiliser la commande xev pour voir ce qui se passe lorsque tu presses cette clé.
Voir cette section de la doc : 4.2 Identifier les touches
A+
Dernière modification par ylag (Hier à 16:45)
Hors ligne
#21 Hier à 18:55
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
Je en les ai pas tous fait, mais le changement de clavier ne donne pas grand chose pour le moment.
pour xev, déjà testé, pareil que pour xinput, aucune détection
MSI Modern 15 - 32go - i7
Hors ligne
#22 Hier à 19:27
- xubu1957
Re : Raccourci clavier pour activer/désactiver bluetooth
Montre :
echo $XDG_SESSION_TYPE
pour voir si c'est Wayland ou x11.
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#23 Hier à 19:27
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
Je ne sais pas si ça peut aider, j'ai relancé windows et installé un logiciel de keycode. L'appui sur la touche du bluetooth remonte le code 57h
Je pense que c'est de l'hexadecimal.
MSI Modern 15 - 32go - i7
Hors ligne
#24 Hier à 19:28
- Nico89
Re : Raccourci clavier pour activer/désactiver bluetooth
toto@titi:~$ echo $XDG_SESSION_TYPE
x11
toto@titi:~$
MSI Modern 15 - 32go - i7
Hors ligne
#25 Hier à 19:32
- xubu1957
Re : Raccourci clavier pour activer/désactiver bluetooth
C'est toujours ce duo de cartes graphiques.
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne