Quelques retours d'utilisation du bluetooth pour améliorer ma connaissance des commandes disponibles et utiles sous Linux



Utilisation bluetooth sous Linux Mageia


J'ai quelques périphériques que je branche en Bluetooth à mon ordi, voir les infos et commandes utilisables les concernant

pour une fois, la doc' ubuntu est plutôt complète https://doc.ubuntu-fr.org/bluetooth




écouteur Q.1467

Déjà appairé au préalable, permet d'avoir du son dans les oreilles

Commandes utiles

hw-probe -all # fait apparaître
  "ps/2:05d6-000a-q-1467-avrcp": {
	"Bus": "PS/2",
	"Device": "Q.1467 (AVRCP)",
	"Status": "detected",
	"Type": "keyboard"
  },


Au branchement, journalctl -f indique





janv. 22 13:32:17 localhost kdeconnectd[16391]: No uuids found for "AC:F4:2C:0D:7F:65"
janv. 22 13:32:20 localhost caribou[16397]: daemon.vala:120: error in focus handler: Le délai d’attente est dépassé
janv. 22 13:32:23 localhost blueman-tray[17426]: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
janv. 22 13:32:24 localhost kernel: input: Q.1467 (AVRCP) as /devices/virtual/input/input37
janv. 22 13:32:24 localhost systemd-logind[855]: Watching system buttons on /dev/input/event21 (Q.1467 (AVRCP))
janv. 22 13:32:26 localhost bluetoothd[825]: /org/bluez/hci0/dev_FD_08_65_70_E1_13/fd0: fd(45) ready
janv. 22 13:32:45 localhost caribou[16397]: daemon.vala:120: error in focus handler: Le délai d’attente est dépassé
janv. 22 13:33:10 localhost caribou[16397]: daemon.vala:120: error in focus handler: Le délai d’attente est dépassé
janv. 22 13:33:35 localhost caribou[16397]: daemon.vala:120: error in focus handler: Le délai d’attente est dépassé
janv. 22 13:34:00 localhost caribou[16397]: daemon.vala:120: error in focus handler: Le délai d’attente est dépassé
janv. 22 13:34:17 localhost kdeconnectd[16391]: No uuids found for "AC:F4:2C:0D:7F:65"
janv. 22 13:35:17 localhost kdeconnectd[16391]: No uuids found for "AC:F4:2C:0D:7F:65"



faudrait vraiment désactiver les outils KDE quand je suis sous Gnome... kdeconnectd, retrouver ce qui fait l'indexation (baloo ?)
caribou : simplified in-place on-screen keyboard


systemctl status bluetooth

● bluetooth.service - Bluetooth service
	 Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
	 Active: active (running) since Thu 2026-01-15 16:12:28 CET; 1 week 0 days ago
 Invocation: 4234aa363b7f4e4189bf7d2a9d76a39e
	   Docs: man:bluetoothd(8)
   Main PID: 825 (bluetoothd)
	 Status: "Running"
	  Tasks: 1 (limit: 6342)
	 Memory: 3.9M (peak: 4.9M, swap: 1.2M, swap peak: 1.3M)
		CPU: 18min 21.350s
	 CGroup: /system.slice/bluetooth.service
			 └─825 /usr/libexec/bluetooth/bluetoothd

janv. 20 11:58:07 localhost bluetoothd[825]: src/adv_monitor.c:btd_adv_monitor_power_down() Unexpected NULL btd_adv_monitor_manager object upon power down
janv. 22 04:26:27 localhost bluetoothd[825]: /org/bluez/hci0/dev_FD_08_65_70_E1_13/fd0: fd(45) ready
janv. 22 04:35:18 localhost bluetoothd[825]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connect>
janv. 22 13:28:11 localhost bluetoothd[825]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for FD:08:65:70:E1:13: Device or resource busy
janv. 22 13:28:13 localhost bluetoothd[825]: /org/bluez/hci0/dev_FD_08_65_70_E1_13/fd0: fd(45) ready
janv. 22 13:28:43 localhost bluetoothd[825]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connect>
janv. 22 13:32:26 localhost bluetoothd[825]: /org/bluez/hci0/dev_FD_08_65_70_E1_13/fd0: fd(45) ready
janv. 22 19:00:05 localhost bluetoothd[825]: src/profile.c:ext_io_disconnected() Unable to get io data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connect>
janv. 22 19:24:00 localhost bluetoothd[825]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for FD:08:65:70:E1:13: Device or resource busy




janv. 22 19:24:02 localhost bluetoothd[825]: /org/bluez/hci0/dev_FD_08_65_70_E1_13/fd0: fd(45) ready

janv. 24 19:48:45 localhost bluetoothd[825]: /org/bluez/hci0/dev_FD_08_65_70_E1_13/sep1/fd0: fd(44) ready
janv. 24 19:48:45 localhost kernel: input: Q.1467 (AVRCP) as /devices/virtual/input/input44
janv. 24 19:48:45 localhost systemd-logind[855]: Watching system buttons on /dev/input/event21 (Q.1467 (AVRCP))


