You are not logged in.

#1 2013-11-18 00:45:12

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 310

KDE logout/shutdown no longer working

Hello,

Since last pacman -Syu, KDE logout, shutdown or restart is no longer working.

None of these options do anything at all. I also read somewhere that "qdbus org.kde.ksmserver /KSMServer logout 0 2 2" should do something. For me that gives an error that it doesn't know qbus, but maybe that is renamed to qbus-qt4. And, typing "qdbus-qt4 org.kde.ksmserver /KSMServer logout 0 2 2" gives no response at all. It outputs an empty newline in the terminal, for the rest nothing.

My KDE version is: 4.11.3

How can I get these working again?

Thanks!

Offline

#2 2013-11-18 02:46:37

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: KDE logout/shutdown no longer working

What was updated?

Can you shutdown etc. OK using systemctl commands directly?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-11-19 23:30:55

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 310

Re: KDE logout/shutdown no longer working

Everything was updated, since I did pacman -Syu. There were a few months between that and the last pacman -Syu I did, so quite a lot upgraded.

I also tried looking in the systemd logs, but nothing gets appended to it when trying the shutdown or logout buttons of KDE. Since "logout" also doesn't work, I think it's a KDE problem by the way.

"shutdown -h now" as root works. What parameters would systemctl need for a shutdown?

Thanks.

Last edited by aardwolf (2013-11-19 23:33:53)

Offline

#4 2013-11-19 23:46:28

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: KDE logout/shutdown no longer working

Happened to me more than once, I had to change the 'session management' option on the Autostart menu from the control panel to 'Start with an empty session'. After forcing a restart as root, I can now shutdown/restart as a normal user. Hope it helps

Offline

#5 2013-11-19 23:48:18

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: KDE logout/shutdown no longer working

@aardwolf - systemctl poweroff

Offline

#6 2013-11-20 03:40:42

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: KDE logout/shutdown no longer working

aardwolf wrote:

Everything was updated, since I did pacman -Syu. There were a few months between that and the last pacman -Syu I did, so quite a lot upgraded.

Did you deal with the .pacnew and .pacsave files? Did you go through pacman's output and follow any instructions to update your system correctly? There are bound to be some things like this if it is months since you upgraded!


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#7 2013-11-20 09:33:52

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 310

Re: KDE logout/shutdown no longer working

"systemctl poweroff" powers off the system immediately - a bit too immediately I think.

So the issue is clearly KDE related.

On the internet I find there are many commands with qbus (which is qdbus-qt4 now or in Archlinux) that should make KDE logout/shutdown/etc.... and for me these do nothing, except output an extra newline in the terminal. No error message either. Nothing in logs.

Any idea how I could debug or find error messages for such issue?

cfr wrote:
aardwolf wrote:

Everything was updated, since I did pacman -Syu. There were a few months between that and the last pacman -Syu I did, so quite a lot upgraded.

Did you deal with the .pacnew and .pacsave files? Did you go through pacman's output and follow any instructions to update your system correctly? There are bound to be some things like this if it is months since you upgraded!

The last instruction on archlinux.org is from 2013-09-17, around 2 months ago, and I did upgrade in between that too. The last instruction also did not apply to me. The most recent pacsave/pacnew files I found are much older than this update: group.pacnew, gshadow.pacnew, pacman.conf.pacnew, rc_maps.cfg.pacnew. Could any of those be related? It doesn't look like it to me.

Thanks.

Last edited by aardwolf (2013-11-20 19:50:03)

Offline

#8 2013-11-21 00:56:03

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: KDE logout/shutdown no longer working

Check for kdmrc.pacnew if you've ever edited it (through the GUI or the CLI).

Whether those .pacnew files are causing this particular issue or not, you should deal with them because they will cause problems at some point. Especially those affecting ownership and permissions and pacman's, of course. (Don't know about rc_maps.cfg.) Are you sure those are the only ones? If the dates on my system are anything to go by, those were upgraded a while ago and I'd expect you to have accumulated others in the meantime.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-11-23 20:34:31

aardwolf
Member
From: Belgium
Registered: 2005-07-23
Posts: 310

Re: KDE logout/shutdown no longer working

I found the solution. I think it was unrelated to the pacman update.

Doing "killall startkde" fixed everything.

There were in fact a few more things screwed up in my KDE, and since I could never properly shut it down, it could I guess never properly save its state either. But it listened to kill and probably did correctly shut itself down this time, and now everything works fine after reboot, including shutting it down smile

I have a suspicion by the way that this all started by accidently closing and restarting kmix, as if starting kmix manually confused something in KDE.

Offline

Board footer

Powered by FluxBB