Summary: | Pressing the power button (Wetab) causes freeze for some minutes | ||
---|---|---|---|
Product: | [Plasma] Active | Reporter: | Thomas Pfeiffer <thomas.pfeiffer> |
Component: | Plasma mobile shell | Assignee: | Marco Martin <notmart> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | active, javier, robert, sebas, wilcobeekhuizen |
Priority: | HI | ||
Version: | unspecified | ||
Target Milestone: | unscheduled | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Thomas Pfeiffer
2011-09-23 18:08:47 UTC
I can confirm this with 2011-09-08-17-25-meego-plasma-active-testing-USB-live.iso and packages updated today. on press, it should sleep. on long hold, it should do a forced-power-off. in no circumstances should it bring up the log out options. this sounds like a configuration issue with the PowerDevil profiles. No, the powerbutton plasmoid is meant to do this. Can be easily changed, of course. First of all, what really needs to be fixed is the freezing part ;) I'll move the discussion about the expected results to a mailing list thread to avoid spamming the bug comments and then edit the bug as soon as we've reached a conclusion. 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 ..) Erm... well I actually _did_ mean the hardware power button ;) Sorry if I caused confusion. that's important because if we're talking about the hardware power button, with the correct configuration this is a non-issue for PA1 as it should simply sleep the device. if it isn't doing that, then the bug is that the configuration is incorrectly being set up. in any case, the reason for the freeze is already being discussed on the relevant mailing list to me also happens with the power button sorry, *hardware* power button i mean ;) yes, these settings got reverted again. i'm guessing its some conflict between packages and our defaults get clobbered by files from other generic packages when they update? Issue reproducible on 2011-09-28-20-40-meego-plasma-active-testing-USB-live.iso Same problem on arch linux 64 and 32 bit. Using acpid and calling "init 0" on the power button press works as excepted, i.e. shutdown within a few seconds. However, init 0 does not properly end the KDE session. Power settings are at default. "When power button pressed" is set to Shutdown. The regular shutdown menu (by using Ctrl+Alt+Del) does not have this problem. this bug is apparently now fixed in kde-workspace master branch; i have emailed the active list the commit hashes that should be applied against plasma active packages until we move to a Workspaces 4.8 base. *** This bug has been marked as a duplicate of bug 265405 *** |