Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363363 - KDE 4.6.2 catches acpi sleep button events, possible conflict with acpid (hibernate)
Summary: KDE 4.6.2 catches acpi sleep button events, possible conflict with acpid (hib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 19:23 UTC by Michael
Modified: 2014-09-25 14:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2011-04-12 19:23:37 UTC
KDE 4.4.4 in its default configuration (or the powerdevil daemon?) did not react to the ACPI event of the sleep-button. But instead of configuring something in my desktop-environment I used acpid for it. It allows defining actions under /etc/acpid/default.sh

Now with KDE 4.6.2, those events are handled and the system correctly hibernates. But with acpid configured to also run hibernate or hibernate-ram, it is configured two times!

Usually it would just create an odd double-hibernate... once woken up, my laptop would hibernate again right away. But hibernate on Linux is not always the most robust thing. Rather often (~20%) the immediat hibernate-ram after the first one would cause the kernel to panic and crash! (2.6.36, 37, 38 tested)


It took me alot of testing before I figured that out. Maybe to save others some time, there could be some hint.

For example if powerdevil is handling these acpi events, it could be some elog message like:
if grep 'hibernate' /etc/acpi/default.sh > /dev/null; then echo Powerdevil handles certain ACPI events like hibernate on sleep-button. You might want to check your /etc/acpid/default.sh for conflicing scripts.; fi

Or if there is some KDE upgrade guide, mention it there.

I could imagine that some people think that it is the users own fault and he should be aware of such things himself. Feel free to close this bug then.

Thought I could save someone some trouble with this =)


Reproducible: Always
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2011-04-17 21:32:36 UTC
Thanks, added to the guide (work in progress)
http://www.gentoo.org/proj/en/desktop/kde/kde44-46-upgrade.xml
Comment 2 Fabian Henze 2011-04-23 10:15:42 UTC
Can you please add some information to the upgrade guide on how one can prevent KDE from handling these events?
I prefer acpid scripts over automagic handling of these keys.