You are not logged in.

#1 2013-01-12 20:41:09

Bladtman242
Member
Registered: 2012-02-14
Posts: 127

Restarting X causes polkit to ask for authentication later

with the "new" systemd setup suspend, hibernate, reboot, and poweroff promts the user if more than one session is active.

==== AUTHENTICATING FOR org.freedesktop.login1.suspend ===
Authentication is required for suspending the system.
Authenticating as: Sigurt Bladt Dinesen,,, (bladt)
Password:

If I kill X, or call "systemctl restart slim", the next time I try one of the power commands I get prompted for my password.
As I understand it, it either means that I'm not in a "systemd-logind session" or that several users are.
What is wrong, and what can I do?

Last edited by Bladtman242 (2013-01-12 20:45:03)

Offline

#2 2013-01-12 23:50:54

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Restarting X causes polkit to ask for authentication later

Please use the search function of the forums.

Offline

#3 2013-01-13 00:21:44

Bladtman242
Member
Registered: 2012-02-14
Posts: 127

Re: Restarting X causes polkit to ask for authentication later

Either you didn't actually read my question, or I suck at searching.
"authenticate" no luck
"polkit" no luck
"restart x" no luck
"freedesktop" no luck
If you know about a thread that I can't find, a link sure would be useful.

Offline

#4 2013-01-13 00:24:55

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Restarting X causes polkit to ask for authentication later

Well, I sure as hell am not going to search for you.  But there is a bug with slim and it doesn't fully log you out from your session.  So it appears to the system as though a second user is still kind of logged in.  This has been discussed a few times on these forums.

Offline

#5 2013-01-13 11:13:09

Bladtman242
Member
Registered: 2012-02-14
Posts: 127

Re: Restarting X causes polkit to ask for authentication later

I can't find those threads searching for variations of slim, slim restart x, slim polkit.
I tried setting slim options:

topsessionstart_cmd /usr/bin/sessreg -a -l $DISPLAY %USER
topsessionstop_cmd /usr/bin/sessreg -d -l $DISPLAY %USER

But it didn't help.
Perhaps some systemd command should be used?
The wiki page for slim says that slim, per default, used the systemd systems for sessions now, so I find it weird that it doesn't work.

Offline

Board footer

Powered by FluxBB