[Pkg-systemd-maintainers] Bug#717661: Bug#717661: Bug#717661: Bug#717661: New suspend functionality causes double-suspend for environments not supporting the inhibit API

Michael Biebl biebl at debian.org
Wed Jul 24 17:54:57 BST 2013


Am 24.07.2013 06:33, schrieb Martin Pitt:
> Michael Biebl [2013-07-23 20:16 +0200]:
>>> Would it be an acceptable alternative to ship logind.conf with
>>> HandlePowerKey=ignore, HandleSuspendKey=ignore,
>>> HandleHibernateKey=ignore and HandleLidSwitch=ignore?
>>
>> That's a question I've already asked myself
> 
> Right now we have acpid in Debian to handle the power key, and nothing
> to handle a lid close if there is no session running or you are on a
> VT. IMHO acpi-support and acpid ought to go away some day, and logind
> can take over this functionality.
> 
>>> Or do GNOME and KDE actually use some of these features, just not all of
>>> them?
>>
>> TBH, I don't know what happens with KDE 4.10 and GNOME 3.8 if we set
>> those keys to ignore.
> 
> GNOME 3.8 just won't suspend any more on lid close, as g-s-d power
> relies on lightdm to do it. It just inhibits that behaviour while its
> policy determines that the suspend should *not* happen.

Thanks for the insight. Ok, so basically they rely on systemd/logind to
initiate the suspend, and simply inhibit/delay the suspend under certain
circumstances. GNOME (and KDE) will no longer initiate a suspend request
themselves. Is that correct?

If so, I guess setting the Suspend action ignore is a no-go, since we
don't want to brake suspend for those.

Martin, any idea how your non-GNOME/non-KDE spins, like LXDE and XFCE,
handle that in Ubuntu?

I'll probably keep experimenting with the Xsession.d script for a little
bit.

For acpid/acpi-support, we can simply make it systemd-aware, i.e. add
systemd-logind to /usr/share/acpi-support/policy-funcs:CheckPolicy().


Michael

P.S: Martin, not sure if it's related, but since some time, I get upower
timeouts after a suspend-resume cycle. E.g. upower -d simply runs into a
D-Bus timeout and the power indicator in GNOME shell stops updating. Any
idea what might be going on here? the upowerd daemon is still running,
it just seems to longer respond on any incoming (D-Bus) requests.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20130724/acc88a42/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list