Bitcoin donations are welcome:14snQXeLcnJtWUduKZ6rC2MHdPYrYar1Tw

Monday, September 5, 2011

Enable wakeup from suspend with usb keyboard or mouse in Linux Ubuntu

This guide is exactly what you need :)

In short;
1.) Enable it in your bios
2.) echo DEVNAME > /proc/acpi/wakeup
3.) Correct DEVNAME is found using the following script:

grep "USB.*pci" /proc/acpi/wakeup | cut -d ':' -f 2- | while read aaa; do find /dev/.udev -name "*$aaa*" -print -exec grep "$aaa" /proc/acpi/wakeup \; -exec echo \; ; done
4.) Add cmd(2.)) to /etc/init.d/wakeup

Your wakeup file should look something like this:

# Set /proc/acpi/wakeup to allow devices to wake system
# sudo sh -c "echo USBX > /proc/acpi/wakeup"
echo USB4 > /proc/acpi/wakeup

5.) Enable wakeup to boot at startup:
update-rc.d wakeup defaults
6.) Done...


  1. Thank you for this guide, it's working perfect :-)

  2. Thanks for this tip
    I've tried many a trick but so far
    none have resolved this annoying