Linux: wake up from sleep from keyboard
Resume From Suspend With Keyboard/Mouse is a post by Bobby Baker that shows how to get a Linux machine to resume from a sleep state by pressing the keyboard. I have no idea why this isn't the default. Anyway, at the end of his post he mentions that some people can't keep the fix after a reboot. I had the problem, but then I didn't quite follow his instructions either. When I did a:
cat /proc/acpi/wakeup
I got two USB devices, USB3 and USB5. I decided that I would wake them both up and so in the /etc/init.d/wakeup.sh script I had the following:
#!/bin/sh
#
# Wake (resume) when a key on the usb keyboard is pressed.
echo USB3 > /proc/acpi/wakeup
echo USB5 > /proc/acpi/wakeup
When the call to echo USB3 is made it actually turns on USB5 as well. Then when I call echo USB5, it turns everything off. That is why I didn't have resume from keyboard after I re-booted my machine. I removed the USB5 line and everything worked fine.
The /etc/init.d/wakeup.sh script should now be:
#!/bin/sh
#
# Wake (resume) when a key on the usb keyboard is pressed.
echo USB3 > /proc/acpi/wakeupwhich is the same as it was in the post by Bobby Baker!
10.05.2011 04:46 - Posted by doahh - Comments: 2 - Computing

Comments:
Hi, thanks for linking back to my post, appreciate it. From removing USB5 it worked after reboot? Gonna test it now.
21.05.2011 01:40 - Posted by Bobby Baker - Permalink
Ugg boots are so cozy and warm, http://www.jordanshop4sale.com/">Retro Jordansyou could in no way need to consider them off. Even so,the consistent sporting will cause grime,http://www.bestmysneakers.com/">New Balance Shoes grime and odors. You need to use specialised Ugg products to clean Ugg boots, <a href="<a href="http://www.cheapuggbootsmore.com">Ugg">http://www.cheapuggbootsmore.com">Ugg Boots Outlet r simply utilize family items as explained below.
17.10.2011 04:57 - Posted by Ugg Boots Outlet - Permalink