如何判断我的笔记本电脑是否有蓝牙适配器?
dmesg | grep -i blue
[ 2.933062] usb 1-1.4: Product: Broadcom Bluetooth Device
journalctl -b
命令。 - x-yuri使用lsusb
:
sudo lsusb |grep Bluetooth
Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
sudo
吗?这里可以不用... - landronidmesg | grep Blue
得到:
[ 3.757769] Bluetooth: Core ver 2.16
[ 3.757798] Bluetooth: HCI device and connection manager initialized
[ 3.757802] Bluetooth: HCI socket layer initialized
[ 3.757805] Bluetooth: L2CAP socket layer initialized
[ 3.757814] Bluetooth: SCO socket layer initialized
[ 3.767297] Bluetooth: Generic Bluetooth USB driver ver 0.6
[ 4.332846] Bluetooth: RFCOMM TTY layer initialized
[ 4.332853] Bluetooth: RFCOMM socket layer initialized
[ 4.332856] Bluetooth: RFCOMM ver 1.11
[ 4.340772] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 4.340776] Bluetooth: BNEP filters: protocol multicast
sudo lsusb |grep Bluetooth
没有返回任何内容。[ 2.933062] usb 1-1.4: Product: Broadcom Bluetooth Device
这样的内容,则表示你有该设备。 - saji89dmesg | grep Blue
和 sudo lsusb |grep Bluetooth
时,你的蓝牙设备是否被禁用(通过硬件开关)? - saji89dmesg | grep -i bluetooth
命令时,仍然会显示蓝牙相关的信息。我认为这更与/etc/init/bluetooth.conf文件有关,而不是实际的硬件问题。 - Sergiy Kolodyazhnyysudo apt-get install bluez-utils
sudo /etc/init.d/bluetooth restart
geek@liv-inspiron:~$ hcitool dev
Devices:
hci0 00:11:95:00:1A:CF
lsusb |grep -i bluetooth
和dmesg | grep -i blue
之前或之后,都没有输出任何相关信息(即为空)。然而,蓝牙适配器实际上是存在的,我可以向其他设备发送文件...sudo apt-get install bluez-tools
。 - pd12没有确切的方法找到它。一些蓝牙模块不受 Linux 内核支持,可能无法被检测到。
通常情况下,你可以在 lsusb
和 lspci
输出中查找蓝牙模块。但即使一个模块受支持,也可能存在不包含 "bluetooth" 的输出。
例如,我有一个正常工作的 Atheros AR3012 蓝牙模块。
lsusb
显示为 13d3:3408 IMC Networks
。
起初它不受支持,我对内核进行了补丁以使其工作。现在这个补丁已应用于所有 Ubuntu 支持的内核。
如果你确定你拥有蓝牙,并且它在 Ubuntu 上不工作,请在终端中运行该命令将其报告给 launchpad。
ubuntu-bug linux
sudo cat /sys/kernel/debug/usb/devices
终端命令的输出。lshw
(列出硬件)并以不区分大小写的方式捕获单词 blue
,使用参数 -i
。sudo lshw | grep -i blue
$ hciconfig -a
[Thu Jul 14 21:56:21 2022] Bluetooth: Core ver 2.22
[Thu Jul 14 21:56:21 2022] Bluetooth: HCI device and connection manager initialized
[Thu Jul 14 21:56:21 2022] Bluetooth: HCI socket layer initialized
[Thu Jul 14 21:56:21 2022] Bluetooth: L2CAP socket layer initialized
[Thu Jul 14 21:56:21 2022] Bluetooth: SCO socket layer initialized
[Thu Jul 14 21:57:27 2022] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[Thu Jul 14 21:57:27 2022] Bluetooth: BNEP filters: protocol multicast
[Thu Jul 14 21:57:27 2022] Bluetooth: BNEP socket layer initialized