The officially official Devuan Forum!

You are not logged in.

#1 2020-04-05 00:00:36

pit
Member
Registered: 2019-09-02
Posts: 3  

xfce power manager problems after upgrading to beowulf

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

#2 2020-04-05 00:13:18

pit
Member
Registered: 2019-09-02
Posts: 3  

Re: xfce power manager problems after upgrading to beowulf

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

#3 2020-04-05 16:55:04

randomer
Member
Registered: 2019-10-24
Posts: 56  

Re: xfce power manager problems after upgrading to beowulf

I experienced the same issues and I wonder if there is some kind of workaround.

Offline

#4 2020-04-06 06:24:29

xinomilo
Member
Registered: 2017-07-02
Posts: 117  

Re: xfce power manager problems after upgrading to beowulf

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

#5 2020-04-07 20:02:01

pit
Member
Registered: 2019-09-02
Posts: 3  

Re: xfce power manager problems after upgrading to beowulf

xinomilo wrote:

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

Board footer