You are not logged in.

#1 2016-12-05 23:14:12

yogimiom
Member
Registered: 2014-03-28
Posts: 9

graphical reboot/poweroff not working in LXDE session

When I try to hibernate/reboot/poweroff the computer using the graphical tool from my LXDE session, I get this error message:
"GDBus.Error:org.freedesktop.DBus.Error.InteractiveAuthorizationRequired:Interactive authentication required"

All I can do is logout, then reboot or poweroff.

If I use the command in a terminal:

$ reboot
Failed to set wall message, ignoring: Interactive authentication required.
Failed to reboot system via logind: Interactive authentication required.
Failed to talk to init daemon.

This is working though if I use systemctl:

$ systemctl reboot
==== AUTHENTICATING FOR org.freedesktop.login1.set-wall-message ===
Authentification requise pour définir un message wall.
Authenticating as: username
Password: 

Looking into the boot logs I found this line:

lxdm-session[399]: pam_systemd(lxdm:session): Failed to create session: Connection timed out

Not sure this is related or not, I suppose it is... Any help is welcome, tell me if I need to post more details.

Last edited by yogimiom (2016-12-05 23:36:01)

Offline

#2 2016-12-06 08:43:36

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: graphical reboot/poweroff not working in LXDE session

output of "loginctl" and "loginctl  show-session"? How do you launch lxde? dbus-launch or ck-launch-session involved?

Offline

#3 2016-12-06 11:39:57

yogimiom
Member
Registered: 2014-03-28
Posts: 9

Re: graphical reboot/poweroff not working in LXDE session

$ loginctl 
   SESSION        UID USER             SEAT             TTY             
        c1       1000 miom             seat0            tty1            

1 sessions listed.
$ loginctl show-session 
EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
RemoveIPC=yes
RuntimeDirectorySize=831107072
InhibitorsMax=8192
NCurrentInhibitors=0
SessionsMax=8192
NCurrentSessions=1
UserTasksMax=10813

LXDE is launched via lxdm.

Offline

#4 2016-12-06 12:30:51

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: graphical reboot/poweroff not working in LXDE session

Do you have lxsession resp. lxqt-policykit, installed and is the agent (lxpolkit resp. lxqt-policykit-agent) running?

Offline

#5 2016-12-06 14:05:42

yogimiom
Member
Registered: 2014-03-28
Posts: 9

Re: graphical reboot/poweroff not working in LXDE session

Apparently lxqt-policykit is not installed :

$ pacman -Qs policykit
local/polkit-qt5 0.112.0+git20160226-1
    A library that allows developers to access PolicyKit API with a nice
    Qt-style API

On the Archwiki polkit page it is said that "Cinnamon, Deepin, GNOME, GNOME Flashback, KDE, LXDE, LXQt, MATE and Xfce have an authentication agent already" so I did not install this package. And until recently it was working fine.

Did I miss something? I thought LXDE was using lxpolkit rather than lxqt-policykit?
Sorry if I'm asking stupid questions and thank your for your help!

Offline

#6 2016-12-06 14:28:54

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: graphical reboot/poweroff not working in LXDE session

you need *either* lxsession (original LXDE) *or* lxqt-policykit (LXQt)
At least lxsession is not a dependency of anything, so you might not have installed it.

The setup seems to require you to authenticate for a reboot but you're apparently not getting a respective dialog - which would be the job of such agent.

If no such agent is installed and running, there's your problem.

The session itself seems ok, but the reason that you need to authenticate itfp is (likely, given the relevant action) "EnableWallMessages=no" (but i've no idea why  that's disabled on your side)

Offline

#7 2016-12-06 14:35:13

yogimiom
Member
Registered: 2014-03-28
Posts: 9

Re: graphical reboot/poweroff not working in LXDE session

lxsession is installed indeed. And I just reinstalled it after reading your post to see if the config would reset to classic behaviour...
Any idea how I can enable wall messages?

Offline

#8 2016-12-06 14:43:16

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: graphical reboot/poweroff not working in LXDE session

First things first: do you have a running lxpolkit process? (And do you otherwise get authentication dialogs?)

I'm not even sure whether that setting controls it or why you need to authenticate, since the (apparently) active user should not have to.

Does  "loginctl user-status" say that you're the active user?

Offline

#9 2016-12-06 15:06:25

yogimiom
Member
Registered: 2014-03-28
Posts: 9

Re: graphical reboot/poweroff not working in LXDE session

I've got a polkitd process. No graphical authentication dialogs, only on the terminal.
And yes I'm the current user :

$ loginctl user-status 
miom (1000)
           Since: Tue 2016-12-06 12:33:56 CET; 3h 22min ago
           State: closing
        Sessions: *c1
          Linger: no
            Unit: user-1000.slice

Offline

#10 2016-12-06 15:40:46

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: graphical reboot/poweroff not working in LXDE session

> State: closing
That should say "active"; when did you fetch this? Before or after atempting to shutdown?

Offline

#11 2016-12-06 15:41:42

yogimiom
Member
Registered: 2014-03-28
Posts: 9

Re: graphical reboot/poweroff not working in LXDE session

After.

Offline

#12 2016-12-06 15:48:10

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: graphical reboot/poweroff not working in LXDE session

Ok, try right before, but what might indeed happen is that the session status changes right before the priv elevation is required (thus it requires a polkit agent which probably has been shutdown already) IOW, the way lxde exits the session.
Did you attempt to "reboot" from the terminal (or even better: use the "systemctl reboot" command) before attempting to reboot from the LXDE GUI? (ie. in a clean stage)

Offline

#13 2016-12-06 15:56:47

yogimiom
Member
Registered: 2014-03-28
Posts: 9

Re: graphical reboot/poweroff not working in LXDE session

In a clean stage no, my first attempt was the GUI.
I powered off or rebooted using systemctl several times since this problem appeared, always trying the GUI first ; it works every time. Using the command "reboot" without systemctl fails.

Offline

#14 2016-12-06 16:04:19

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: graphical reboot/poweroff not working in LXDE session

It does *not* work - you get a password prompt, but shouldn't (and that's why the GUI "fails" - it, also, fails on presenting you such dialog)

Please reboot (anyhow), login and try "systemctl reboot" directly, w/o trying the GUI first and see whether you can reboot w/o getting a password promt (or sudo'ing)

Offline

#15 2016-12-06 16:08:25

yogimiom
Member
Registered: 2014-03-28
Posts: 9

Re: graphical reboot/poweroff not working in LXDE session

All right. I just did that, and still a password prompt

Offline

Board footer

Powered by FluxBB