Bug 264977 - Slow logout since 4.6.0
Summary: Slow logout since 4.6.0
Status: RESOLVED DUPLICATE of bug 187392
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: 4.6
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-31 17:56 UTC by Jimmy Kloss
Modified: 2011-10-22 16:12 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy Kloss 2011-01-31 17:56:17 UTC
Version:           4.6 (using KDE 4.6.0) 
OS:                Linux

Since the upgrade from 4.5.5/hal to 4.6.0/udisks/upower logging out from a kde sessions is delayed by 10+ seconds instead of instantly logging out.

Reproducible: Always

Steps to Reproduce:
1. Right click on the desktop -> Leave -> Logout/Turn Off/Restart
2. stare 10+ seconds on your darkened desktop, before your session actually quits.

Actual Results:  
Frustrating delay

Expected Results:  
Instant action
Comment 1 Wilco 2011-02-01 19:10:18 UTC
Same problem here, it also happens when pressing the power button to shutdown the system. This bug looks like a duplicate:

https://bugs.kde.org/show_bug.cgi?id=264869

Keyboard still works, I can switch to a terminal, but it's impossible to switch desktops or use the menu.
Comment 2 Jimmy Kloss 2011-02-03 14:23:12 UTC
I found the cause of my problem. It was due to the guidance-power-manager leaking X connections thus slowing down the X logout.

The bug also has been reported:
https://bugs.kde.org/show_bug.cgi?id=187392

Workaround: Uninstall guidance-power-manager (or kill it every login)
Comment 3 Kevin Ottens 2011-02-03 14:26:09 UTC
OK, closing as duplicate then.

*** This bug has been marked as a duplicate of bug 187392 ***
Comment 4 Guillermo Belli 2011-02-18 23:08:40 UTC
I have a similar problem. After pressing the power button, the desktop freezes for about a minute. During this minute, it seems as if the computer froze (there are no screen updates, no response at all from keyboard and/or mouse), but I can still change to another terminal.

Then the desktop will be responsive again, and the logout menu will appear. Sometimes selecting "Reboot" or "Shutdown" will do nothing, so I have to issue the "shutdown" command in a terminal.

This situation happen randomly, but happens always after resuming from stand-by.
Comment 5 Guillermo Belli 2011-02-18 23:26:06 UTC
I don't think my issue is related to guidance-power-manager, as I don't see any related processes.

Also, the unresponsiveness happens only the first time I press the power button. After the first power button press, the desktop freezes, and after it is responsive again, the logout/shutdown dialog appears instantly after pressing the power button.
Comment 6 Michal Ziabkowski 2011-03-01 16:53:17 UTC
Also ran into this. No guidance-power-manager here, just the regular powerdevil from KDE 4.6.0. It seems that the org::kde::KSMServerInterface call in libkworkspace takes ages the first time it's run.

Qt: 4.7.1
KDE: 4.6.00 (4.6.0)
Comment 7 Wilco 2011-04-08 09:44:21 UTC
Still happens with 4.6.2. Easy way to reproduce: boot the system (I use autologin) and when the desktop has finished loading, press the power button. The system terminals still works but KDE hangs for about two minutes. No applications can be started but the icons still highlight when you hover over them.

This bug does not happen after a session where some KDE applications have been started and used. So it may be related to KSMServerInterface as Michal described.
Comment 8 Ozan Çağlayan 2011-04-18 23:02:12 UTC
People who don't have guidance power manager, the issue you have is also reported in:

https://bugs.kde.org/show_bug.cgi?id=265405

Can someone please mark this as a dup of #265405 as it contains more information than this?
Comment 9 Michal Ziabkowski 2011-10-22 16:12:58 UTC
For the record, the bug seems to be fixed or at least alleviated in revision 94b134f9. After backporting that change, the power button reacts much quicker.