You are not logged in.
Hello, upgraded from ascii to beowulf, mostly ran smoothly,
but having an issue with xfce power manager - it does not react to open/close laptop lid, and for pressing power buttons whatever commands I would set to execute on those actions in setting.
The state of a lid is reflected correctly in /proc/acpi/button/lid/LID/state, however power manager seems not to get those events, running xfce4-power-manager --debug --no-daemon gives no output.
I quickly browsed web, found that could be of a xfpm configuration and be ralate to xfce somehow thinks logind should handle lid/power button. I tried to play with
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false
and
/etc/systemd/logind.conf (which I dodn't have on my system)
The other problem is that xfpm applet do not show battery state and percentage correcty.
From what xfpm prints into debug console looks it's gonna use consolekit backend for suspending, I'm not very competent in consolekit/logind stuff, what is installed is
pit@p50:~$ aptitude search "consolekit|logind|policykit|polkit" | grep ^i
i consolekit - framework for defining and tracking users, sessions and seats
i A libelogind0 - user, seat and session management library
i A libelogind0:i386 - user, seat and session management library
i A libpolkit-agent-1-0 - PolicyKit Authentication Agent API
i A libpolkit-backend-1-0 - PolicyKit Authorization API
i A libpolkit-backend-consolekit-1-0 - PolicyKit backend API
i A libpolkit-gobject-1-0 - PolicyKit Authorization API
i A libpolkit-gobject-consolekit-1-0 - PolicyKit Authorization API
i A policykit-1 - framework for managing administrative policies and privileges
i policykit-1-gnome - authentication agent for PolicyKit
can please someone explain what could be the cause?
Thanks,
Alexander
Last edited by pit (2020-04-05 00:11:23)
Offline
just to add - suspending/hibernating using xfce panel plugin as well as xfpm CL utility works fine, so it looks like a problem passing lids/buttons events to power manager
Offline
i think you should have libpam-elogind installed.. according to release notes :
The default session manager for all desktops is logind (libpam-elogind).
XFCE and Cinnamon will work with either logind or consolekit. The other
desktop environments will only work with logind.
link : https://files.devuan.org/devuan_beowulf … _notes.txt
if that doesn't help, maybe remove consolekit and go with elogind.. `apt install libpolkit-gobject-elogind-1-0`
note: not using XFCE, just a guess here.
Offline
i think you should have libpam-elogind installed.. according to release notes :
I had consolekit installed previously, switched to elogind but with no success. Sleep mode by timeout works fine, so, yep kind of trouble between login manager and xfpm. That can be the same issue as in many reports with xfpm bugs regarding logind/elogind, will try to take a look on fixes provided, thanks for pointing out!
Offline