[Bug 282639] Pressing the power button (Wetab) causes freeze for some minutes

Aaron J. Seigo aseigo at kde.org
Mon Sep 26 11:25:08 UTC 2011


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





--- Comment #5 from Aaron J. Seigo <aseigo kde org>  2011-09-26 11:25:07 ---
ah! the powerbutton PLASMOID. not the physical power button.

looking at the code, i can see where the problem is: in libkworkspace,
requestShutdown is synchronous. it makes a call to QApplication::syncX(). this
alone can take a while. it then requests org.kde.ksmserver to reset its "user
timestamp" which seems to be a way to avoid timing issues with ksmserver. ...
though i don't see why. will have to ask Ossi what's up with that. it also may
make a dbus call which may not return immediately. in all, this is a highly
synchronous method with all sorts of potentially long-blocking items in it.

 (btw, it makes me nervous that we're using libkworkspace in code outside of
kde-workspace, though that will be resolved in 4.8 in this partciular case with
the powermanagement engine gaining these capabilities ..)

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Active mailing list