我有一台运行 Ubuntu 20.04 LTS 的 Thinkpad X1 平板电脑。键盘非常灵活,当笔记本电脑关闭时,按键很容易按下。当电脑放在我的背包里时,它会按下按键并耗尽电池电量。
我想要一种仅当按下电源按钮时才能将电脑从睡眠状态唤醒的方法。有什么办法可以做到这一点吗?- 例如禁用“盖子打开时唤醒”、键盘按下和触摸板移动/点击。
非常感谢任何帮助,谢谢。
概括; 我希望我的电脑只能通过电源按钮从睡眠状态唤醒。
随着从 11.04 到 12.04 的更新,我的 USB 键盘活动会将 Ubuntu 从“挂起”状态唤醒。我想禁用它。(由于一些意外的键盘活动,我的电池没电了。)这在 11.04 中没有发生。
这些链接讨论 USB 电源 ctrl:
http://azitech.wordpress.com/2008/11/27/usbcore-autosuspend/
http://ubuntuforums.org/showthread.php?t=1968487
https://askubuntu.com/questions/165050/usb-wake -not-working-correctly
http://www.ehow.com/how_7536984_configure-power-usb-ubuntu.html
http://www.linuxforums.org/forum/miscellaneous/98253-turn-off-power-usb-port .html
http://www.linuxquestions.org/questions/linux-software-2/howdoi-turn-on-off-usb-light-by-time-514863/
http://www.linuxquestions.org/questions/ debian-26/power-off-usb-509328/
http://ubuntuforums.org/showthread.php?t=853179
http://ubuntuforums.org/showthread.php?t=1446965
USB PwrMan 文档:http ://www.mjmwired.net/kernel/Documentation/usb/power-management.txt
不幸的是,没有人为我提供解决方案。
我所有的/sys/bus/usb/devices/usbx/wakeup
都设置为禁用。当您获得实际设备时,这些设备将设置为enabled且不可编辑。
$ cat /proc/acpi/wakeup
EHC1 S3 *enabled
EHC2 S3 *enabled
Run Code Online (Sandbox Code Playgroud)
还有其他方法可以禁用 USB 唤醒吗?