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
No improvement for gnome-power-manager-2.91.90-1.fc15.x86_64.
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.
(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.
Issue persists for gnome-power-manager-2.91.93-1.fc15.
No improvement for gnome-power-manager-3.0.0-1.fc15.
(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.
(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.
Created attachment 496406 [details] patch
Upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=649240
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
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).
*** Bug 702170 has been marked as a duplicate of this bug. ***
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.