Kde can not shutdown kde

Dear all,
I am using latest kde version in latest opensuse.

I am working with distro one and a half year now (of course I was doing updates all this period)

The last twenty dates if I have a quite heavy session I can not log off (or shutdown the computer)

I even tried from konsole

qdbus org.kde.ksmserver /KSMServer logout 0 0 0

even that did not work (well right now I can not launch any new apps from kde, but I still work with the already running).

What do you suggest me to do to proceed with system shutdown?

B.R
Alex

close all apllications, then
From a terminal

su -
shutdown -r now

to reboot

Thanks a lot for the answer.
unfortunately this option will not let kde do a ‘normal’ shutdown, in the sense to store your last settings.

I can of course shut it down for now like that, but I have to fix kde’s shut down,log off .

Any suggestions for that?

B.R
Alex

Post more info about your install:
openSUSE version, kde version

Also lets see your repos:

zypper lr -d

Can you logout?
And reboot from the login screen?

Kde 4.6.5 release 8
Welcome to openSUSE 11.4 “Celadon” - Kernel \r (\l).

1 | 11.3_gnome_apps | 11.3 gnome apps | Yes | Yes | 99 | rpm-md | Index of /repositories/GNOME:/Apps/GNOME_STABLE_2.30_openSUSE_11.3 |
2 | Editors | Editors | Yes | Yes | 99 | rpm-md | Index of /repositories/editors/openSUSE_11.4 |
3 | KDS | KDS | Yes | Yes | 99 | rpm-md | Index of /repositories/KDE:/Distro:/Stable/openSUSE_11.4 |
4 | KR46 | KR46 | Yes | Yes | 98 | rpm-md | Index of /repositories/KDE:/Release:/46/openSUSE_11.4 |
5 | KR46-extra | KR46-extra | Yes | Yes | 98 | rpm-md | Index of /repositories/KDE:/Extra/KDE_Release_46_openSUSE_11.4 |
6 | devel:languages:R:patched | devel:languages:R:patched | No | No | 99 | rpm-md | Index of /repositories/devel:/languages:/R:/patched/openSUSE_11.2 |
7 | google-earth | google-earth | No | No | 99 | rpm-md | http://dl.google.com/linux/earth/rpm/stable/x86_64 |
8 | home:eugeneus | home:eugeneus | No | No | 99 | rpm-md | http://download.opensuse.org/repositories/home:/eugeneus/openSUSE_11.2/ |
9 | Index of /suse/11.4 | Index of /suse/11.4 | Yes | Yes | 99 | rpm-md | Index of /suse/11.4 |
10 | openSUSE-11.4-Debug | openSUSE-11.4-Debug | No | No | 99 | yast2 | Index of /debug/distribution/11.4/repo/oss |
11 | openSUSE-11.4-Source | openSUSE-11.4-Source | No | No | 99 | yast2 | Index of /source/distribution/11.4/repo/oss |
12 | openSUSE:11.4 | openSUSE:11.4 | Yes | Yes | 99 | yast2 | Index of /distribution/11.4/repo/oss |
13 | openSUSE:11.4:Contrib | openSUSE:11.4:Contrib | Yes | Yes | 99 | rpm-md | Index of /repositories/openSUSE:/11.4:/Contrib/standard |
14 | repo-11.4-non-oss | openSUSE-11.4 Non-OSS | Yes | No | 99 | yast2 | Index of /distribution/11.4/repo/non-oss |
15 | repo-11.4-oss | openSUSE-11.4 OSS | Yes | No | 99 | yast2 | Index of /distribution/11.4/repo/oss |
16 | repo-11.4-update | openSUSE-11.4 Updates | Yes | Yes | 99 | rpm-md | Index of /update/11.4 |
17 | wine_11.4 | wine 11.4 | Yes | Yes | 99 | rpm-md | Index of /repositories/Emulators:/Wine/openSUSE_11.4

Please do the following, in the order listed

su -
zypper rr 12 
zypper rr 8
zypper rr 3
zypper rr 1

exit the terminal

Next do this
http://dl.dropbox.com/u/10573557/Switcher Pics/11.4_kde46_switch.png

Now reboot
You may have to force it as I described earlier

I have the same issue running KDE 4.7. Any other suggestions besides changing the Repo (seems quite radical and I would prefer not to downgrade)

We need to see your repo list

zypper lr -d

Of course your problem might be solved as easily as doing this:
http://dl.dropbox.com/u/10573557/Switcher Pics/kde47_switch.png

Thank you for the prompt reply.
I am running your suggestion from the link you provided right now.
(Even though I thought that was the way I did the update the first place.)
Gonna come back as soon as it is finished.

