Bug 679083 - [gnome-power-manager] system does not suspend after interval has elapsed
Summary: [gnome-power-manager] system does not suspend after interval has elapsed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-session
Version: 15
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 702170 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-21 14:37 UTC by Joachim Frieben
Modified: 2011-05-09 04:00 UTC (History)
6 users (show)

Fixed In Version: gnome-power-manager-3.0.0-2.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-09 04:00:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch (2.03 KB, patch)
2011-03-13 09:42 UTC, Vadim Girlin
no flags Details | Diff
patch (1.12 KB, patch)
2011-05-02 23:20 UTC, Matthias Clasen
no flags Details | Diff

Description Joachim Frieben 2011-02-21 14:37:58 UTC
Description of problem:
On a fully updated F15 system, the screensaver sets in after 10 min. THe power manager has been set to suspend the system after 30 min. One would thus expect the system to go to sleep after 40 min at most. However, even hour laters, the system keeps on running albeit at least the monitor has entered energy saving mode (front LED has turned yellow).

Version-Release number of selected component (if applicable):
gnome-power-manager-2.91.5-4.fc15.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Start GNOME session and set g-p-m to suspend the system after 30 min.
2. Wait a few hours.
  
Actual results:
System keeps on running.

Expected results:
System has entered suspend mode.

Additional info:
- Suspend works when triggered from the login panel.
- Timed suspend used to work in previous releases of Fedora.
- http://www.smolts.org/client/show/pub_ad7c9e27-2faf-47b4-a6d5-0487c4644fb8

Comment 1 Joachim Frieben 2011-02-26 10:23:21 UTC
No improvement for gnome-power-manager-2.91.90-1.fc15.x86_64.

Comment 2 Vadim Girlin 2011-03-13 09:42:32 UTC
Created attachment 483968 [details]
patch

Same problem with gnome-power-manager-2.91.90-1.fc15.x86_64

It seems that return value of function gpm_idle_is_session_idle (src/gpm-idle.c) is always false because cached value of 'status' property is never updated. I tried to use value from "StatusChanged" signal instead and it works as expected.

Comment 3 Joachim Frieben 2011-03-25 11:02:41 UTC
(In reply to comment #2)
Patch proposed in attachment 483968 [details] and applied to gnome-power-manager-2.91.92-2.fc15 resolves the issue.

Comment 4 Joachim Frieben 2011-03-31 09:30:02 UTC
Issue persists for gnome-power-manager-2.91.93-1.fc15.

Comment 5 Joachim Frieben 2011-04-14 06:45:04 UTC
No improvement for gnome-power-manager-3.0.0-1.fc15.

Comment 6 Richard Hughes 2011-04-26 10:07:23 UTC
(In reply to comment #2)
> It seems that return value of function gpm_idle_is_session_idle
> (src/gpm-idle.c) is always false because cached value of 'status' property is
> never updated. I tried to use value from "StatusChanged" signal instead and it
> works as expected.

I think gnome-session needs to emit the DBus PropertyChanged signals to make this work correctly. I would rather fix the root cause rather than use a workaround. I'll reassign to g-s.

Comment 7 Colin Walters 2011-05-02 22:14:44 UTC
(In reply to comment #6)
> (In reply to comment #2)
> > It seems that return value of function gpm_idle_is_session_idle
> > (src/gpm-idle.c) is always false because cached value of 'status' property is
> > never updated. I tried to use value from "StatusChanged" signal instead and it
> > works as expected.
> 
> I think gnome-session needs to emit the DBus PropertyChanged signals to make
> this work correctly. I would rather fix the root cause rather than use a
> workaround. I'll reassign to g-s.

Nothing using dbus-glib emits this signal now.  You'd need to connect to the StatusChanged signal, and then call:

g_dbus_proxy_set_cached_property ("status").

See the docs for that function.

Comment 8 Matthias Clasen 2011-05-02 23:20:53 UTC
Created attachment 496406 [details]
patch

Comment 9 Matthias Clasen 2011-05-02 23:25:50 UTC
Upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=649240

Comment 10 Fedora Update System 2011-05-04 13:10:38 UTC
gnome-power-manager-3.0.0-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/gnome-power-manager-3.0.0-2.fc15

Comment 11 Fedora Update System 2011-05-05 04:42:26 UTC
Package gnome-power-manager-3.0.0-2.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gnome-power-manager-3.0.0-2.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/gnome-power-manager-3.0.0-2.fc15
then log in and leave karma (feedback).

Comment 12 Jean-François Fortin Tam 2011-05-05 20:58:17 UTC
*** Bug 702170 has been marked as a duplicate of this bug. ***

Comment 13 Fedora Update System 2011-05-09 04:00:24 UTC
gnome-power-manager-3.0.0-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.