Bug 859224 - Please take systemd-logind's handle-power-key/handle-suspend-key/handle-hibernate-key/handle-lid-switch inhibitor locks if GNOME wants to handle the respective keys on its own
Summary: Please take systemd-logind's handle-power-key/handle-suspend-key/handle-hiber...
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-settings-daemon
Version: 18
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Bastien Nocera
QA Contact: Fedora Extras Quality Assurance
Whiteboard: RejectedBlocker
: 865362 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2012-09-20 20:22 UTC by Lennart Poettering
Modified: 2013-01-18 15:50 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-12-20 15:56:24 UTC
Type: Bug

Attachments (Terms of Use)

Description Lennart Poettering 2012-09-20 20:22:28 UTC
With systemd-190 we have changed the lid switch logic, as discussed here:


If GNOME wants to handle the power key/reset key/lid switch on its own it should take the "handle-power-key", "handle-reset-key", "handle-lid-switch" inhibitor locks while running. It can do this either natively in C by accessing logind's D-Bus API (see above), or simply by wrapping the invocation of gnome-session in an invocation of systemd-inhibit.


systemd-inhibit --what=handle-power-key:handle-reset-key:handle-lid-switch gnome-session


Comment 1 Lennart Poettering 2012-09-20 20:26:49 UTC
I am a bit confused apparently. Replace "reset key" with "sleep key" everywhere in what I wrote above. Sorry for the confusion.

Comment 2 Lennart Poettering 2012-09-25 23:00:52 UTC
Let's make this even more confusing. The "sleep key" logic got split up into "suspend key" and "hibernate key"

Comment 3 Matthias Clasen 2012-09-26 23:02:24 UTC
We'll put a patch for this into gnome-settings-daemon,

Comment 4 Matthias Clasen 2012-09-27 00:42:57 UTC
Not doing this leads to pretty bad double-suspend behaviour, so putting this on the F18Beta

Comment 5 Fedora Update System 2012-10-02 17:33:01 UTC
gnome-settings-daemon-3.6.0-3.fc18 has been submitted as an update for Fedora 18.

Comment 6 Fedora Update System 2012-10-02 19:49:01 UTC
Package gnome-settings-daemon-3.6.0-3.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gnome-settings-daemon-3.6.0-3.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 7 Adam Williamson 2012-10-03 17:40:53 UTC
Discussed at 2012-10-03 blocker review meeting: http://meetbot.fedoraproject.org/fedora-qa/2012-10-03/f18-beta-blocker-review-2.2012-10-03-16.00.log.txt . Rejected as a blocker, the only known practical impact of this is on suspend (closing lid of a laptop would suspend on close and then again on open, so you'd have to push power button), and suspend is generally not a blocker for Beta (there are no criteria for suspend, intentionally). We agreed to leave NTH status open, since there's still nearly a week before freeze anyway and this will in all likelihood get pushed before then.

Comment 8 Fedora Update System 2012-10-04 02:06:41 UTC
Package gnome-settings-daemon-3.6.0-4.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gnome-settings-daemon-3.6.0-4.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2012-10-09 09:39:49 UTC
gnome-settings-daemon-3.6.1-2.fc18 has been submitted as an update for Fedora 18.

Comment 10 Lukáš Zachar 2012-10-11 14:22:34 UTC
*** Bug 865362 has been marked as a duplicate of this bug. ***

Comment 11 Fedora Update System 2012-12-20 15:56:26 UTC
gnome-settings-daemon-3.6.0-4.fc18 has been pushed to the Fedora 18 obsolete 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.