Bug 262908 - On login, the "Sleep" shortcut is cleared
Summary: On login, the "Sleep" shortcut is cleared
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: shortcuts (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 270379 272813 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-12 02:17 UTC by Nikos Chantziaras
Modified: 2011-09-30 12:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikos Chantziaras 2011-01-12 02:17:55 UTC
Version:           unspecified (using KDE 4.5.95) 
OS:                Linux

Every time I login to KDE, the "KDE Daemon -> Sleep" shortcut is reset back to the default.  This is extremely nasty, since I have another functionality mapped to this button and when I press it I send my system to sleep by mistake.

There was a similar bug (bug 229300) for this but for the "Increase Volume" shortcut, so maybe the cause is the same?

Reproducible: Always

Steps to Reproduce:
In System Settings, go to "Shortcuts and Gestures", then "Global Keyboard Shortcuts", select "KDE Daemon" and search for "Sleep".  Reconfigure the default shortcut (should be the "Sleep" button) to something else.  Apply, logout of KDE and log back in.  The shortcut has been reset back to the default.
Comment 1 Nikos Chantziaras 2011-01-28 14:12:58 UTC
Issue persists with KDE 4.6.

I could really use some help on how to hardcode that key to "none" in the source code.  Having the "Sleep" key available is very important for me.

Pointers to where to look in the source code are more than welcome!
Comment 2 Nikos Chantziaras 2011-03-05 13:59:26 UTC
Issue still there in 4.6.1.
Comment 3 Nikos Chantziaras 2011-04-06 23:05:06 UTC
Still not fixed in 4.6.2.
Comment 4 Björn Ruberg 2011-04-26 10:22:39 UTC
Confirmed. I try to figure out the reason. Any hints are welcome.
Comment 5 Nikos Chantziaras 2011-04-26 10:25:09 UTC
(In reply to comment #4)
> Confirmed. I try to figure out the reason. Any hints are welcome.

It might be related to bug 229300.
Comment 6 Björn Ruberg 2011-04-27 07:10:40 UTC
Git commit b6087c028016409c73e8b96c3600369edc89817b by Björn Ruberg.
Committed on 27/04/2011 at 07:14.
Pushed by ruberg into branch 'KDE/4.6'.

Fix global key shortcuts (powermanagement: suspend, hibernate, ...) being resetted to their default value at each login.
BUG: 262908

M  +5    -15   powerdevil/daemon/powerdevilcore.cpp     

http://commits.kde.org/kde-workspace/b6087c028016409c73e8b96c3600369edc89817b
Comment 7 Nikos Chantziaras 2011-04-27 07:23:23 UTC
Thanks for fixing this! It was driving me crazy putting the PC to sleep by mistake all the time. I've applied the patch to 4.6.2 and the issue is now fixed.
Comment 8 Björn Ruberg 2011-04-27 07:54:46 UTC
Git commit 9312179fbc5557dbdf191e0c19cc9773612baf8b by Björn Ruberg.
Committed on 27/04/2011 at 07:14.
Pushed by ruberg into branch 'master'.

Fix global key shortcuts (powermanagement: suspend, hibernate, ...) being resetted to their default value at each login.
BUG: 262908

M  +5    -15   powerdevil/daemon/powerdevilcore.cpp     

http://commits.kde.org/kde-workspace/9312179fbc5557dbdf191e0c19cc9773612baf8b
Comment 9 Björn Ruberg 2011-04-27 08:44:55 UTC
That was an easy one - as long as the fix does not introduce a new bug. But I couldn't find one. 
This fix  will hit KDE 4.6.3
Comment 10 Toralf Förster 2011-04-27 18:13:43 UTC
*** Bug 270379 has been marked as a duplicate of this bug. ***
Comment 11 Dario Freddi 2011-09-30 12:07:53 UTC
*** Bug 272813 has been marked as a duplicate of this bug. ***