For a number of stationary machines here at the university, I would like to have a setup where the machines suspend themselves to save power 30 minutes after the last user logged out. How can that be done?
What you need to do is set up your power management preferences for the gdm user. To do this from the command line use this command to make the preferences window show up when you log out or switch user:
Now log out, restart or switch user and you should get the power management preferences window. (I did, I just tested this)
Once you've set up your preferences how you like them, log back in and remove the auto start desktop file:
Seeing as your managing a lab, you will want to know how to duplicate these settings for all the comptuers on your network without busting a sweat all day. Simply sync the
You can run this trick with a bunch of different configuration apps, look at what's auto starting, in the directory above, to see what kind of services are available. It is possible to change the theme and wallpaper this way too, but you can use gdm2setup, a third party app to do some of that.
Unfortunately it no longer works under 12.04LTS.
It seems that
I was able to do this in 12.04 with powernap. I had to explicitly tell it to suspend instead of just power save.