问题:
我已经使用 Ubuntu 22.04 几个月了,我使用的 Logitech K380 键盘一直运行良好。然而,几天前我开始遇到延迟和/或重复击键的问题,我注意到延迟会有所不同,根据具体情况而变大或变小。我在另一台笔记本电脑(装有 Mac OSX 的笔记本电脑)上测试了同一个键盘,它在那台笔记本电脑上运行良好。在装有 Ubuntu 的笔记本电脑上,集成键盘也能完美运行。
其他信息:
- 我使用 Redmi Airdots 3 耳机,效果很好;
- 我还有另外两个耳机,效果也很好;
- 请注意,我在这里使用这个键盘已经几个月了,没有任何问题...我之前也在 Ubuntu 20.04 上使用过它,也没有任何问题。
到目前为止我尝试过什么?
没什么,只需卸载并重新安装蓝牙:
➜ sudo apt-get remove --purge bluetooth
➜ sudo apt-get remove --purge gnome-bluetooth
➜ sudo apt-get remove --purge bluez
➜ sudo apt-get remove --purge bluez-tools
➜ sudo apt autoremove
➜ sudo rm -rf /var/lib/bluetooth/
➜ sudo rm -rf /etc/bluetooth
之后,我重新启动了计算机并执行了相反的操作,安装了我卸载的软件包。
系统信息
➜ hciconfig -a
hci0: Type: Primary Bus: USB
BD Address: 00:45:E2:97:44:30 ACL MTU: 1021:6 SCO MTU: 255:12
UP RUNNING PSCAN ISCAN INQUIRY
RX bytes:143499 acl:4353 sco:0 events:4000 errors:0
TX bytes:913247 acl:1381 sco:0 commands:1795 errors:0
Features: 0xff 0xff 0xff 0xfe 0xdb 0xfd 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: PERIPHERAL ACCEPT
Name: 'dev-ubuntu'
Class: 0x6e010c
Service Classes: Networking, Rendering, Capturing, Audio, Telephony
Device Class: Computer, Laptop
HCI Version: 5.1 (0xa) Revision: 0x19b7
LMP Version: 5.1 (0xa) Subversion: 0x6d7d
Manufacturer: Realtek Semiconductor Corporation (93)
➜ sudo 服务蓝牙状态
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-05-08 19:39:17 -03; 1min 2s ago
Docs: man:bluetoothd(8)
Main PID: 14828 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 11680)
Memory: 956.0K
CPU: 129ms
CGroup: /system.slice/bluetooth.service
└─14828 /usr/lib/bluetooth/bluetoothd
mai 08 19:39:17 dev-ubuntu bluetoothd[14828]: Endpoint registered: sender=:1.171 path=/MediaEndpoint/A2DPSink/sbc
mai 08 19:39:17 dev-ubuntu bluetoothd[14828]: Endpoint registered: sender=:1.171 path=/MediaEndpoint/A2DPSource/sbc
mai 08 19:39:17 dev-ubuntu bluetoothd[14828]: Endpoint registered: sender=:1.171 path=/MediaEndpoint/A2DPSink/sbc_xq_453
mai 08 19:39:17 dev-ubuntu bluetoothd[14828]: Endpoint registered: sender=:1.171 path=/MediaEndpoint/A2DPSource/sbc_xq_453
mai 08 19:39:17 dev-ubuntu bluetoothd[14828]: Endpoint registered: sender=:1.171 path=/MediaEndpoint/A2DPSink/sbc_xq_512
mai 08 19:39:17 dev-ubuntu bluetoothd[14828]: Endpoint registered: sender=:1.171 path=/MediaEndpoint/A2DPSource/sbc_xq_512
mai 08 19:39:17 dev-ubuntu bluetoothd[14828]: Endpoint registered: sender=:1.171 path=/MediaEndpoint/A2DPSink/sbc_xq_552
mai 08 19:39:17 dev-ubuntu bluetoothd[14828]: Endpoint registered: sender=:1.171 path=/MediaEndpoint/A2DPSource/sbc_xq_552
mai 08 19:39:17 dev-ubuntu systemd[1]: Started Bluetooth service.
mai 08 19:39:43 dev-ubuntu bluetoothd[14828]: /org/bluez/hci0/dev_9C_19_C2_23_31_FF/sep2/fd0: fd(30) ready
➜ bt-设备-l
Added devices:
Keyboard K380 (F4:73:35:5A:54:B3)
Redmi AirDots 3 (9C:19:C2:23:31:FF)
➜ 蓝牙控制--版本
bluetoothctl: 5.64