PS: Sorry for the double-post.

Ok, the suggestion did not help. (I probably had done the update this way in the first place.) Here is my repo list (I know it is quite long).

#  | Alias                                                   | Name                                                    | Enabled | Refresh | Priority | Type   | URI                                                                                               | Service
---+---------------------------------------------------------+---------------------------------------------------------+---------+---------+----------+--------+---------------------------------------------------------------------------------------------------+--------
 1 | KDE:/Extra/KDE_Release_46_openSUSE_11.4/                | KDE:/Extra/KDE_Release_46_openSUSE_11.4/                | No      | No      |  100     | rpm-md | http://download.opensuse.org/repositories/KDE:/Extra/KDE_Release_46_openSUSE_11.4/                |        
 2 | KDE:/Extra/KDE_Release_47_openSUSE_11.4/                | KDE:/Extra/KDE_Release_47_openSUSE_11.4/                | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Extra/KDE_Release_47_openSUSE_11.4/                |        
 3 | KDE:/Release:/46/openSUSE_11.4/                         | KDE:/Release:/46/openSUSE_11.4/                         | No      | No      |  100     | rpm-md | http://download.opensuse.org/repositories/KDE:/Release:/46/openSUSE_11.4/                         |        
 4 | KDE:/Release:/47/openSUSE_11.4/                         | KDE:/Release:/47/openSUSE_11.4/                         | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Release:/47/openSUSE_11.4/                         |        
 5 | KDE:/Unstable:/Playground/KDE_Release_46_openSUSE_11.4/ | KDE:/Unstable:/Playground/KDE_Release_46_openSUSE_11.4/ | No      | No      |  100     | rpm-md | http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/KDE_Release_46_openSUSE_11.4/ |        
 6 | KDE:/Unstable:/Playground/KDE_Release_47_openSUSE_11.4/ | KDE:/Unstable:/Playground/KDE_Release_47_openSUSE_11.4/ | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/KDE:/Unstable:/Playground/KDE_Release_47_openSUSE_11.4/ |        
 7 | LibreOffice:/Stable/openSUSE_11.4/                      | LibreOffice:/Stable/openSUSE_11.4/                      | Yes     | Yes     |   98     | rpm-md | http://download.opensuse.org/repositories/LibreOffice:/Stable/openSUSE_11.4/                      |        
 8 | Updates-for-openSUSE-11.4-11.4-0                        | Updates for openSUSE 11.4 11.4-0                        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/11.4/                                                         |        
 9 | X11:XOrg                                                | X11:XOrg                                                | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.4/                                |        
10 | download.opensuse.org-UpdatedApps                       | openSUSE BuildService - KDE:UpdatedApps                 | Yes     | Yes     |  100     | rpm-md | http://download.opensuse.org/repositories/KDE:/UpdatedApps/openSUSE_11.4/                         |        
11 | download.opensuse.org-mozilla                           | openSUSE BuildService - Mozilla                         | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/mozilla/openSUSE_11.4/                                  |        
12 | ftp.uni-erlangen.de-suse                                | Packman Repository                                      | Yes     | Yes     |   99     | rpm-md | http://ftp.uni-erlangen.de/pub/mirrors/packman/suse/openSUSE_11.4/                                |        
13 | graphics                                                | graphics                                                | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/graphics/openSUSE_11.4/                                 |        
14 | multimedia:photo                                        | multimedia:photo                                        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/multimedia:/photo/openSUSE_11.4/                        |        
15 | openSUSE-11.4-11.4-0                                    | openSUSE-11.4-11.4-0                                    | Yes     | No      |  100     | yast2  | cd:///?devices=/dev/disk/by-id/ata-Optiarc_DVD_RW_AD-7561A_30647850_2626298Q111,/dev/sr0          |        
16 | opensuse-guide.org-repo                                 | libdvdcss repository                                    | Yes     | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/11.4/                                                              |        
17 | repo-debug                                              | openSUSE-11.4-Debug                                     | No      | Yes     |  100     | NONE   | http://download.opensuse.org/debug/distribution/11.4/repo/oss/                                    |        
18 | repo-debug-update                                       | openSUSE-11.4-Update-Debug                              | No      | Yes     |  100     | NONE   | http://download.opensuse.org/debug/update/11.4/                                                   |        
19 | repo-non-oss                                            | openSUSE-11.4-Non-Oss                                   | Yes     | Yes     |  100     | yast2  | http://download.opensuse.org/distribution/11.4/repo/non-oss/                                      |        
20 | repo-oss                                                | openSUSE-11.4-Oss                                       | Yes     | Yes     |  100     | yast2  | http://download.opensuse.org/distribution/11.4/repo/oss/                                          |        
21 | repo-source                                             | openSUSE-11.4-Source                                    | No      | Yes     |  100     | NONE   | http://download.opensuse.org/source/distribution/11.4/repo/oss/                                   |        

