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 inhibitor lock: $ systemd-inhibit Who: NetworkManager (UID 0/root, PID 586/NetworkManager) What: sleep Why: NetworkManager needs to turn off networks Mode: delay Who: xfce4-power-manager (UID 1001/test, PID 2138/xfce4-power-man) What: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch Why: xfce4-power-manager handles these events Mode: block Who: ModemManager (UID 0/root, PID 561/ModemManager) What: sleep Why: ModemManager needs to reset devices Mode: delay 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 Id=5 User=1001 Name=test Timestamp=Tue 2017-03-28 06:00:00 CEST TimestampMonotonic=33951653 VTNr=7 Seat=seat0 Display=:0 Remote=no Active=yes State=active 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. Regards, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pkg-xfce-devel mailing list Pkg-xfce-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-xfce-devel