Bug 261456 - Button events handler doesn't work for the power button
Summary: Button events handler doesn't work for the power button
Status: RESOLVED FIXED
Alias: None
Product: solid
Classification: Unmaintained
Component: powermanagement (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dario Freddi
URL:
Keywords:
: 262728 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-28 14:48 UTC by Kiril Vladimiroff
Modified: 2011-01-17 01:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kiril Vladimiroff 2010-12-28 14:48:02 UTC
Version:           SVN (using KDE 4.5.90) 
OS:                Linux

In Power Management section, there is an option, for each profile, to be set button events handler for power button and laptop lid(if any).

But no matter what is set to Power Button it does not work on my machine.  

Reproducible: Always

Steps to Reproduce:
0. Open SystemSettings
1. Go to Power Management
2. Power Profiles
3. Change "When power button pressed" to Shutdown(for example) in "Button events handling" section
4. Push the power button

Actual Results:  
Nothing happens

Expected Results:  
The machine should be halt

I tried to reproduce this with even with hal enabled - so it does reproduce.
Comment 1 Dario Freddi 2011-01-02 18:50:57 UTC
SVN commit 1210946 by dafre:

BUG: 261456

Restore power button handling - and delegate it to Qt.

 M  +12 -0     powerdevilcore.cpp  
 M  +1 -0      powerdevilcore.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1210946
Comment 2 Kiril Vladimiroff 2011-01-06 02:07:23 UTC
Great, Works like charm in KDE 4.5.95(4.6 RC2).
Thank you!
Comment 3 Dario Freddi 2011-01-17 01:01:09 UTC
*** Bug 262728 has been marked as a duplicate of this bug. ***