Take the 2-minute tour ×

How I can unsuspend my computer with a bash script like:

sleep 10m
{unsuspend command}
share|improve this question
The script would need to interface to a USB-controlled robotic arm that presses the power button on your laptop. –  izx Jun 24 '12 at 10:30
Only thing I could think of is wake on lan –  Cubiq Jun 24 '12 at 11:01
add comment

1 Answer

After your computer have been suspended, nothing more will get executed, so your bash-script will not continue running until it you have woken it up.

You need to put your script on another machine (on the same local network), as Cubiq said, and use wake on lan (http://en.wikipedia.org/wiki/Wake-on-LAN) to wake-up your machine.

Here is a ubuntu-guide: https://help.ubuntu.com/community/WakeOnLan

share|improve this answer
add comment

Your Answer


