概述

概述

概述

我有一台 ThinkPad 笔记本电脑,可以双启动到 Windows 11 和 Fedora 37。我以前可以在 Fedora 上使用蓝牙,但现在由于某种原因无法使用。我不知道到底是什么原因造成的,但现在当我尝试进入设置并打开蓝牙滑块时,滑块仍然是灰色的,并且蓝牙无法打开。当我启动到 Windows 时,蓝牙工作正常。蓝牙也出现在快速设置中,但当我单击它时它没有任何反应。

相关输出

在此输入图像描述

~ ❯ lsusb                                                                     06:24:45 PM
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 27c6:6594 Shenzhen Goodix Technology Co.,Ltd. Goodix USB2.0 MISC
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 04f2:b70f Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
~ ❯ systemctl status bluetooth                                                06:25:40 PM
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
     Active: active (running) since Wed 2022-11-16 18:02:08 EST; 24min ago
       Docs: man:bluetoothd(8)
   Main PID: 3092 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 17701)
     Memory: 1.8M
        CPU: 28ms
     CGroup: /system.slice/bluetooth.service
             └─3092 /usr/libexec/bluetooth/bluetoothd

Nov 16 18:02:08 <name of computer redacted> systemd[1]: Starting bluetooth.service - Bluetooth service...
Nov 16 18:02:08 <name of computer redacted> systemd[3092]: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)
Nov 16 18:02:08 <name of computer redacted> bluetoothd[3092]: Bluetooth daemon 5.65
Nov 16 18:02:08 <name of computer redacted> systemd[1]: Started bluetooth.service - Bluetooth service.
Nov 16 18:02:08 <name of computer redacted> bluetoothd[3092]: Starting SDP server
Nov 16 18:02:08 <name of computer redacted> bluetoothd[3092]: Bluetooth management interface 1.22 initialized
~ ❯ rfkill list all                                                           06:34:34 PM
0: tpacpi_bluetooth_sw: Bluetooth
    Soft blocked: no
    Hard blocked: no
2: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
5: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
~ ❯ lspci                                                               ✘ 0|1 06:36:12 PM
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.7 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 Non-Volatile memory controller: Sandisk Corp WD Black SN750 / PC SN730 NVMe SSD
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
03:00.0 Network controller: Qualcomm QCNFA765 Wireless Network Adapter (rev 01)
04:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] (rev d1)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
~ ❯ bluetoothctl                                                              06:45:16 PM
Agent registered
[bluetooth]# list
[bluetooth]# power on
No default controller available
[bluetooth]# 
~ ❯ sudo dmesg | egrep -i 'blue|firm'                                         06:44:55 PM
[sudo] password for connor: 
[    0.104249] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.265426] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    0.285468] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[    0.595185] xhci_hcd 0000:04:00.0: failed to load firmware renesas_usb_fw.mem, fallback to ROM
[    1.182529] psmouse serio1: trackpoint: Elan TrackPoint firmware: 0xa1, buttons: 3/3
[    2.991102] [drm] Loading DMUB firmware via PSP: version=0x0101001F
[    3.010931] [drm] Found VCN firmware Version ENC: 1.17 DEC: 5 VEP: 0 Revision: 2
[    3.010936] amdgpu 0000:05:00.0: amdgpu: Will use PSP to load VCN firmware
[    5.902782] Bluetooth: Core ver 2.22
[    5.902804] NET: Registered PF_BLUETOOTH protocol family
[    5.902806] Bluetooth: HCI device and connection manager initialized
[    5.902810] Bluetooth: HCI socket layer initialized
[    5.902812] Bluetooth: L2CAP socket layer initialized
[    5.902817] Bluetooth: SCO socket layer initialized
[    6.035188] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[    6.089221] Bluetooth: hci0: using rampatch file: qca/rampatch_usb_00130200.bin
[    6.089225] Bluetooth: hci0: QCA: patch rome 0x130200 build 0x4610, firmware rome 0x130200 build 0x17f3
[    6.774759] Bluetooth: hci0: using NVM file: qca/nvm_usb_00130200.bin
[    6.807908] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
[    6.991541] Bluetooth: hci0: unexpected cc 0x2060 length: 1 < 7
[    6.991549] Bluetooth: hci0: Opcode 0x2060 failed: -38
[    9.023413] Bluetooth: hci0: command tx timeout
[   54.397852] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   54.397856] Bluetooth: BNEP filters: protocol multicast
[   54.397860] Bluetooth: BNEP socket layer initialized
[   74.481545] Bluetooth: hci0: using rampatch file: qca/rampatch_usb_00130200.bin
[   74.481548] Bluetooth: hci0: QCA: patch rome 0x130200 build 0x4610, firmware rome 0x130200 build 0x17f3
[   75.170703] Bluetooth: hci0: using NVM file: qca/nvm_usb_00130200.bin
[   75.203046] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
[   75.386913] Bluetooth: hci0: unexpected cc 0x2060 length: 1 < 7
[   75.386993] Bluetooth: hci0: Opcode 0x2060 failed: -38
[   77.441514] Bluetooth: hci0: command tx timeout
[ 1301.808639] Bluetooth: hci0: using rampatch file: qca/rampatch_usb_00130200.bin
[ 1301.808644] Bluetooth: hci0: QCA: patch rome 0x130200 build 0x4610, firmware rome 0x130200 build 0x17f3
[ 1302.504022] Bluetooth: hci0: using NVM file: qca/nvm_usb_00130200.bin
[ 1302.536483] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
[ 1302.719734] Bluetooth: hci0: unexpected cc 0x2060 length: 1 < 7
[ 1302.719797] Bluetooth: hci0: Opcode 0x2060 failed: -38
[ 1304.769313] Bluetooth: hci0: command tx timeout
[ 2001.700180] Bluetooth: hci0: using rampatch file: qca/rampatch_usb_00130200.bin
[ 2001.700185] Bluetooth: hci0: QCA: patch rome 0x130200 build 0x4610, firmware rome 0x130200 build 0x17f3
[ 2002.396036] Bluetooth: hci0: using NVM file: qca/nvm_usb_00130200.bin
[ 2002.428669] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
[ 2002.851478] Bluetooth: hci0: unexpected cc 0x2060 length: 1 < 7
[ 2002.851524] Bluetooth: hci0: Opcode 0x2060 failed: -38
[ 2004.873481] Bluetooth: hci0: command tx timeout
~ ❯ sudo btmgmt                                                                                                                                                                                                                    06:51:25 PM
[sudo] password for connor: 
[mgmt]# extinfo
Extended index list with 0 items

