这个问题已被问过多次,但没有发布答案。
无法在 Ubuntu 23.10(华硕 ROG ROG Flow X13 GV302XV)上打开蓝牙似乎是一个很好的答案,但在我的情况下不起作用。
sudo dkms install btusb/4.1
在构建结束时失败。然而,这个答案是针对 USB BT 连接的问题。就我而言,蓝牙是在主板上实现的。
$ sudo service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor pre>
Active: active (running) since Fri 2024-02-16 21:38:23 PST; 1 day 21h ago
Docs: man:bluetoothd(8)
Main PID: 1905 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 76903)
Memory: 2.3M
CPU: 172ms
CGroup: /system.slice/bluetooth.service
└─1905 /usr/lib/bluetooth/bluetoothd
Feb 18 17:30:50 Ubuntu bluetoothd[1905]: Endpoint unregistered: sender=:1.89 pa>
Feb 18 17:30:50 Ubuntu bluetoothd[1905]: Endpoint unregistered: sender=:1.89 pa>
表明服务运行正常。但是....右上角状态栏中没有蓝牙图标(因为它在我的使用BT适配器的M8H机器上)
sudo lshw | grep blue -C 8
configuration: driver=usbhid maxpower=500mA speed=12Mbit/s
*-usb:1
description: Bluetooth wireless interface
product: Qualcomm Bluetooth 4.1
vendor: ASUSTek Computer, Inc.
physical id: 9
bus info: usb@1:9
version: 0.01
capabilities: bluetooth usb-2.01
configuration: driver=btusb maxpower=100mA speed=12Mbit/s
*-usbhost:1
product: xHCI Host Controller
vendor: Linux 5.15.0-94-generic xhci-hcd
physical id: 1
bus info: usb@2
logical name: usb2
version: 5.15
蓝牙以前可以在这台机器上运行,但在安装早期版本的 Ubuntu 时可能会出现这种情况。
主板规格为 bt v4.0/3.0+HS,采用 Intel Z170 芯片组。
问题:在 Ubuntu 的 BT 设置中,蓝牙已打开,设备搜索轮正在旋转,但没有找到任何设备。即使我安装了 BT 适配器也是如此。旁边的台式机是华硕 ROG M8H 主板,没有集成 BT。安装加密狗后,它会立即连接到选定的 BT 设备。两台机器都运行相同版本的 Ubuntu。
华硕有 bt 固件,但只有 Microsoft 格式。他们很清楚他们不支持*NIX,但显然我们很多人在 ROG 机器上运行 Ubuntu 都没有问题。
我希望能够通过 BT 在每台桌面上仅运行一个扬声器,而不是使用四个扬声器组,每个扬声器组硬连线到每台计算机。是的,我知道我一次只能将该设备与一台电脑配对。
sudo dmesg|grep Blue
[165140.288091] Bluetooth: hci0: unexpected event for opcode 0x2005
bluetoothctl
启动了,但我对该工具的了解还不够,无法有效地使用它。看起来工作正常。只是没有发现任何设备(是的,wifi 天线已连接。手册有点暗示 BT 需要它)
$ hciconfig
hci0: Type: Primary Bus: USB
BD Address: C8:FF:28:31:81:72 ACL MTU: 1024:8 SCO MTU: 50:8
DOWN
RX bytes:13041 acl:0 sco:0 events:2012 errors:0
TX bytes:17186 acl:0 sco:0 commands:1506 errors:0
正如机载 BT 功能所预期的那样
$ btmgmt info
Index list with 1 item
hci0: Primary controller
addr C8:FF:28:31:81:72 version 7 manufacturer 29 class 0x000000
supported settings: powered connectable fast-connectable discoverable bondable link-security ssp br/edr hs le advertising secure-conn debug-keys privacy static-addr phy-configuration
current settings: ssp br/edr le secure-conn
name Ubuntu
short name
$ bluetoothctl list
Controller C8:FF:28:31:81:72 Ubuntu [default]
$ rfkill unblock all
frankie@Ubuntu:~$ hciconfig
hci0: Type: Primary Bus: USB
BD Address: C8:FF:28:31:81:72 ACL MTU: 1024:8 SCO MTU: 50:8
DOWN
RX bytes:13041 acl:0 sco:0 events:2012 errors:0
TX bytes:17195 acl:0 sco:0 commands:1509 errors:0
frankie@Ubuntu:~$ bluetoothctl power on
Failed to set power on: org.bluez.Error.Busy
frankie@Ubuntu:~$ bluetoothctl scan on
Failed to start discovery: org.bluez.Error.NotReady
$ bluetoothctl
Agent registered
[CHG] Controller C8:FF:28:31:81:72 Pairable: yes
[bluetooth]# list
Controller C8:FF:28:31:81:72 Ubuntu [default]
[bluetooth]# show
Controller C8:FF:28:31:81:72 (public)
Name: Ubuntu
Alias: Ubuntu
Class: 0x00000000
Powered: no
Discoverable: no
DiscoverableTimeout: 0x00000000
Pairable: yes
UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
UUID: IrMC Sync (00001104-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (00005005-0000-1000-8000-0002ee000001)
UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Handsfree Audio Gateway (0000111f-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: OBEX File Transfer (00001106-0000-1000-8000-00805f9b34fb)
Modalias: usb:v1D6Bp0246d0540
Discovering: no
Roles: central
Roles: peripheral
Advertising Features:
ActiveInstances: 0x00 (0)
SupportedInstances: 0x05 (5)
SupportedIncludes: tx-power
SupportedIncludes: appearance
SupportedIncludes: local-name
[bluetooth]# devices
[bluetooth]# power on
Failed to set power on: org.bluez.Error.Busy
有想法吗?
您的驱动程序已成功安装。您只需要启用该设备:
rfkill unblock all
hciconfig
并看到“DOWN”变成了“UP RUNNING PSCAN”bluetoothctl power on
bluetoothctl scan on
并查看附近的设备没有
dmesg
和journalctl
错误意味着没有出现任何问题。这样driver=btusb
驱动程序就可以正确加载并检测到内部设备。问题是 中的“DOWN”hciconfig
,以及您在 中看到的相应内容rfkill list
。