记录一次用蓝牙键盘唤醒Ubuntu

1.  grep . /sys/bus/usb/devices/*/power/wakeup  可以看到哪些设备可以唤醒 


上面结果中 devices/ 后面的是指某个设备。只要找无线接收器对应的设备是哪一个,给它的 disabled 改成 enabled 就可以了。

2、lsusb        查看有哪些外接设备,目标就在其中。


Bus 001 Device 004: ID 04f2:b65a Chicony Electronics Co., Ltd 就是我的无线接收器

dmesg  接收器插拔一次,在 dmesg 新输出的内容里面查找

这样就足以明确我们要改成 enabled 的是 1-4。可以用这条命令让这个过程更方便。

4.echo 'enabled' > /sys/bus/usb/devices/1-4/power/wakeup 修改目标接口的 wakeup 值

或vi  /sys/bus/usb/devices/1-4/power/wakeup 用VI窗口编辑

参考文章:

https://ifttl.com/wakeup-suspended-ubuntu-with-wireless-bluetooth-mouse

 Wake up from suspend using wireless USB keyboard or mouse (for any Linux Distro)

你可能感兴趣的:(记录一次用蓝牙键盘唤醒Ubuntu)