| Summary: | [gnome-power-manager] system does not suspend after interval has elapsed | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Joachim Frieben <jfrieben> | ||||||
| Component: | gnome-session | Assignee: | Ray Strode [halfline] <rstrode> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 15 | CC: | jmccann, mclasen, nekohayo, rhughes, rstrode, walters | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | gnome-power-manager-3.0.0-2.fc15 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2011-05-09 04:00:29 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
Joachim Frieben
2011-02-21 14:37:58 UTC
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. |