I wouldn’t use #6 or 10 with R47

Ok, with regard to #10…it really makes no sence. I ll disable. But why #6?

It makes no sense having it IMO.
From what I can tell they are git versions and older releases than in the main R47

Can I ask if you have done a test of switching back to R46 to see if the is resolved? (I’m not suggesting that at this point) (Just asking)

I disabled the two repositories. Haven’t tried a switch back to R46 yet. I’ ll try that after the end of the month. (Don’t want to break the things working till then).

From what I understand, this should be some kind of permissions related problem. Can I somehow invoke the KDE shutdown (the one that the menu button is relating too) using a CLI, in order to receive some kind of feedback?

I also tried that:

qdbus org.kde.ksmserver /KSMServer logout 0 0 0

from the post above, even though I must confess I don’t know what it is supposed to do. I got no effect at all, as far as I can tell…and no feedback.

This is for shutdown

qdbus org.kde.ksmserver /KSMServer logout 0 2 2

At least it talks to me now…

Could not connect to D-Bus server: org.freedesktop.DBus.Error.Spawn.ExecFailed: /bin/dbus-launch terminated abnormally with the following error: Autolaunch error: X11 initialization failed.

I did find something on it, but now it’s evaporated from the search result

Anyway. 2 things I noticed recommended.

  1. Was install speex - check if you have that
  2. Was to install (if necessary) and use phonon-backend-vlc

Point 2 above is set in System Settings > Multimedia > Backend (prefer phonon-backend-vlc)

IIRC that info was in arch forum

Thank you for looking into this.

I found the post in the arch forum. However, those people had problems with ogg playback in general, and the reason for not being able to shutdown was that the system could not play the log off sound and aborted the logout sequence.

I figured my problem had something to do with Dbus (ok, a similar entry in the gentoo forums provided the hint). So I changed my Dbus related packages to the ones provided by the Opensuse-Oss repository. There was a single package that was from another repository. Even though the version numbers were the same up to the hyphen…
this solved my problem.:slight_smile:

Again, thank you for your help.

Could you please check my package list again , after I did the changes you

| Alias | Name | Enabled | Refresh | Priority | Type | URI | Service

—±--------------------------------------±--------------------------------------±--------±--------±---------±-------±--------------------------------------------------------------------------------------±-------
1 | Editors | Editors | Yes | Yes | 99 | rpm-md | Index of /repositories/editors/openSUSE_11.4 |
2 | KR46 | KR46 | Yes | Yes | 98 | rpm-md | Index of /repositories/KDE:/Release:/46/openSUSE_11.4 |
3 | KR46-extra | KR46-extra | Yes | Yes | 98 | rpm-md | Index of /repositories/KDE:/Extra/KDE_Release_46_openSUSE_11.4 |
4 | devel:languages:R:patched | devel:languages:R:patched | No | No | 99 | rpm-md | Index of /repositories/devel:/languages:/R:/patched/openSUSE_11.2 |
5 | google-earth | google-earth | No | No | 99 | rpm-md | http://dl.google.com/linux/earth/rpm/stable/x86_64 |
6 | Index of /suse/11.4 | Index of /suse/11.4 | Yes | Yes | 99 | rpm-md | Index of /suse/11.4 |
7 | openSUSE-11.4-Debug | openSUSE-11.4-Debug | No | No | 99 | yast2 | Index of /debug/distribution/11.4/repo/oss |
8 | openSUSE-11.4-Source | openSUSE-11.4-Source | No | No | 99 | yast2 | Index of /source/distribution/11.4/repo/oss |
9 | openSUSE:11.4:Contrib | openSUSE:11.4:Contrib | Yes | Yes | 99 | rpm-md | Index of /repositories/openSUSE:/11.4:/Contrib/standard |
10 | repo-11.4-non-oss | openSUSE-11.4 Non-OSS | Yes | No | 99 | yast2 | Index of /distribution/11.4/repo/non-oss |
11 | repo-11.4-oss | openSUSE-11.4 OSS | Yes | No | 99 | yast2 | Index of /distribution/11.4/repo/oss |
12 | repo-11.4-update | openSUSE-11.4 Updates | Yes | Yes | 99 | rpm-md | Index of /update/11.4 |
13 | wine_11.4 | wine 11.4 | Yes | Yes | 99 | rpm-md | Index of /repositories/Emulators:/Wine/openSUSE_11.4 |

Do you think they are fine? I have converted them back to