这是来自的转发我在 Arch 论坛上的帖子和我的 reddit 帖子。
你好,
我正在运行全新安装的 Arch。我使用 Logitech 的 MX Master 3S 鼠标和 MX Keys 键盘。在我之前安装的 Arch 上,我可以连接到这两个设备,但在全新安装上却无法正常工作。设备出现在可用设备列表中,我尝试连接,但连接失败。我的 Wifi + 蓝牙板是rtl8821ce。
我尝试安装rtl8821ce-dkms-git来自 AUR 但出现以下错误:
ERROR: Missing 6.2.10-arch1-1 kernel headers for module rtl8821ce/1.0.5.r153.ga3e2f7c.
以下是有关我的配置的一些信息:
Arch 版本
$ uname -r
6.2.11-arch1-1
连接失败后 journalctl
$ journalctl -b --no-hostname | grep -i blue
Apr 19 09:36:26 systemd[721]: Started Add Bluetooth Device - Add Bluetooth Device.
Apr 19 09:36:29 kernel: Bluetooth: hci0: unexpected cc 0x0c7c length: 1 < 3
Apr 19 09:36:29 kernel: Bluetooth: hci0: unexpected SMP command 0x08 from db:63:24:aa:10:cc
Apr 19 09:36:29 kernel: Bluetooth: hci0: unexpected SMP command 0x09 from db:63:24:aa:10:cc
蓝牙服务
$ systemctl status bluetooth.service
● bluetooth.service
Loaded: masked (Reason: Unit bluetooth.service is masked.)
Active: active (running) since Wed 2023-04-19 09:35:59 CEST; 25min ago
Main PID: 60046 (bluetoothd)
Status: "Running"
CPU: 160ms
CGroup: /system.slice/bluetooth.service
└─60046 /usr/lib/bluetooth/bluetoothd
Apr 19 09:36:00 archlinux bluetoothd[60046]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSink/opus_05
Apr 19 09:36:00 archlinux bluetoothd[60046]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSource/opus_05
Apr 19 09:36:00 archlinux bluetoothd[60046]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Apr 19 09:36:00 archlinux bluetoothd[60046]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Apr 19 09:36:30 archlinux bluetoothd[60046]: src/service.c:service_accept() input-hog profile accept failed for DB:63:24:AA:10:CC
Apr 19 09:37:01 archlinux bluetoothd[60046]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters
Apr 19 10:00:59 archlinux bluetoothd[60046]: src/service.c:service_accept() input-hog profile accept failed for DB:63:24:AA:10:CD
Apr 19 10:01:01 archlinux bluetoothd[60046]: src/device.c:set_wake_allowed_complete() Set device flags return status: Invalid Parameters
串行通信 (01:00.0 网络控制器:瑞昱半导体有限公司 RTL8821CE 802.11ac PCIe 无线网络适配器)
$ lspci
00:00.0 Host bridge: Intel Corporation Ice Lake-LP Processor Host Bridge/DRAM Registers (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics G7 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Processor Power and Thermal Controller (rev 03)
00:14.0 USB controller: Intel Corporation Ice Lake-LP USB 3.1 xHCI Host Controller (rev 30)
00:14.2 RAM memory: Intel Corporation Ice Lake-LP DRAM Controller (rev 30)
00:15.0 Serial bus controller: Intel Corporation Ice Lake-LP Serial IO I2C Controller #0 (rev 30)
00:15.1 Serial bus controller: Intel Corporation Ice Lake-LP Serial IO I2C Controller #1 (rev 30)
00:16.0 Communication controller: Intel Corporation Ice Lake-LP Management Engine (rev 30)
00:17.0 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 30)
00:1c.0 PCI bridge: Intel Corporation Device 34bf (rev 30)
00:1d.0 PCI bridge: Intel Corporation Ice Lake-LP PCI Express Root Port #9 (rev 30)
00:1f.0 ISA bridge: Intel Corporation Ice Lake-LP LPC Controller (rev 30)
00:1f.3 Audio device: Intel Corporation Ice Lake-LP Smart Sound Technology Audio Controller (rev 30)
00:1f.4 SMBus: Intel Corporation Ice Lake-LP SMBus Controller (rev 30)
00:1f.5 Serial bus controller: Intel Corporation Ice Lake-LP SPI Controller (rev 30)
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
02:00.0 Non-Volatile memory controller: Sandisk Corp WD Blue SN500 / PC SN520 NVMe SSD (rev 01)
系统盘 (总线 001 设备 005:ID 0bda:b00a Realtek Semiconductor Corp. Realtek 蓝牙 4.2 适配器)
$ lsusb
Bus 002 Device 004: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 002 Device 003: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub
Bus 002 Device 002: ID 17e9:4301 DisplayLink USB3.0 to HDMI Adapter
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 001 Device 009: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A)
Bus 001 Device 008: ID 046d:c07d Logitech, Inc. G502 Mouse
Bus 001 Device 007: ID 14cd:8601 Super Top 4-Port hub
Bus 001 Device 006: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 010: ID 413c:2113 Dell Computer Corp. KB216 Wired Keyboard
Bus 001 Device 003: ID 2109:2817 VIA Labs, Inc. USB2.0 Hub
Bus 001 Device 002: ID 30c9:0013 Luxvisions Innotech Limited HP TrueVision HD Camera
Bus 001 Device 005: ID 0bda:b00a Realtek Semiconductor Corp. Realtek Bluetooth 4.2 Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
消息
$ dmesg | grep "Blue*"
[ 2.098322] usb 1-10: Product: Bluetooth Radio
[ 2.886056] Bluetooth: Core ver 2.22
[ 2.886071] Bluetooth: HCI device and connection manager initialized
[ 2.886074] Bluetooth: HCI socket layer initialized
[ 2.886075] Bluetooth: L2CAP socket layer initialized
[ 2.886077] Bluetooth: SCO socket layer initialized
[ 3.222332] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[ 3.223757] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 3.223761] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 3.228407] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[ 3.229500] Bluetooth: hci0: RTL: cfg_sz 10, total sz 34926
[ 3.720749] Bluetooth: hci0: RTL: fw version 0x75b8f098
[ 3.722600] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 3.722602] Bluetooth: BNEP filters: protocol multicast
[ 3.722605] Bluetooth: BNEP socket layer initialized
[ 4.076612] Bluetooth: MGMT ver 1.22
[ 59.350635] Bluetooth: RFCOMM TTY layer initialized
[ 59.350654] Bluetooth: RFCOMM socket layer initialized
[ 59.350665] Bluetooth: RFCOMM ver 1.11
[ 80.991133] Bluetooth: hci0: unexpected cc 0x0c7c length: 1 < 3
[ 81.039643] Bluetooth: hci0: unexpected SMP command 0x06 from db:fe:d1:12:97:f4
[ 81.082998] Bluetooth: hci0: unexpected SMP command 0x07 from db:fe:d1:12:97:f4
[ 81.083011] Bluetooth: hci0: unexpected SMP command 0x08 from db:fe:d1:12:97:f4
[ 81.083014] Bluetooth: hci0: unexpected SMP command 0x09 from db:fe:d1:12:97:f4
[ 111.858446] Bluetooth: hci0: No such LE device db:fe:d1:12:97:f4 (0x1)
[ 115.119075] Bluetooth: hci0: unexpected cc 0x0c7c length: 1 < 3
[ 115.167612] Bluetooth: hci0: unexpected SMP command 0x08 from db:63:24:aa:10:c8
[ 115.210973] Bluetooth: hci0: unexpected SMP command 0x09 from db:63:24:aa:10:c8
[ 145.644525] Bluetooth: hci0: No such LE device db:63:24:aa:10:c8 (0x1)
[ 188.834835] Bluetooth: hci0: unexpected cc 0x0c7c length: 1 < 3
[ 188.860961] Bluetooth: hci0: unexpected SMP command 0x06 from db:fe:d1:12:97:f5
[ 188.884286] Bluetooth: hci0: unexpected SMP command 0x07 from db:fe:d1:12:97:f5
[ 188.884299] Bluetooth: hci0: unexpected SMP command 0x08 from db:fe:d1:12:97:f5
[ 188.884302] Bluetooth: hci0: unexpected SMP command 0x09 from db:fe:d1:12:97:f5
[ 218.931116] Bluetooth: hci0: No such LE device db:fe:d1:12:97:f5 (0x1)
[ 1931.368431] Bluetooth: hci0: urb 0000000092630f52 failed to resubmit (2)
[ 1931.637828] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=75b8 lmp_ver=08 lmp_subver=f098
[ 1931.957131] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[ 1931.957951] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 1931.957959] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 1931.963652] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[ 1931.964231] Bluetooth: hci0: RTL: cfg_sz 10, total sz 34926
[ 1932.430992] Bluetooth: hci0: RTL: fw version 0x75b8f098
[ 1932.498227] Bluetooth: MGMT ver 1.22
[ 1984.630882] Bluetooth: hci0: unexpected cc 0x0c7c length: 1 < 3
[ 1984.680208] Bluetooth: hci0: unexpected SMP command 0x08 from db:63:24:aa:10:c9
[ 1984.723413] Bluetooth: hci0: unexpected SMP command 0x09 from db:63:24:aa:10:c9
[ 2011.438704] Bluetooth: hci0: No such LE device db:63:24:aa:10:c9 (0x1)
[ 2172.867902] Bluetooth: hci0: unexpected cc 0x0c7c length: 1 < 3
[ 2172.916008] Bluetooth: hci0: unexpected SMP command 0x08 from db:63:24:aa:10:ca
[ 2172.959346] Bluetooth: hci0: unexpected SMP command 0x09 from db:63:24:aa:10:ca
[ 2198.696877] Bluetooth: hci0: No such LE device db:63:24:aa:10:ca (0x1)
[ 3003.560859] Bluetooth: hci0: unexpected cc 0x0c7c length: 1 < 3
[ 3003.610673] Bluetooth: hci0: unexpected SMP command 0x08 from db:63:24:aa:10:cb
[ 3003.657343] Bluetooth: hci0: unexpected SMP command 0x09 from db:63:24:aa:10:cb
[ 3034.766966] Bluetooth: hci0: No such LE device db:63:24:aa:10:cb (0x1)
[ 3111.666820] Bluetooth: hci0: urb 00000000b86015ba failed to resubmit (2)
[ 3111.735758] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=75b8 lmp_ver=08 lmp_subver=f098
[ 3112.054126] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[ 3112.054821] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 3112.054826] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[ 3112.062106] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[ 3112.063286] Bluetooth: hci0: RTL: cfg_sz 10, total sz 34926
[ 3112.530105] Bluetooth: hci0: RTL: fw version 0x75b8f098
[ 3112.596165] Bluetooth: MGMT ver 1.22
[ 3141.715103] Bluetooth: hci0: unexpected cc 0x0c7c length: 1 < 3
[ 3141.761886] Bluetooth: hci0: unexpected SMP command 0x08 from db:63:24:aa:10:cc
[ 3141.808547] Bluetooth: hci0: unexpected SMP command 0x09 from db:63:24:aa:10:cc
[ 3172.915389] Bluetooth: hci0: No such LE device db:63:24:aa:10:cc (0x1)
[ 4610.777871] Bluetooth: hci0: unexpected cc 0x0c7c length: 1 < 3
[ 4610.826599] Bluetooth: hci0: unexpected SMP command 0x08 from db:63:24:aa:10:cd
[ 4610.870170] Bluetooth: hci0: unexpected SMP command 0x09 from db:63:24:aa:10:cd
[ 4613.526402] Bluetooth: hci0: No such LE device db:63:24:aa:10:cd (0x1)
以下所有解决方案均无效:
- 手动构建并安装
rtl8821ce-dkms-git
- 构建并升级到最新版本的
linux-firmware
软件包 - 禁用蓝牙卡的 USB 自动暂停功能。
- 使用内核提供的
rtw88
驱动程序 bluetoothctl trust [device mac]
配对前使用- 重启蓝牙服务
- 使用 MX Master 3S 鼠标附带的全新 Logitech“Bolt”加密狗并与以下设备配对
solaar
:不断断开连接。 - 使用以下方式进行完整系统升级
pacman -Syu
- 检查蓝牙设备是否被软阻止或硬阻止
sudo rfkill list
答案1
编辑:使用linux-lts
kernel 而不是linux
kernel 解决了!我现在在6.1.25-1-lts
。