我遇到了一个典型的问题。如您在图片中看到的,我的蓝牙处于打开状态,并且处于发现模式。我的手机放在它旁边,它也处于发现模式,附近的设备也可以看到它。
由于某种原因,我的 ubuntu 无法识别其他蓝牙设备,例如我的手机。此外,我的手机无法看到 ubuntu,尽管它显示它已打开并可发现。
我的蓝牙是 Intel 9260NGW - (规格 M.2 2230),它也有 wifi。Wifi 工作正常。它能够看到所有网络并能够连接,但我的蓝牙有问题。
我也做过
sudo rmmod btusb
sudo modprobe btusb
sudo systemctl stop bluetooth.service
sudo systemctl start bluetooth.service
但没有解决。
以下是一些用于调试的命令的输出。
amarcus@amarcus-desktop:~$ sudo systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-07-06 14:43:02 IST; 59s ago
Docs: man:bluetoothd(8)
Main PID: 940 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 38346)
Memory: 1.9M
CGroup: /system.slice/bluetooth.service
└─940 /usr/lib/bluetooth/bluetoothd
Jul 06 14:43:02 amarcus-desktop systemd[1]: Starting Bluetooth service...
Jul 06 14:43:02 amarcus-desktop bluetoothd[940]: Bluetooth daemon 5.56
Jul 06 14:43:02 amarcus-desktop systemd[1]: Started Bluetooth service.
Jul 06 14:43:02 amarcus-desktop bluetoothd[940]: Starting SDP server
Jul 06 14:43:02 amarcus-desktop bluetoothd[940]: Bluetooth management interface 1.19 initialized
Jul 06 14:43:19 amarcus-desktop bluetoothd[940]: Endpoint registered: sender=:1.99 path=/MediaEndpoint/A2DPSink/sbc
Jul 06 14:43:19 amarcus-desktop bluetoothd[940]: Endpoint registered: sender=:1.99 path=/MediaEndpoint/A2DPSource/sbc
amarcus@amarcus-desktop:~$ lsmod | grep bt
btusb 61440 0
btrtl 24576 1 btusb
btbcm 16384 1 btusb
btintel 28672 1 btusb
bluetooth 655360 43 btrtl,btintel,btbcm,bnep,btusb,rfcomm
amarcus@amarcus-desktop:~$ uname -a
Linux amarcus-desktop 5.11.0-22-generic #23-Ubuntu SMP Thu Jun 17 00:34:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
amarcus@amarcus-desktop:~$ sudo rfkill list
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
amarcus@amarcus-desktop:~$ sudo dmesg | grep Blue
[ 3.307091] Bluetooth: Core ver 2.22
[ 3.307115] Bluetooth: HCI device and connection manager initialized
[ 3.307117] Bluetooth: HCI socket layer initialized
[ 3.307119] Bluetooth: L2CAP socket layer initialized
[ 3.307121] Bluetooth: SCO socket layer initialized
[ 3.319768] Bluetooth: hci0: Firmware revision 0.1 build 168 week 48 2020
[ 4.668924] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 4.668928] Bluetooth: BNEP filters: protocol multicast
[ 4.668931] Bluetooth: BNEP socket layer initialized
[ 21.515524] Bluetooth: RFCOMM TTY layer initialized
[ 21.515530] Bluetooth: RFCOMM socket layer initialized
[ 21.515534] Bluetooth: RFCOMM ver 1.11
amarcus@amarcus-desktop:~$ sudo apt --only-upgrade install bluez
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
bluez is already the newest version (5.56-0ubuntu4.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.