Skip to content

Power manager tries to suspend on lid close even when session is inactive

Submitted by Maxim Mikityanskiy

Assigned to Ali Abdallah @ali

Link to original bug (#11528)

Description

I'm on Gentoo, using xfce4-power-manager 1.4.2, systemd, upower, lightdm and light-locker. When I lock my session, I get switched to lightdm greeter, so my session becomes inactive. Now lid closed event should be handled by systemd-logind (and it's working fine), but xfce4-power-manager still receives upower notifications on lid closing and also tries to suspend. Put xfce4-power-manager fails to suspend when user session is inactive (polkit doesn't allow this), so error message window from polkit agent appears.

xfce4-power-manager must not try to suspend on lid and button events when user session is not active.

If you need more information, ask me, and I'll provide you what you need.

Version: 1.4.x