hciconfig -a
hci0:	Type: Primary  Bus: USB
	BD Address: 80:00:0B:12:55:8D  ACL MTU: 310:10  SCO MTU: 64:8
	UP RUNNING PSCAN INQUIRY 
	RX bytes:206291611 acl:275 sco:0 events:934355 errors:0
	TX bytes:9333079 acl:38439 sco:0 commands:23635 errors:0
	Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH HOLD SNIFF PARK 
	Link mode: PERIPHERAL ACCEPT 
	Name: 'localhost'
	Class: 0x7c010c
	Service Classes: Rendering, Capturing, Object Transfer, Audio, Telephony
	Device Class: Computer, Laptop
	HCI Version: 4.0 (0x6)  Revision: 0x1ebd
	LMP Version: 4.0 (0x6)  Subversion: 0xfc00
	Manufacturer: Intel Corp. (2)


dmesg | grep -i bluetooth
[   12.920169] Bluetooth: Core ver 2.22
[   12.920217] NET: Registered PF_BLUETOOTH protocol family
[   12.920219] Bluetooth: HCI device and connection manager initialized
[   12.920226] Bluetooth: HCI socket layer initialized
[   12.920229] Bluetooth: L2CAP socket layer initialized
[   12.920234] Bluetooth: SCO socket layer initialized
[   13.124200] Bluetooth: hci0: unexpected event for opcode 0x0000
[   16.581344] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   16.581353] Bluetooth: BNEP filters: protocol multicast
[   16.581359] Bluetooth: BNEP socket layer initialized
[   16.584985] Bluetooth: MGMT ver 1.23
[   16.662348] Bluetooth: RFCOMM TTY layer initialized
[   16.662360] Bluetooth: RFCOMM socket layer initialized
[   16.662367] Bluetooth: RFCOMM ver 1.11
[408364.242016] Bluetooth: hci0: unexpected event for opcode 0x0000
[408364.445262] Bluetooth: MGMT ver 1.23
[413778.076864]  videobuf2_vmalloc uvc libarc4 snd_ctl_led videobuf2_memops btusb videobuf2_v4l2 iwlwifi videobuf2_common spi_intel_platform irqbypass btmtk snd_hda_codec_idt snd_hda_codec_atihdmi iTCO_wdt snd_hda_codec_intelhdmi mei_hdcp snd_hda_codec_generic rapl spi_intel snd_hda_codec_hdmi intel_pmc_bxt btrtl btbcm iTCO_vendor_support mei_pxp ppdev intel_cstate cfg80211 hp_wmi i2c_i801 btintel videodev platform_profile intel_uncore snd_hda_intel i2c_smbus bluetooth wmi_bmof sparse_keymap snd_hda_codec i2c_mux mc snd_hda_core rfkill snd_intel_dspcfg snd_intel_sdw_acpi e1000e snd_hwdep mei_me snd_pcm snd_timer mei ptp snd pps_core lpc_ich soundcore tpm_infineon parport_pc parport tpm_tis tpm_tis_core tpm hp_accel libaescfb ecdh_generic ecc lis3lv02d wireless_hotkey joydev input_leds evdev msr i2c_dev fuse loop dm_mod configfs nfnetlink bpf_preload dmi_sysfs ip_tables x_tables ipv6 crc_ccitt rtsx_pci_sdmmc psmouse mmc_block rpmb_core atkbd mmc_core vivaldi_fmap polyval_clmulni sr_mod ghash_clmulni_intel cdrom serio_raw
[413778.083398]  videobuf2_vmalloc uvc libarc4 snd_ctl_led videobuf2_memops btusb videobuf2_v4l2 iwlwifi videobuf2_common spi_intel_platform irqbypass btmtk snd_hda_codec_idt snd_hda_codec_atihdmi iTCO_wdt snd_hda_codec_intelhdmi mei_hdcp snd_hda_codec_generic rapl spi_intel snd_hda_codec_hdmi intel_pmc_bxt btrtl btbcm iTCO_vendor_support mei_pxp ppdev intel_cstate cfg80211 hp_wmi i2c_i801 btintel videodev platform_profile intel_uncore snd_hda_intel i2c_smbus bluetooth wmi_bmof sparse_keymap snd_hda_codec i2c_mux mc snd_hda_core rfkill snd_intel_dspcfg snd_intel_sdw_acpi e1000e snd_hwdep mei_me snd_pcm snd_timer mei ptp snd pps_core lpc_ich soundcore tpm_infineon parport_pc parport tpm_tis tpm_tis_core tpm hp_accel libaescfb ecdh_generic ecc lis3lv02d wireless_hotkey joydev input_leds evdev msr i2c_dev fuse loop dm_mod configfs nfnetlink bpf_preload dmi_sysfs ip_tables x_tables ipv6 crc_ccitt rtsx_pci_sdmmc psmouse mmc_block rpmb_core atkbd mmc_core vivaldi_fmap polyval_clmulni sr_mod ghash_clmulni_intel cdrom serio_raw
[413781.701890] Bluetooth: hci0: unexpected event for opcode 0x0000
[413781.868057] Bluetooth: MGMT ver 1.23




