Is there a command equivalent to lsusb for blue-tooth connected devices?
1
vote
1
answer
143
views
On linux systems, the lsusb command produces a concise listing of connected USB devices.
$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 009: ID 2ce3:9563 Generic EMV Smartcard Reader
Bus 001 Device 007: ID 174f:181f Syntek Integrated Camera
Bus 001 Device 010: ID 8087:0033 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Is there a similar command for bluetooth devices?
**Update: reposnse to @totoaussi**
Thanks for pointing me at
hciconfig
It doesn't provide any info on individual devices, and indicates that it's looking at USB devices, not bluetooth. Nothing in hciconfig --help
indicates any command that does anything about bluetooth.
**Update: reposnse to @telcoM**
Thanks for pointing me at bluetoothctl
. Syntax is not quite what you indicate. bluetoothctl devices Paired
and bluetoothctl devices Connected
are not recognized commands. Perhaps you meant bluetoothctl paired-devices
?
bluetoothctl devices
does perform as you described:
$ bluetoothctl devices
Device D6:EB:4B:54:DF:54 MX Master 3S
Device D7:D9:8D:73:F6:95 MX MCHNCL
$ bluetoothctl paired-devices
Device D6:EB:4B:54:DF:54 MX Master 3S
Device D7:D9:8D:73:F6:95 MX MCHNCL
I suppose you could infer by running bluetoothctl devices
and bluetoothctl paired-devices
which devices were connected but not paired, which in my case above is none.
**But perhaps I should explain my purpose in going down this path.** I'd like to remap some keys on the MX Mechanical keyboard which lacks PrtSc and SysRq keys. I'm looking at the following idea https://www.reddit.com/r/logitech/comments/13neatr/comment/jsplvbk/ and trying to adapt it to a bluetooth setup.
With that purpose in mind, please note that the bluetoothctl
information is much less than what lsusb
provides, no vendor codes or model codes.
Asked by Steve Cohen
(519 rep)
Feb 13, 2025, 12:48 AM
Last activity: Feb 15, 2025, 01:49 PM
Last activity: Feb 15, 2025, 01:49 PM