Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a feature (or aptitude package) in Ubuntu 10.04 that will wake my computer up from standby when it gets an ssh (or other webrequest).

I've been trying to put my computer in hibernate/standby when I'm not running code in an effort to "go green" at my university. However, I often need to ssh into my computer over the weekend to do work. However, it does not seem to "wake-up" to hear this request. I remember on my old windows machine there was a "Wake-on-LAN" option to the hibernate command. So if I needed to remote-desktop in while it was asleep it would wake up.

Can anyone request a good way to replicate this feature?

Thanks,

Will

share|improve this question

4 Answers 4

You need some device on your local network which can send the WOL package needed. It must be the local network because the package isn't forwarded by routers to other network segments.

The perfect device to do this, would be your router. Unfortunately very few routers support this, but if you get one which use OpenWRT or similar you can install software which can generate the necessary WOL packet waking up the machine you actually want to talk to.

share|improve this answer
    
Yes, this is a really important point and mostly missed by the other commentators. If you are at home, and you want to wake up a machine at your university, you can't do that unless there's some other machine at your university you can go into first. Therefore probably the best option is to put the machine into a low-power-but-not-suspended state (eg cpu sleep, disk sleep, etc), from which a regular network packet can wake it. In the future maybe we can use en.wikipedia.org/wiki/Sleep_Proxy_Service –  poolie Mar 5 '11 at 0:19
    
Since I wrote the answer, I've purchased a Time Capsule (Apple router with harddisk) which contains such a proxy which allows Mac's to go to sleep and still be visible to other Mac's. Very impressive. I have not investigated if this can be used with Linux machines. –  Thorbjørn Ravn Andersen Mar 5 '11 at 9:34

The Ubuntu Forums has an excellent Guide. You will need to wake the machine with a WOL packet before you ssh in though.

share|improve this answer

Wake On LAN is something you can enable in the BIOS.

share|improve this answer
    
yeah but the system has to be aware of it as well. yeah but making it the bios setting is on is the first step outlined in my answer :) –  myusuf3 Aug 14 '10 at 3:58

I believe here it the link that would help you out :)

There are clear instructions for setting up to WOL (wake on lan)

share|improve this answer
    
I'll check it out Monday ... my computer is currently hibernating for the weekend ;) –  JudoWill Aug 14 '10 at 15:02
    
@judowill haha no problem. let me know how it goes. :) –  myusuf3 Aug 14 '10 at 15:07
    
I don't know if you are connected to the author of the linked answer, but if you are please not that the copy-paste-into-commandline doesn't work well due to the appearance of bangs in the answer, which under bash get changed.... –  Yossi Farjoun Feb 28 '11 at 8:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.