suspendwhenidle
Now that suspend works I want my desktop machines to switch off when I stop using them - primarily this means overnight, but it also means “if I forget to”.
Gnome-power-manger has a global “suspend after so long” option, however I wanted something more flexible. I don’t want it to suspend during the day unless I’ve left it idle for say an hour. However at night when I stop using it it should suspend fairly quickly (say within 15mins).
So I’ve written a little script which will do this. It uses “xprintidle” to see if the computer is being used. After 22:30 (until 06:30) it will suspend after only 15mins idle time, otherwise it will wait a whole hour before suspending. Feel free to email me for the script - I’ve not put my script repository online yet.
Posted: October 4th, 2008 under Linux.
Comments: none
Write a comment