[Pkg-xfce-devel] Bug#858843: systemd: Default value of LidSwitchIgnoreInhibited should be no
biebl at debian.org
Tue Mar 28 04:30:34 UTC 2017
Am 27.03.2017 um 23:37 schrieb Michael Biebl:
> Am 27.03.2017 um 21:27 schrieb Martin Monperrus:
>>> How exactly do they compete for the "lid closed" event?
>> Both try to perform an action. If they are the same, say suspend, you just have a warning. If they
>> are different, you don't really understand what and why one or the other happens.
>>> I was under the impression, that XFCE nowadays uses logind, does it not?
>> Yes, but systemd does not honor by default the inhibition request for lid events sent by XFCE.
> What's the output of systemd-inhibit
If you read the logind.conf man page carefully, you'll see that logind
does respect low-level block requests. So if xfce4-power-manager takes a
blocking lock on handle-lid-switch it can implement it's own policy.
I just tested in a VM and xfce4-power-manager does take a proper
Who: NetworkManager (UID 0/root, PID 586/NetworkManager)
Why: NetworkManager needs to turn off networks
Who: xfce4-power-manager (UID 1001/test, PID 2138/xfce4-power-man)
Why: xfce4-power-manager handles these events
Who: ModemManager (UID 0/root, PID 561/ModemManager)
Why: ModemManager needs to reset devices
3 inhibitors listed.
I've used xfce4-power-manager-settings to instruct it to do nothing on
lid-close. Closing the lid, nothing happened. So everything is working
as expected. For xfce4-power-manager to successfully take an inhibitor
lock, it needs to run in an active, local session. You can check that via
$ loginctl show-session $XDG_SESSION_ID
Timestamp=Tue 2017-03-28 06:00:00 CEST
Both logind and xfce4-power-manager work as expected. If you still have
something else reacting to power events, I would check if you have
something like acpid running which might interfere. This is no longer a
logind bug though, so closing this report.
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...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the Pkg-xfce-devel