[mgmt]# 
~ ❯ lsmod | grep btusb                                                                                                                                                                                                      1m 19s 06:55:20 PM
btusb                  65536  0
btrtl                  28672  1 btusb
btbcm                  24576  1 btusb
btintel                49152  1 btusb
btmtk                  16384  1 btusb
bluetooth             880640  15 btrtl,btmtk,btintel,btbcm,bnep,btusb
~ ❯      

其他注意事项

我还尝试过重新启动蓝牙服务,禁用它并在重新启动后手动启动它。我确保在 Windows 控制面板设置中禁用安全启动并禁用快速启动,这是另一个论坛建议的。我用 阻止和解除阻止蓝牙sudo rfkill block bluetooth && sudo rfkill unblock bluetooth。如果需要任何其他信息,请告诉我。

答案1

问题似乎是我使用的网卡(高通)不能在 Linux 上开箱即用(至少不能用于蓝牙 - WiFi 可以工作)。我做了一些搜索,看看是否可以找到高通卡的驱动程序,但什么也没找到。

我的解决方案是花大约 20 美元购买一张 Intel 卡,它开箱即用,支持 Linux。安装该卡后,蓝牙可以在 Windows 11 和 Fedora 37 上运行。对于我的 ThinkPad 来说,安装非常简单。

答案2

据我所知,这个问题似乎在大多数 Linux 发行版上都很普遍。我还没有找到真正有效的“修复方法”。我自己也遇到同样的问题。

您会发现围绕此问题还有许多其他问题。

它通常可以归结为“操作系统可以看到它的存在(请参阅“lsmod”),但不允许它以任何方式实际运行。”

来自各地的建议包括:

  • 运行“rfkill unblock(您的蓝牙设备)”(运行“rfkill list”以显示设备,尽管蓝牙开发人员可能不会显示...)
  • 尝试安装驱动程序
  • 运行“systemctl启用蓝牙”
  • 运行“服务蓝牙启用”

还有其他一些人。

我已经尝试了尽可能多的方法,但没有一个对我有用。

也许你会有更好的运气。如果您发现其他有效的方法,请告诉我。

相关内容