You are not logged in.
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
output of "loginctl" and "loginctl show-session"? How do you launch lxde? dbus-launch or ck-launch-session involved?
Offline
$ 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
Do you have lxsession resp. lxqt-policykit, installed and is the agent (lxpolkit resp. lxqt-policykit-agent) running?
Offline
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
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
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
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
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
> State: closing
That should say "active"; when did you fetch this? Before or after atempting to shutdown?
Offline
After.
Offline
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
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
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
All right. I just did that, and still a password prompt
Offline