PDA

View Full Version : [SOLVED] gdm suspend on idle



double1116
August 24th, 2010, 12:51 PM
Is it possible to have the machine suspend when idle at the gdm login screen? I understand it is possible when a user is logged in through the System > Preferences > Power Management controls. What is happening is that the computer is sitting at the login screen and stays on, wasting power. I'd like it to suspend/sleep after a timeout.

sisco311
August 24th, 2010, 01:38 PM
Add gnome-power-preferences to GDM's autostart directory:

sudo ln -s /usr/share/applications/gnome-power-preferences.desktop /usr/share/gdm/autostart/LoginWindow/

Log out. The gnome-power-preferences window should show up on the GDM screen.

Configure it how you want, then close the window and log back in.

When you're done and want the window to stop opening with GDM, run:

sudo unlink /usr/share/gdm/autostart/LoginWindow/gnome-power-preferences.desktop

double1116
September 1st, 2010, 11:13 AM
Works great, thanks!

jongkind
February 13th, 2011, 09:02 AM
Add gnome-power-preferences to GDM's autostart directory:

sudo ln -s /usr/share/applications/gnome-power-preferences.desktop /usr/share/gdm/autostart/LoginWindow/

Log out. The gnome-power-preferences window should show up on the GDM screen.

Configure it how you want, then close the window and log back in.

When you're done and want the window to stop opening with GDM, run:

sudo unlink /usr/share/gdm/autostart/LoginWindow/gnome-power-preferences.desktop

Very good, it also works for me, I was looking for this for some time. After that, this made me thinking, and I found that the same can be accomplished the using the 'default' button in the gnome power management screen.

grtz.

rvaliant
December 2nd, 2011, 08:51 PM
Any way to do this in Ubuntu 11, either with lightdm or gdm?