Bug 261456

Summary: Button events handler doesn't work for the power button
Product: [Unmaintained] solid Reporter: Kiril Vladimiroff <v.kiril>
Component: powermanagementAssignee: Dario Freddi <drf>
Status: RESOLVED FIXED    
Severity: normal CC: ruchir.brahmbhatt
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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. ***