I'm using a desktop (not a laptop) but I want some basic power management features: I would like the monitor to shut off after a period of idle. I would like the system to go into some kind of power saving state after a period of idle. And I would like to be able to temporarily override both of these settings in the case that I'm watching a DVD or such.
I'm using the FVWM2 window manager.
I found a HOWTO on shutting off the monitor using DPMS, but when I experimented with commands like
Code:
/usr/bin/xset dpms force off
I got erratic behavior. For a while only "standby" would turn off the monitor. Selecting "off" or "suspend" would cause the monitor to turn off for a moment and then turn back on. The HOWTO says this happens because you're running some conflicting program such as a screen saver, but I couldn't find such a program running. And then the behavior changed: now all three choices are turning the monitor off. What could explain this erratic behavior?
Regarding suspension of the system, it appears that hibernation works fine but less extreme power saving modes do not work properly. I tried s2ram but it says the machine is unknown and does nothing. I tried 'echo -n mem > /sys/power/state' and the system changed state (power light was blinking) but then I couldn't wake it up. How am I supposed to wake it up from this state? I tried 'echo -n standby > /sys/power/state' and the system went into a standby state but when it woke up the ps/2 mouse wouldn't work. I'm a little surprised: I would have thought that hibernation would be the trickiest one to get working.
But assuming that I can get these things working, suppose I want the monitor to shut off after Z minutes idle, the system to go into standby after X minutes of idle and hibernate after Y minutes of idle. I want to be able to disable this without rebooting X so I can watch a DVD. How can I do this?