Cannot Logout of KDE

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Cannot Logout of KDE

Postby BHReach » Nov 8th, '15, 03:13

I had a situation occur where I could not logout of KDE.

Everything else seemed to be working but clicking on the logout entry in the menu did nothing.

I had to Kill the X server, the screen went blank for a few seconds and then the login screen came up.

It hasn't happened again but I stopped using KDE for the most part and switched to icewm for my desktop.
BHReach
 
Posts: 14
Joined: Nov 3rd, '15, 20:01

Re: Cannot Logout of KDE

Postby doktor5000 » Nov 8th, '15, 12:20

Please have a look at viewtopic.php?f=7&t=10391 as it is a similar topic.
And please provide the output of the following commands, as normal user:

Code: Select all
rpm -qa systemd polkit
ps -ef|grep -v grep|grep -iE "polkit|policykit"
loginctl show-session $XDG_SESSION_ID
pkexec whoami        (you need to enter the root password in the authentication dialog that pops up)
qdbus org.kde.ksmserver /KSMServer


and as root the output of
Code: Select all
systemctl status polkit.service -a


You can try logout as normal user via
Code: Select all
qdbus org.kde.ksmserver /KSMServer logout 0 2 0

and please also post the result for that.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot Logout of KDE

Postby BHReach » Nov 9th, '15, 06:21

Result of commands

Code: Select all
$ rpm -qa systemd polkit
polkit-0.113-1.1.mga5
systemd-217-11.1.mga5

$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd   3703     1  0 22:56 ?        00:00:00 /usr/lib/polkit-1/polkitd --no-debug
bhr       3779     1  0 22:56 ?        00:00:00 /usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1

$ loginctl show-session $XDG_SESSION_ID
Id=c1
Name=bhr
Timestamp=Sun 2015-11-08 22:56:31 EST
TimestampMonotonic=298801361
VTNr=1
Display=:0
Remote=no
Service=kdm
Scope=session-c1.scope
Leader=2353
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0

$ pkexec whoami
root

$ qdbus org.kde.ksmserver /KSMServer
method bool org.kde.KSMServerInterface.canShutdown()
method QString org.kde.KSMServerInterface.currentSession()
method void org.kde.KSMServerInterface.logout(int, int, int)
method void org.kde.KSMServerInterface.restoreSubSession(QString)
method void org.kde.KSMServerInterface.resumeStartup(QString)
method void org.kde.KSMServerInterface.saveCurrentSession()
method void org.kde.KSMServerInterface.saveCurrentSessionAs(QString)
method void org.kde.KSMServerInterface.saveSubSession(QString, QStringList, QStringList)
method QStringList org.kde.KSMServerInterface.sessionList()
signal void org.kde.KSMServerInterface.subSessionCloseCanceled()
signal void org.kde.KSMServerInterface.subSessionClosed()
signal void org.kde.KSMServerInterface.subSessionOpened()
method void org.kde.KSMServerInterface.suspendStartup(QString)
method void org.kde.KSMServerInterface.wmChanged()
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)
method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()
method QString org.freedesktop.DBus.Peer.GetMachineId()
method void org.freedesktop.DBus.Peer.Ping()

# systemctl status polkit.service -a
● polkit.service - Authorization Manager
   Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
   Active: active (running) since Sun 2015-11-08 22:56:38 EST; 9min ago
     Docs: man:polkit(8)
 Main PID: 3703 (polkitd)
   CGroup: /system.slice/polkit.service
           └─3703 /usr/lib/polkit-1/polkitd --no-debug

Nov 08 22:56:38 localhost.localdomain polkitd[3703]: Started polkitd version 0.113
Nov 08 22:56:38 localhost.localdomain polkitd[3703]: Loading rules from directory /etc/polkit-1/rules.d
Nov 08 22:56:38 localhost.localdomain polkitd[3703]: Loading rules from directory /usr/share/polkit-1/rules.d
Nov 08 22:56:38 localhost.localdomain polkitd[3703]: Finished loading, compiling and executing 3 rules
Nov 08 22:56:38 localhost.localdomain polkitd[3703]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Nov 08 22:56:38 localhost.localdomain systemd[1]: Started Authorization Manager.
Nov 08 22:56:51 localhost.localdomain polkitd[3703]: Registered Authentication Agent for unix-session:c1 (system bus name :1.41 [/usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Nov 08 23:03:52 localhost.localdomain polkitd[3703]: Operator of unix-session:c1 successfully authenticated as unix-user:root to gain ONE-SHOT authorization for action org.freedesktop.policykit.exec for unix-process:4385:43787 [/bin/bash] (owned by unix-user:bhr)


Code: Select all
$ qdbus org.kde.ksmserver /KSMServer logout 0 2 0


Gave no output but shutdown and turned the computer off.

Before running these commands, I updated all the software. The problem only occurred once. Kde was the default install, I did not modify it.
BHReach
 
Posts: 14
Joined: Nov 3rd, '15, 20:01

Re: Cannot Logout of KDE

Postby doktor5000 » Nov 9th, '15, 08:20

BHReach wrote:Before running these commands, I updated all the software. The problem only occurred once.

Then you were missing updates. Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Cannot Logout of KDE

Postby doktor5000 » Nov 10th, '15, 22:23

FWIW, if it reoccurs, could also be this bug which was recently reported: https://bugs.mageia.org/show_bug.cgi?id=17123
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18058
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest