[Pkg-xfce-devel] Bug#755234: Bug#755234: reload logind

Martin Schwenke martin at meltin.net
Wed Aug 6 20:42:55 UTC 2014


On Wed, 06 Aug 2014 18:30:09 +0200, Yves-Alexis Perez
<corsac at debian.org> wrote:

> On jeu., 2014-08-07 at 00:48 +0900, Norbert Preining wrote:

> > one more thing:
> >         systemctl restart systemd-logind
> > should give you the effect you want without rebooting.
> 
> But would break permissions for the current session, aiui. So it seems
> the best is still to restart the session, unfortunately.

My session permissions broke some time ago, so I searched the web and
decided to do this:

  # cat /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla 
  [Local actions]
  Identity=unix-group:adm
  Action=org.freedesktop.upower.*;org.freedesktop.consolekit.system.*;org.freedesktop.udisks.*;org.freedesktop.udisks2.*;org.freedesktop.login1.*
  ResultAny=yes
  ResultInactive=no
  ResultActive=yes

For whatever reason, I also had to put the same thing in
/var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla.  I
also had to update this with the login1.* when systemd took over.

As per Norbet's comment, with current patch (for battery notification)
I also can close the lid now and it no longer suspends (correct
behaviour for my configuration on AC, incorrect on battery).
Hopefully I'll notice this late in the day after I close the lid but
before I put my laptop in my bag...  ;-)

peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20140807/0476c4f5/attachment.sig>


More information about the Pkg-xfce-devel mailing list