Bug#761652: Closing lid with multiple sessions open fails with an polkit authentication session on the inactive session
Michael Biebl
biebl at debian.org
Sun Aug 30 15:41:38 BST 2015
Control: reassign -1 powerdevil
On Mon, 15 Sep 2014 14:21:41 +0200 Didier Raboud <odyx at debian.org> wrote:
> Package: systemd
> Version: 208-8
> Severity: important
> File: /usr/share/polkit-1/actions/org.freedesktop.login1.policy
>
> Hi,
>
> as discussed today on IRC with sjoerd, here's my use-case: I routinely
> have two KDE sessions open and want my laptop lid closure to always
> suspend the (X220 Thinkpad) laptop. According to
> /usr/share/polkit-1/actions/org.freedesktop.login1.policy , this is what
> should happen.
>
> Besides, it doesn't: when closing the laptop lid, the two sessions get
> locked by KDE and the _inactive_ session gets a (hidden by the locking
> screen) PolKit authentication screen. The laptop doesn't suspend (as
> the action is inhibited by this authentication screen). When opening the
> lid, I can unlock the inactive session and authenticate through the
> PolKit authentication window and the laptop suspens _then_.
>
> (The doubly annoying factor is that I use fprintd for this inactive
> session, which means that on lid closure, the fingerprint reader powers
> up, heats _and_ is inaccessible as below the screen. [It powers up for
> the PolKit authentication window]).
>
> Now, I've investigated and added a
> /etc/polkit-1/localauthority/50-local.d/force-suspend.pkla file with the
> following content:
> [Enforce the suspension on lid close]
> Identity=unix-user:*
> Action=org.freedesktop.login1.suspend-multiple-sessions
> ResultInactive=no
>
> (That's a transformation of the corresponding
> <allow_inactive>auth_admin_keep</allow_inactive> from
> /usr/share/polkit-1/actions/org.freedesktop.login1.policy into
> <...>no<...>)
>
> The addition of this file makes the suspension work reliably from any of
> the two active sessions, without a prompt on the other (inactive)
> session. I suggest changing the value of allow_inactive for
> suspend-multiple-sessions to 'no' then.
>
> Please ask if you need other details on my setup.
>
> Cheers,
Given the upstream response, I'm going to re-assign this to powerdevil.
CCing the maintainers, so quoting the full message.
Regards,
Michael
--
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...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20150830/3aa5e372/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list