F18 - laptop suspends twice under Xfce
Maciek Borzęcki
maciek.borzecki at gmail.com
Thu Dec 13 10:29:14 UTC 2012
On Thu, 2012-12-13 at 09:47 +0100, Maciek Borzęcki wrote:
> On Thu, 2012-12-13 at 08:44 +0100, fedora wrote:
> > Is there something crazy in the suspend/resume scripts in
> > /usr/lib(64)/pm-utils/sleep.d/ scripts?
>
> There doesn't seem to be anything out of the ordinary.
>
> Any ideas on how the suspend is done these days? Is it still upowerd who
> writes mem to /sys/power/state or something else?
It turns out that systemd is the culprit (if not in full then at least
it takes a part of the blame).
In recent versions of systemd, logind seems to be able to handle ACPI
events. By default this functionality is enabled, so lid close or
suspend key will trigger instant suspend via systemd-logind. My guess is
that xfce power manager is not aware of that (gnome's pm is), hence it
does not ignore the suspend event.
As a solution, in /etc/systemd/logind.conf put the following lines:
HandlePowerKey=ignore
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
Related bugs reported to Xfce issue tracker:
https://bugzilla.xfce.org/show_bug.cgi?id=9326
https://bugzilla.xfce.org/show_bug.cgi?id=9335
--
Maciek Borzecki
More information about the users
mailing list