Bug 751554

Summary: g-s-d reports error when pressing Suspend key
Product: [Fedora] Fedora Reporter: Michael Ekstrand <michael>
Component: gnome-settings-daemonAssignee: Bastien Nocera <bnocera>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: bnocera, danw, hannes, mishu, mkasik, rstrode
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-11 16:03:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michael Ekstrand 2011-11-05 12:42:27 UTC
Description of problem:
When I press the Suspend key (Fn+F1) on my ASUS laptop, nothing happens and gnome-settings-daemon prints the following in my ~/.xsession-errors:

(gnome-settings-daemon:1541): media-keys-plugin-WARNING **: couldn't sleep using UPower: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files

Version-Release number of selected component (if applicable):
gnome-settings-daemon-3.2.1-3.fc16.i686
gnome-power-manager-3.2.1-1.fc16.i686

How reproducible:
Always on my ASUS.

Steps to Reproduce:
1. Press Fn+F1 on ASUS laptop (Suspend key on other machines?)
  
Actual results:
No visible action, above message printed in ~/.xsession-errors.

Expected results:
Laptop suspends.

Additional info:
upowerd is running, and /usr/share/dbus-1/services/org.freedesktop.UPower.service exists. I can also contact UPower manually via DBus.

Comment 1 Hannes Frederic Sowa 2011-11-12 16:33:00 UTC
Seems like gnome-settings-daemon calls UPower on the dbus session bus. The service is only provided on the system bus.

Comment 2 Hannes Frederic Sowa 2011-11-12 16:47:21 UTC
Ah, it is already fixed upstream: <http://git.gnome.org/browse/gnome-settings-daemon/commit/?id=3b41d8d62ebef1070e4304ad40cf395d12834808>

Comment 3 Michael Ekstrand 2012-01-11 16:03:55 UTC
Fixed in update of gnome-settings-daemon - works correctly now.