hcitool scan
Scanning ...
	70:FC:8F:72:AC:DE	Freebox Player Mini v2
	78:AB:BB:F5:06:79	[TV]Samsung LED40


hcitool scan
Scanning ...
	FD:08:65:70:E1:13	Q.1467
	70:FC:8F:72:AC:DE	Freebox Player Mini v2
	78:AB:BB:F5:06:79	[TV]Samsung LED40
	D0:5A:00:A9:5D:12	n/a.Samsung LED40
[root@localhost caribou]# hcitool info FD:08:65:70:E1:13
Requesting information ...
	BD Address:  FD:08:65:70:E1:13
	Device Name: Q.1467
	LMP Version: 5.1 (0xa) LMP Subversion: 0x22bb
	Manufacturer: Zhuhai Jieli technology Co.,Ltd (1494)
	Features page 0: 0xbf 0xfe 0x8d 0xfa 0xd8 0x3d 0x79 0x83
		<3-slot packets> <5-slot packets> <encryption> <slot offset> 
		<timing accuracy> <role switch> <sniff mode> <RSSI> 
		<channel quality> <SCO link> <HV2 packets> <HV3 packets> 
		<u-law log> <A-law log> <CVSD> <power control> 
		<transparent SCO> <broadcast encrypt> <EDR ACL 2 Mbps> 
		<enhanced iscan> <interlaced iscan> <interlaced pscan> 
		<inquiry with RSSI> <extended SCO> <AFH cap. perip.> 
		<AFH cls. perip.> <LE support> <3-slot EDR ACL> 
		<5-slot EDR ACL> <pause encryption> <AFH cap. central> 
		<AFH cls. central> <EDR eSCO 2 Mbps> <extended inquiry> 
		<simple pairing> <encapsulated PDU> <err. data report> 
		<non-flush flag> <LSTO> <inquiry TX power> <extended features> 
	Features page 1: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
	Features page 2: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00


hcitool info 78:AB:BB:F5:06:79
Requesting information ...
	BD Address:  78:AB:BB:F5:06:79
	OUI Company: Samsung Electronics Co.,Ltd (78-AB-BB)
	Device Name: [TV]Samsung LED40
	LMP Version: 4.0 (0x6) LMP Subversion: 0x410e
	Manufacturer: Broadcom Corporation (15)
	Features page 0: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
		<3-slot packets> <5-slot packets> <encryption> <slot offset> 
		<timing accuracy> <role switch> <sniff mode> <RSSI> 
		<channel quality> <SCO link> <HV2 packets> <HV3 packets> 
		<u-law log> <A-law log> <CVSD> <paging scheme> <power control> 
		<transparent SCO> <broadcast encrypt> <EDR ACL 2 Mbps> 
		<EDR ACL 3 Mbps> <enhanced iscan> <interlaced iscan> 
		<interlaced pscan> <inquiry with RSSI> <extended SCO> 
		<EV4 packets> <EV5 packets> <AFH cap. perip.> 
		<AFH cls. perip.> <LE support> <3-slot EDR ACL> 
		<5-slot EDR ACL> <sniff subrating> <pause encryption> 
		<AFH cap. central> <AFH cls. central> <EDR eSCO 2 Mbps> 
		<EDR eSCO 3 Mbps> <3-slot EDR eSCO> <extended inquiry> 
		<LE and BR/EDR> <simple pairing> <encapsulated PDU> 
		<err. data report> <non-flush flag> <LSTO> <inquiry TX power> 
		<EPC> <extended features> 
	Features page 1: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
	Features page 2: 0x0f 0x00 0x00 0x00 0x00 0x00 0x00 0x00

hcitool con # écouteur connecté
Connections:
	< ACL 80:00:0B:12:55:8D handle 3840 state 2 lm CENTRAL 
	< ACL FD:08:65:70:E1:13 handle 34 state 1 lm CENTRAL AUTH ENCRYPT 

hcitool lq FD:08:65:70:E1:13
Link quality: 252


hcitool clock FD:08:65:70:E1:13
Clock:    0xc1a4fa5
Accuracy: 0.31 msec

# hcitool afh FD:08:65:70:E1:13
AFH map: 0x0f000000f0ffbff7ff7f

# hcitool tpl FD:08:65:70:E1:13
Current transmit power level: 8

# hcitool rssi FD:08:65:70:E1:13
RSSI return value: -3


# hcitool lp FD:08:65:70:E1:13
Link policy settings: RSWITCH HOLD SNIFF PARK 

# hcitool leinfo FD:08:65:70:E1:13
Requesting information ...
	Handle: 0 (0x0000)
	Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00


# hcitool lq FD:08:65:70:E1:13  # en s'étant déconnecté (appui 2 fois sur écouteur, parfois ça fonctionne)
Not connected.




There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki