PDA

View Full Version : [ubuntu] power management scripting or command help



rburkartjo
March 14th, 2009, 02:58 PM
i have my power management set to put the display to sleep after 40 minutes. need a command to disable and enable this without changing the settings in power management. need to disable for watching movies on the net. below are examples of what i use to do the samething with my screensaver

gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type=bool false

gconftool-2 -s /apps/gnome-screensaver/idle_activation_enabled --type=bool true

the first is to disable and the second to enable

tks

unutbu
March 14th, 2009, 06:38 PM
Perhaps try this:


xset -dpms # disables DPMS (Energy Star) features.
xset +dpms # enables DPMS (Energy Star) features.
xset q # view your current xset settings

sdennie
March 14th, 2009, 09:43 PM
Try: HOWTO: Disable screen saver while Flash is running (http://ubuntuforums.org/showthread.php?t=1090393)

unutbu
March 14th, 2009, 10:07 PM
Oh... now I get what was being asked! :redface:
LOL, thanks sdennie.

rburkartjo
March 15th, 2009, 12:07 PM
tks unu that is what i was looking for works great. even though i was disabling the screensaver with what i posted before the power management was still active and my display would shutdown in 40 min which is what i had it set to do