Automatic sleep settings are not followed precisely
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| GNOME Settings Daemon |
Fix Released
|
Medium
|
||
| OEM Priority Project |
High
|
Unassigned | ||
| Precise |
High
|
Unassigned | ||
| gnome-power-manager (Ubuntu) |
Undecided
|
Unassigned | ||
| Precise |
Undecided
|
Unassigned | ||
| gnome-settings-daemon (Ubuntu) |
Low
|
Unassigned | ||
| Precise |
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 on 2014-01-17
-
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)
Sparhawk (sparhawkthesecond) wrote : | #1 |
Tim Chen (timchen119) wrote : | #2 |
Tim Chen (timchen119) wrote : | #3 |
@Sparhawk
and if your sleep-inactive-
the actual suspend time will be
sleep-inactive-
but if your sleep-display-
the actual suspend time will be
sleep-display-
hope these explains the default behavior in ubuntu now.
btw, this should related to gnome-setttings
there is a upstream fix already submitted. ( https:/
but not yet in precise (and quantel), I'd assume this is going to be changed in 13.04.
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 |
Sparhawk (sparhawkthesecond) wrote : | #4 |
Thanks for the explanation, Tim. It's a bit unintuitive, especially since I have idle-dim(
In any case, I still see some inconsistencies. I've got the following settings:
sleep-display-
sleep-inactive-
idle-dim-time 5
The screen dims at 9 seconds, which is consistent with sleep-display-
OTOH, the computer suspends at c. 50 seconds, which doesn't seem to make sense at all?
Tim Chen (timchen119) wrote : | #5 |
@sparhawkthesecond
what is your idle-delay ?
org.gnome.
as I said in #2, idle-delay setting must be same with sleep-display-
I think g-c-c UI have this check but if you use gsettings to cheange the value then it may not that easy to find out this issue.
Sparhawk (sparhawkthesecond) wrote : | #6 |
Ah okay. Sorry about that. I must've missed that part of your comment for some reason. That seems to work now.
Cheers.
Changed in gnome-power-manager (Ubuntu): | |
status: | New → Invalid |
Changed in gnome-settings-daemon (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Fix Committed |
Sebastien Bacher (seb128) wrote : | #7 |
The issue is fixed with 3.6 in raring
Changed in gnome-settings-daemon (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in oem-priority: | |
importance: | Undecided → High |
description: | updated |
description: | updated |
description: | updated |
Changed in oem-priority: | |
status: | New → In Progress |
Hello Sparhawk, or anyone else affected,
Accepted gnome-settings-
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
Changed in gnome-settings-daemon (Ubuntu Precise): | |
status: | New → Fix Committed |
tags: | added: verification-needed |
Sparhawk (sparhawkthesecond) wrote : | #9 |
Sorry, I can't test this. I'm not using gnome any more, as I've moved to KDE.
Launchpad Janitor (janitor) wrote : | #10 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in gnome-power-manager (Ubuntu Precise): | |
status: | New → Confirmed |
Bartosz Kosiorek (gang65) wrote : | #11 |
After install from proposed (precise), the problem with suspend has gone for me.
tags: |
added: verification-done removed: verification-needed |
Launchpad Janitor (janitor) wrote : | #12 |
This bug was fixed in the package gnome-settings-
---------------
gnome-settings-
* debian/
- Make suspend and blanking time followed gsettings precisely,
fix suspend and blanking time related to idle-dim-time issue.
(LP: #1055874)
-- Jian-Ding Chen (timchen119) <email address hidden> Mon, 11 Nov 2013 14:12:28 +0800
Changed in gnome-settings-daemon (Ubuntu Precise): | |
status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for gnome-settings-
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.