AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1503705
Accepted
jones0610
jones0610
Asked: 2024-02-16 09:58:39 +0800 CST2024-02-16 09:58:39 +0800 CST 2024-02-16 09:58:39 +0800 CST

蓝牙在华硕 ROG M8F Ubuntu 22.04.3LTS 上无法工作

  • 772

这个问题已被问过多次,但没有发布答案。

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

有想法吗?

22.04
  • 1 1 个回答
  • 92 Views

1 个回答

  • Voted
  1. Best Answer
    Daniel T
    2024-02-19T11:59:30+08:002024-02-19T11:59:30+08:00

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

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

    没有dmesg和journalctl错误意味着没有出现任何问题。这样driver=btusb驱动程序就可以正确加载并检测到内部设备。问题是 中的“DOWN” hciconfig,以及您在 中看到的相应内容rfkill list。

    • 1

相关问题

  • Ubuntu 22.04 Beta 中的慢速互联网连接 [关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve