Site menu:

Categories

Tags

Site search

 

October 2008
M T W T F S S
« Sep   Nov »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Archives

Links:

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.

Write a comment