蓝牙 hci0:等待挂起事件超时

Hem*_*lig 4 suspend bluetooth 22.04

通常,当唤醒我的计算机时,它不会让自己醒来,而是显示以下消息:

Bluetooth hci0: Timeout waiting for suspend events
Bluetooth hci0: Suspend timeout bit: 6
Bluetooth hci0: Suspend notifier action (3) failed: -110
Run Code Online (Sandbox Code Playgroud)

这种情况是随机发生的,有时一天几次,有时不是一周,但它已经发生了很长时间(也已经在 20.04 发生了)。

是否有任何智能方法可以调试此错误并消除该错误?

Se6*_*Se6 6

我通过在按照上面的建议暂停之前关闭蓝牙来解决同样的问题,但会自动使用脚本来恢复蓝牙

只需添加以下文件(并使其可执行):

/usr/lib/systemd/system-sleep/bluetooth.sh

#!/usr/bin/bash

if [[ $1 == "pre" ]]
then
    /usr/sbin/rfkill block bluetooth
elif [[ $1 == "post" ]]
then
    /usr/sbin/rfkill unblock bluetooth
fi
Run Code Online (Sandbox Code Playgroud)

它在我的 Dell XPS15 上非常有用。