hi all. got new computer, turned old laptop server. in high school, , mum worried power bill, wondering if able turn laptop off automatically @ 8:30 am, , start again on 3pm (mon-friday - weekends stay on overnight).
the first hurdle working out how put system sleep. package "pm-utils" contains command-line tools suspend , hibernate, because install package (and dependencies) doesn't mean it'll work. still, give try; might work out of box.
next hurdle, you'll need work out how wake system @ specified time. may need adjust bios settings allow wake rtc (real time clock).
don't know if there pre-built scripts setting alarm. of have seen involves commands accessing /proc , /sys hooks. digging through notes, found sequence, presumably sets alarm 1 minute in future:
once know how safely suspend system , wake @ specified time, can automate. may wish more careful saying, "suspend @ 8:30 every weekday." if you're home sick? i'm not @ writing shell scripts on fly, can write script cover contingencies come mind. put script crontab of root , set run @ appropriate time.code:sudo sh -c "echo 0 > /sys/class/rtc/rtc0/wakealarm" sudo sh -c "echo `date '+%s' -d '+ 1 minute'` > /sys/class/rtc/rtc0/wakealarm"
also, check out package "powernap", can configure automatically suspend system after interval of inactivity. (not quite asked for, maybe it'll give ideas.)
  		  		  	Forum    	The Ubuntu Forum Community    	Ubuntu Specialised Support    	Ubuntu Servers, Cloud and Juju    	Server Platforms    		  	[ubuntu]  Automatically suspending and resuming     	
 Ubuntu
 
  
Comments
Post a Comment