I'm running the openbox window manager and using this line in my autostart.sh
to control display power management:
xset dpms 0 60 0
This works nicely, causing the display to suspend after 60 seconds of inactivity.
However, when the display reawakens in response to a mouse movement, keypress, etc., the screen is at full brightness. This is wasteful of power and sometimes blinding. If I use the laptop's brightness control keys (Fn + <-/->) to adjust the brightness, the first press will restore the brightness to what it was before the display was suspended.
What I'd like is for the screen to be at the pre-suspend brightness as soon as the display is reawakened, i.e. without having to hit one of the brightness control keys.
I'm running ubuntu 10.10 on an Acer Aspire 5742.
xset hook
. If you can guide me(documentation) or refer to what he mean't by that it will help.xset
man page to see if there is a way to get it to run a script or other command when the display is reawakened. You might also do some googling to see if they just didn't mention that in the man page for some reason. I'm not running openbox for the moment so I don't have to worry about it right now :)