蓝牙无法在 ASUS ROG M8F Ubuntu 22.04.3LTS 上使用

蓝牙无法在 ASUS ROG M8F Ubuntu 22.04.3LTS 上使用

这个问题已被问过几次,但没有答案。

无法在 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>

显示服务正常运行。但是……右上角状态栏中没有蓝牙图标(就像我的使用蓝牙适配器的 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 时。

主板规格是英特尔 Z170 芯片组上的 bt v4.0/3.0+HS。

问题:在 Ubuntu 的 BT 设置中,蓝牙已打开,设备搜索轮正在旋转,但始终找不到任何设备。即使我安装了 BT 加密狗,情况也是如此。旁边的桌面是没有集成 BT 的 ASUS ROG M8H 主板。安装加密狗后,它会立即连接到选定的 BT 设备。两台机器都运行相同版本的 Ubuntu。

ASUS 有适用于 bt 的固件,但仅限 Microsoft 格式。他们明确表示不支持 *NIX,但显然我们中的许多人在 ROG 机器上运行 Ubuntu 都没有问题。

我希望能够在每台台式机上通过蓝牙运行一个扬声器,而不是使用四套扬声器,每台机器都硬连线一个。是的,我知道我一次只能将设备与一台 PC 配对。

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

正如预期的那样,具有板载蓝牙功能

$ 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

有想法吗?

答案1

您的驱动程序已成功安装。您只需启用该设备:

  1. rfkill unblock all
  2. hciconfig并看到“DOWN”变成了“UP RUNNING PSCAN”
  3. bluetoothctl power on
  4. bluetoothctl scan on并查看附近的设备

没有dmesgjournalctl错误意味着没有出错。您有driver=btusb,所以驱动程序已正确加载并检测到内部设备。问题出在 中的“DOWN” hciconfig,以及您将在 中看到的相应内容rfkill list

相关内容