连接任何蓝牙设备时 Linux 都会冻结

连接任何蓝牙设备时 Linux 都会冻结

我使用的是内核为 5.15.0-58 的 Ubuntu 20.04。如果我连接蓝牙设备(例如睡眠后的键盘或新的 USB 设备,但不是 SD 卡),系统将冻结约 5 秒钟。音频将继续播放,但显示将完全冻结,使用 OBS 录制等操作也将冻结相同的时间。

不幸的是我无法展示任何代码或想法。

我怎么解决这个问题?

当前通过 BT 连接到我的机器的设备列表:

  • Audiolab 放大器
  • Microsoft 人体工学键盘(每 5 分钟未使用就会超时)
hutber@hutber:~$ hciconfig -a
hci0:   Type: Primary  Bus: USB
    BD Address: 5C:F3:70:A7:97:F3  ACL MTU: 1021:8  SCO MTU: 64:1
    UP RUNNING 
    RX bytes:1772646 acl:6128 sco:0 events:225073 errors:0
    TX bytes:378842911 acl:443999 sco:0 commands:892 errors:0
    Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
    Link policy: RSWITCH SNIFF 
    Link mode: SLAVE ACCEPT 
    Name: 'hutber'
    Class: 0x1c0104
    Service Classes: Rendering, Capturing, Object Transfer
    Device Class: Computer, Desktop workstation
    HCI Version: 4.0 (0x6)  Revision: 0x1000
    LMP Version: 4.0 (0x6)  Subversion: 0x220e
    Manufacturer: Broadcom Corporation (15)

hutber@hutber:~$ dmesg | grep -I bluetooth
[   82.887791] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:68/0005:000A:FFFF.000B/input/input25
[30789.688109] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:65/0005:000A:FFFF.0012/input/input46
[132984.840315] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:65/0005:000A:FFFF.0017/input/input65
[133224.134540] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:65/0005:000A:FFFF.0018/input/input67
[168916.269875] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:71/0005:000A:FFFF.0019/input/input69
[169359.710382] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:65/0005:000A:FFFF.001B/input/input75
[205453.272541] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:71/0005:000A:FFFF.001C/input/input77
[205470.351280] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:68/0005:000A:FFFF.001E/input/input83
[250641.646597] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:71/0005:000A:FFFF.0021/input/input93
[250660.044110] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:68/0005:000A:FFFF.0023/input/input99
[263990.825430] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-11/1-11.2/1-11.2:1.0/bluetooth/hci0/hci0:12/0005:000A:FFFF.0029/input/input121
hutber@hutber:~$ sudo lsusb
[sudo] password for hutber:  
Bus 002 Device 002: ID 05e3:0732 Genesys Logic, Inc. All-in-One Cardreader
Bus 002 Device 011: ID 058f:8468 Alcor Micro Corp. 
Bus 002 Device 010: ID 2109:0813 VIA Labs, Inc. 
Bus 002 Device 004: ID 05e3:0620 Genesys Logic, Inc. 
Bus 002 Device 005: ID 17e9:6006 DisplayLink 
Bus 002 Device 003: ID 05e3:0620 Genesys Logic, Inc. USB3.1 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 0b05:18a3 ASUSTek Computer, Inc. USB2.1 Hub
Bus 001 Device 004: ID 1b1c:0c04 Corsair Link Cooling Node
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 018: ID 06c4:c411 Bizlink International Corp. 
Bus 001 Device 016: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 017: ID 046d:0892 Logitech, Inc. OrbiCam
Bus 001 Device 030: ID 2109:0101 VIA Labs, Inc. 
Bus 001 Device 029: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 028: ID 2109:2813 VIA Labs, Inc. 
Bus 001 Device 015: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 014: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 012: ID 1532:007e Razer USA, Ltd 
Bus 001 Device 011: ID 1532:0088 Razer USA, Ltd 
Bus 001 Device 010: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 019: ID 046d:0ab7 Logitech, Inc. Blue Microphones
Bus 001 Device 007: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 027: ID 0b05:17cb ASUSTek Computer, Inc. Broadcom BCM20702A0 Bluetooth
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 003: ID 0922:001f Dymo-CoStar Corp. DYMO LabelWriter 4XL
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

(base) hutber@hutber:~$ sudo dmesg | egrep -i 'blue|firm'
[sudo] password for hutber:  
[1073034.408000] hid-generic 0005:045E:0817.0060: input,hidraw14: BLUETOOTH HID v1.42 Keyboard [Ergonomic Keyboard] on 8c:1d:96:d9:9c:1f
[1073347.737066] input: Audiolab Omnia BT as /devices/pci0000:00/0000:00:14.0/usb1/1-14/1-14:1.0/bluetooth/hci0/hci0:256/0005:000A:FFFF.0061/input/input192
[1073347.737372] hid-generic 0005:000A:FFFF.0061: input,hidraw15: BLUETOOTH HID vff.ff Device [Audiolab Omnia BT] on 8c:1d:96:d9:9c:1f
[1076534.326307] hid-generic 0005:045E:0817.0062: input,hidraw14: BLUETOOTH HID v1.42 Keyboard [Ergonomic Keyboard] on 8c:1d:96:d9:9c:1f

```

[Edit]
I replaced my entire machine, motherboard/ram/gpu/cpu/fan etc and the issue is still occuring.

相关内容