Automatic sleep settings are not followed precisely
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Settings Daemon |
Fix Released
|
Medium
|
|||
OEM Priority Project |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned | ||
gnome-power-manager (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned | ||
gnome-settings-daemon (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
According to the current design in Ubuntu Precise, users can choose the suspend time and blank time in the gnome control center (system settings). However, there's another gsetting called "org.gnome.
This two categories of values (dim time/suspend&blank time) should not be related at all, however, the current Ubuntu Precise (12.04)'s gnome settings daemon (3.4.2) it actually suspend or blank the screen on "user set time plus the dim time", which added additional 30 secs by default. Since dim time is not accessible by users in default UI, this confusing users why extra 30 secs is added to the total time on top of the selected suspend/blank time.
In some OEM projects, in order to fulfill the OEM requests for Energy Star standard, the dim time is set to 5 minutes default (instead of 30 secs), and this make the suspend time and screen blank time very inaccurate, because user will have additional 5 minutes to wait before the screen blank or system suspend. (Inactive time to suspend is about 5 minutes more than setting.)
* User do not need modify anything for this patch.
[Test Case]
* Please use Ubuntu Precise (12.04) to test, this issue is already fixed in Ubuntu Raring (13.04)
* Set idle-dim-time to 300 first (5 minutes), it's much easier to find out this issue.
(the default is 30 secs and it's somehow not as easy to observe, but the result should be same.)
Command:
#gsettings set org.gnome.
*In settings:
Turn screen off: 10 minutes
Suspend: 10 minutes on battery power, 30 minutes when plugged in.
Actual:
On battery: Screen turned off after 10 minutes, suspend after about 5 more minutes(15 minutes total).
When plugged in: Screen turned off after 10 minutes, suspend after about 25 more minutes(35 minutes total).
Steps:
1. Check power settings and brightness settings
2. Leave the system inactive
Expected results: Inactive time to suspend is same as setting
Actual results: Inactive time to suspend is about 5 minutes more than setting
[Regression Potential]
* This do not need to modify any user settings.
* The impact should be minimal for an inaccurate timing of suspend/blanking.
[Other Info]
Original bug description:
When I set the various timeouts via dconf-editor, my computer does not follow them precisely. I'm referring to these settings:
org.gnome.
org.gnome.
org.gnome.
org.gnome.
For example if I set all to 5, then the display sleeps at 30 seconds, and the computer at 70 seconds. Similarly, if I set them all to 60, the computer suspends around 90 seconds. I've only tried these shorter settings. These are clearly values that are low for normal usage, but this bug is very frustrating if one attempts to troubleshoot unrelated automatic-sleep bugs. Firstly, I think I missed the case when automatic sleep might have worked. Secondly, it increases the time it takes to troubleshoot by a lot.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gnome-power-manager 3.4.0-0ubuntu1
ProcVersionSign
Uname: Linux 3.2.0-31-generic x86_64
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
Date: Tue Sep 25 09:43:50 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: gnome-power-manager
UpgradeStatus: Upgraded to precise on 2012-04-29 (148 days ago)
Related branches
- Sebastien Bacher: Approve
-
Diff: 503 lines (+483/-0)3 files modifieddebian/changelog (+9/-0)
debian/patches/fix-suspend-and-blanking-time.patch (+473/-0)
debian/patches/series (+1/-0)
affects: | gnome-settings-daemon → gnome-settings-daemon (Ubuntu) |
affects: | gnome-settings-daemon (Ubuntu) → gnome-settings-daemon |
Changed in gnome-settings-daemon: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Changed in gnome-power-manager (Ubuntu): | |
status: | New → Invalid |
Changed in gnome-settings-daemon (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Fix Committed |
Changed in oem-priority: | |
importance: | Undecided → High |
description: | updated |
description: | updated |
description: | updated |
Changed in oem-priority: | |
status: | New → In Progress |
Changed in oem-priority: | |
status: | In Progress → Fix Released |
@Sparhawk settings- daemon. plugins. power idle-dim-time
what's the result of
#gsettings get org.gnome.
?
idle-dim-time will affect the time you set on those settings, you need to plus the dim time.
if idle-dim-time is 30, and sleep-display-ac is 60
your monitor will turn off after 90 secs inactive.
and whenever you set sleep-display-ac by gsettings , you also need to set
[org.gnome. settings- daemon. plugins. power] battery
sleep-display-ac
sleep-display-
and
[org.gnome. desktop. session]
idle-delay
these 3 values need to be same in the gsettings.