M
mariosanoguera
Guest
MOD: Search Key as a Power Button
This is my first real contribution to the Defy Android Development and Im very proud to contribute (small contribution) after all this forum has taught me and has make me choose my defy over any latest iPhone or big and new Android phone ^^
This MOD works perfectly on any ROM (cm7 cm9 cm10 miui mokee os.. so I imagine it works in every rom out there) and its pretty easy to do (although if someone knows how to make .zips to directly flash it from cwm I would appreciate it and include it in this post ^^)
This MOD does the following, it turns the seach key to your power button and in my opinion it is a good option because it increased life expectancy of our strong defy's (btw power button will work the same, and it will still be needed to unlock our defy since the touchscreen keys dont work when our defy is off)
If you press the search key your defy will go to sleep, as if you pressed once the power button, and if you do a longpress on the search key the power menu will show up (shut down reboot screenshot etc..
)
you only need a root explorer to edit system files I did it with root explorer btw
go to system > usr > keylayout and open qwerty.kl and X (the one above) with a text editor..
in both files----> key 217 SEARCH WAKE_DROPPED change it to ---> key 217 POWER WAKE
NOTE: make sure after this change that key, POWER and WAKE are in exactly the same collumn as before (insert one spacebar after POWER to move WAKE to the right position!
To end with, check permisions of both files (they didn't change for me but just in case) it should be:
X X 0
X 0 0
X 0 0
X= tick 0=untick
If you don't understand this just compare the permisions with any other file of that folder
RESTART then WALA!
This is my first real contribution to the Defy Android Development and Im very proud to contribute (small contribution) after all this forum has taught me and has make me choose my defy over any latest iPhone or big and new Android phone ^^
This MOD works perfectly on any ROM (cm7 cm9 cm10 miui mokee os.. so I imagine it works in every rom out there) and its pretty easy to do (although if someone knows how to make .zips to directly flash it from cwm I would appreciate it and include it in this post ^^)
This MOD does the following, it turns the seach key to your power button and in my opinion it is a good option because it increased life expectancy of our strong defy's (btw power button will work the same, and it will still be needed to unlock our defy since the touchscreen keys dont work when our defy is off)
If you press the search key your defy will go to sleep, as if you pressed once the power button, and if you do a longpress on the search key the power menu will show up (shut down reboot screenshot etc..
you only need a root explorer to edit system files I did it with root explorer btw
go to system > usr > keylayout and open qwerty.kl and X (the one above) with a text editor..
in both files----> key 217 SEARCH WAKE_DROPPED change it to ---> key 217 POWER WAKE
NOTE: make sure after this change that key, POWER and WAKE are in exactly the same collumn as before (insert one spacebar after POWER to move WAKE to the right position!
To end with, check permisions of both files (they didn't change for me but just in case) it should be:
X X 0
X 0 0
X 0 0
X= tick 0=untick
If you don't understand this just compare the permisions with any other file of that folder
RESTART then WALA!
Last edited: