How can I use a USB keyboard or mouse to wake from suspend?

5,466

Solution 1

In my opinion the best way is to setup the BIOS for that.

I did it several years ago and it works very well with the keyboard. I never succeeded with the mouse, but it may depend upon your BIOS.

However, for me, pressing any key on the keyboard wakes up the system. You can set on the OS whether you need or not your password to enter your session.

Solution 2

Write the

 echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
 echo enabled > /sys/bus/usb/devices/usb2/power/wakeup
 .....................................................

part of Ask Ubuntu in a script and try it adding it in crontab for root.

Share:
5,466

Related videos on Youtube

sjy
Author by

sjy

Updated on September 18, 2022

Comments