[Gutsy] Display sleep sets wrong DPMS off time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-power-manager (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnome-power-manager
In Ubuntu Gutsy (7.10) with gnome-power-manager (2.20.0-0ubuntu6), the System-
However the value that is stored in the gnome configuration does not have this offset (eg, with the screensaver figure of 8 minutes, a power management display off figure of "13 minutes", the value stored in the gnome configuration will be 300 seconds (ie, 5 minutes). With a power management display off figure of "14 minutes" the value stored will be 360 seconds (ie, 6 minutes).
The value from the gnome configuration is then applied as an X DPMS "power off" time, eg 300 seconds as the display time off. The result is that the monitor will then turn off after 5 minutes (300 seconds), even though the gnome power management display off time is reported through the user interface as "13 minutes". And thus the monitor turns off even before the screen saver kicks in, and much earlier than it was set to do so. The only combination that might work sanely is to set both timeouts to the same value (0 minutes difference), which would result in a DPMS off time of 0 seconds, which happens to disable the automatic X server DPMS off time (leaving gnome power manager to do its own thing) -- but it doesn't seem possible to do this.
This effect (idle time shown = screen saver time + power manager time; from https:/
https:/
too (ie, why the value cannot be set below 11 minutes -- they presumably have a screensaver time of 10 minutes).
Obviously I expect that the time specified in gnome power manager to power off the display will be the time in reality, not some arbitrarily shorter time. (I first noticed this with a screen saver time of 8 minutes, and a display off time of 9 minutes -- which caused the screen to power down after 1 minute of inactivity.) There are various ways this could be fixed to work sanely:
- have gnome-power-manager not set the X server DPMS time and manage everything itself, counting from when the screen saver kicks in
- have gnome-power-manager set the X server DPMS time to the value stored plus the screen saver timeout (so the overall time is consistent with what is shown in the preferences dialog)
- have the preferences dialog store the value shown into the gnome preferences (including the amount that is attributed to the screensaver timeout, eg the full 13 minutes == 780 seconds) so that the value can be set directly into the X server DPMS and will give the correct timeout
- decouple the power manager and screen saver timeouts again, so that the power manager screen off time can be set from 1 minute upwards. This would also allow having the screen powered down before the screen is locked, which can be useful if one is doing something else nearby but wants to save power (eg, a power manager off time of 3 minutes, and a lock time of 5 minutes, would power the display down pretty rapidly but allow waking it with a keypress without having to type in a password). This would just require changing the power manager preferences UI to accurately report the figure it's setting into the gnome preferences.
Ewen
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in gnome-power-manager: | |
status: | Incomplete → Fix Released |
Attached screenshot showing: power-manager- >timeout- >sleep_ display_ ac value of 6 minutes (360 seconds; 14 minutes - 8 minutes = 6 minutes)
- Screen Saver preference time of 8 minutes (480 seconds)
- Power Manager display off time of 14 minutes (840 seconds)
- gnome configuration apps->gnome-
- X DPMS information showing an off time of 360 seconds (6 minutes)
Computer is on AC power at present. The values are live adjustable, and updating the slider in the power manager UI will result in new values being saved/set with the offset described above.
Ewen