[Live] Scheduled Suspend and Wake-up possible?
#1
Hi everyone

I was wondering if it's possible to have my system schedule to wake up at a certain time and suspend again at a later time during the day.

This is a family system for 5 people including 1 administrator (me). we have the system on and automatic HDMI switch which renders the Cable STB useless when the XBMC box is on. I would like to have XBMC wake up from suspend at around Midnight and Suspend again at about 6am. This way Couch Potato and automatic updates can run without interrupting anyone during the day. Is this possible?

I have a Zotac ION box running DharmaLive.
Reply
#2
It sounds like you'll need to use a combination of two methods. First, to wake the device up at a certain time, you'll need to enable wake-on-lan (WOL) on the XBMC box and have a secondary device (such as a router) issue a WOL request at a specific time.

I have myself the Zotac HD-ID11 and I noticed the option of enabling the real-time clock alarm in the startup bios. An alternative would be to enable this option and to setup a real-time clock alarm in Linux. A quick Google brought up this page:
http://acpi.sourceforge.net/documentation/alarm.html

To have the device suspend at a certain time, you can setup a cron job to execute 'pm-suspend' to put the box back into suspend at a specific time.
Reply
#3
interesting. I think I can handle the WOL request, but can you go into more depths on the cron job. I've never fully understood how to configure one.
Reply
#4
add to /etc/crontab

Code:
10 6 * * *     root    /usr/sbin/pm-suspend >> /dev/null 2>&1

suspends at 6:10 am

https://help.ubuntu.com/community/CronHowto
http://ubuntuforums.org/showthread.php?t=102626
http://ubuntu-for-humans.blogspot.com/20...buntu.html
Reply
#5
Thanks alot!! thos elinks are very informative.

I think I was a little presumptuous about the WOL part of this. Is there a way to get the router to send the WOL packet? I would imagine it's router specific as well.
Reply
#6
Is there anyway the xbmc box can do this locally. I realize the system would be off but is there a way to make the BIOS wake the computer?
Reply
#7
u can use RTC alarm as shown on link posted by mintcoffee

and also
http://www.mythtv.org/wiki/ACPI_Wakeup

i use my router to wakeup my Revo
it's a Buffalo WHR-HP-G54 running DD-WRT firmware which has cron and wol
Reply

Logout Mark Read Team Forum Stats Members Help
[Live] Scheduled Suspend and Wake-up possible?0