Hi,
first, english language is not my strength, sorry for that.
i have a problem whith change the hardwarebuttons (Power, VolUp, VolDown).
my xz is rootet and i edit the file /system/usr/keylayout/Generic.kl with Root Browser.
I Edit the Keys 114, 115 and 116.
The Original Settings are:
114 VOLUME_DOWN
115 VOLUME_UP
116 POWER WAKE
I want change to:
114 POWER WAKE
115 (none)
116 (none)
116 (none) > works at the moment
but the Keys 114 and 115 doesent work.
Any changes on this both keys doesent work, they alwas managed the volume.
I am grateful for every tip !!!
beza
Nobody has an idea?
bezalel said:
Hi,
first, english language is not my strength, sorry for that.
i have a problem whith change the hardwarebuttons (Power, VolUp, VolDown).
my xz is rootet and i edit the file /system/usr/keylayout/Generic.kl with Root Browser.
I Edit the Keys 114, 115 and 116.
The Original Settings are:
114 VOLUME_DOWN
115 VOLUME_UP
116 POWER WAKE
I want change to:
114 POWER WAKE
115 (none)
116 (none)
116 (none) > works at the moment
but the Keys 114 and 115 doesent work.
Any changes on this both keys doesent work, they alwas managed the volume.
I am grateful for every tip !!!
beza
Click to expand...
Click to collapse
I try it now for the last time.
someone has an idea about this problem?
I have the same problem with a xperia sp.
I opened a similar thread in xperia sp forum.
If I find the solution'll give you.
Related
Works on my Legend with 16/Nov 3.14.161.1 r1 - Stock Froyo ROM
Boot into Clockworkmod
Type the folowing comands in adb shell to mount /system and pull files from your device:
Code:
adb shell mount /system
adb pull /system/usr/keylayout/qwerty.kl
adb pull /system/usr/keylayout/legend-keypad.kl
Now edit legend-keypad.k by adding a line:
Code:
key 272 DPAD_CENTER WAKE_DROPPED
Now edit qwerty.kl by replacing the line
Code:
key 232 DPAD_CENTER WAKE_DROPPED
with the line above.
qwerty.kl should look like this
Code:
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 272 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 116 POWER WAKE
key 212 CAMERA
key 16 Q
key 17 W
key 18 E
key 19 R
key 20 T
key 21 Y
key 22 U
key 23 I
key 24 O
key 25 P
key 26 LEFT_BRACKET
key 27 RIGHT_BRACKET
key 43 BACKSLASH
key 30 A
key 31 S
key 32 D
key 33 F
key 34 G
key 35 H
key 36 J
key 37 K
key 38 L
key 39 SEMICOLON
key 40 APOSTROPHE
key 14 DEL
key 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 51 COMMA
key 52 PERIOD
key 53 SLASH
key 28 ENTER
key 56 ALT_LEFT
key 100 ALT_RIGHT
key 42 SHIFT_LEFT
key 54 SHIFT_RIGHT
key 15 TAB
key 57 SPACE
key 150 EXPLORER
key 155 ENVELOPE
key 12 MINUS
key 13 EQUALS
key 215 AT
legend-keypad.kl should look like this:
Code:
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 272 DPAD_CENTER WAKE_DROPPED
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
Now push them to your device:
Code:
adb push qwerty.kl /system/usr/keylayout/qwerty.kl
adb push legend-keypad.kl /system/usr/keylayout/legend-keypad.kl
Reboot
Awesome, not being able to wake the device was a deal breaker for me. Will try this tomorrow. Thank you
Sent from my Legend using Tapatalk
Mod is not good, if you wake it immediately after you lock it works, but if you wait more than 20 - 30 seconds it doesn't wake the phone.
Will work on it ....
ivanvava said:
Mod is not good, if you wake it immediately after you lock it works, but if you wait more than 20 - 30 seconds it doesn't wake the phone.
Will work on it ....
Click to expand...
Click to collapse
yeah...i also had the same issue...any way to fix this? I am currently using FroYo - Android 2.2 -Kernel 2.6.32.17 - Build on Vodafone release - ROOTED ROM now
Yep, can confirm the same problem aswell. This feature works like a charm on the CyanogenMod releases for the Legend. Think theres a point in perhaps checking in with AleBa or just reviewing the keypad.kl and qwerty.kl ?
I tought I fixed it, turned out it only worked when USB was connected :s
btw is it possible to stop Legend from waking up with volume Buttons? its pretty annoying while having the phone in pocket and unlocks itself after adjusting volume. Sometimes the alarm clock is set or reversed track or something.
greenolive said:
...This feature works like a charm on the CyanogenMod releases for the Legend...
Click to expand...
Click to collapse
I'm using RC2 now (had nightly before) and in none of them I could wake up the phone by pressing the trackpad. What do you mean by "works like a charm"? This method described here or wanted to say it is already included in CM's ROMs? Because I couldn't find it if it is...
Rapier said:
I'm using RC2 now (had nightly before) and in none of them I could wake up the phone by pressing the trackpad. What do you mean by "works like a charm"? This method described here or wanted to say it is already included in CM's ROMs? Because I couldn't find it if it is...
Click to expand...
Click to collapse
Hmm I really don't understand why you need to use this mod if your Legend is running on CM RC which already includes (in CyanogenMod settings) trackball wake (+trackball/menu to unlock)
I was trying this mod (and another one which looks very similar from another old thread) for my ripped Vodafone ROM
fatthumb said:
Hmm I really don't understand why you need to use this mod if your Legend is running on CM RC which already includes (in CyanogenMod settings) trackball wake (+trackball/menu to unlock) ...
Click to expand...
Click to collapse
Nevermind...I was too blind to see it, now if found the option. And indeed it works
Ok I did some research and it looks like it's the kernel blocking the input after some period of time. It works perfectly when the usb is connected cause then it allows any input. Now since the source isn't available yet I don't think we can get it to work properly.
do you have any news?
you have any news?
No still don't work properly :-(
ivanvava said:
Mod is not good, if you wake it immediately after you lock it works, but if you wait more than 20 - 30 seconds it doesn't wake the phone.
Will work on it ....
Click to expand...
Click to collapse
That appears to be a problem with the .32 kernel. It's also present in CM 6.1 if you flash the experimental .32 kernel.
does anyone know of a simple app that does this on froyo (and disable lock screen)?
used to use this on 2.1 but doesnt work so great with froyo:
http://www.appbrain.com/app/screen-mode-widget-lite/com.ooha.screenmodelite
Any update on this yet? Anxious to be able to wake my Legend with the trackpad
iam make a package to do this for you .
download this (on attachment) and install with fake flash !
iam test this on mvz superfroyo v8 and CMRC2 .
"trackwake-Froyo.zip" don`t work for me... After I`m lock it works, but if wait sometime it doesn't wake the phone...
brehm_ss said:
"trackwake-Froyo.zip" don`t work for me... After I`m lock it works, but if wait sometime it doesn't wake the phone...
Click to expand...
Click to collapse
that was already mentioned here, after 20-30 seconds looks like the kernel blocks the buttons (for energy saving or whatever) and the trick doesn't work
I got tired of chasing down new roms that need patching for the softkey positions on certain phones. like the US Huawei Assend X (U9000-81). Here is the Patches for all the ones I know about. Rom porters you can attach any of these to your first post if you know that you will need them. This is for any US phone that uses the kernel-2.6.35-*.
Special Thanks to LibertyMonger for inspiring me to become to help out the community more.
Sergekarol said:
I got tired of chasing down new roms that need patching for the softkey positions on certain phones. like the US Huawei Assend X (U9000-81). Here is the Patches for all the ones I know about. Rom porters you can attach any of these to your first post if you know that you will need them. This is for any US phone that uses the kernel-2.6.35-*.
Click to expand...
Click to collapse
Hahaha
Because only you who can fix wrong touchkey mapping
By the way,,its good if you also explain guide how to manually fix it
Thanks much dude
Sent from my Spice Mi-410 using Tapatalk 2
Thanks a bunch for the thread good buddy it will be very useful!
Arya_3RDNumber said:
Hahaha
Because only you who can fix wrong touchkey mapping
By the way,,its good if you also explain guide how to manually fix it
Thanks much dude
Sent from my Spice Mi-410 using Tapatalk 2
Click to expand...
Click to collapse
yes what is arya say is right..myb you can put some of TUT for this softkey and we all can learn it
Arya_3RDNumber said:
Hahaha
Because only you who can fix wrong touchkey mapping
By the way,,its good if you also explain guide how to manually fix it
Thanks much dude
Sent from my Spice Mi-410 using Tapatalk 2
Click to expand...
Click to collapse
I used keymapper from app store to figure out which keys to change to which number. all three are same file I don't mind teaching this to all. One day I will get a new phone and someone will have to take over. If anyone interested examine the patches. the same file is used in all three just with a different name for each of the kind of rom it is. Development is often just being luck in your guesses at first until you learn what you are doing.
This is the text of the main file in all three patches, In ICS phones this is
/system/usr/keylayout/generic.kl
In other roms this file may be named querty.kl or other names. You have to examine the file to determine the correct one.
The relevant part of this file is shown below:
In the stock this part looks like this with Red the original file and in green the changes in the patch file.
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 139 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 102 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 158 HOME WAKE
Class Dismissed.
Do you have a fix for elol's newest Ice Cold Sandwich? Thanks
LibertyMonger said:
Do you have a fix for elol's newest Ice Cold Sandwich? Thanks
Click to expand...
Click to collapse
ICS uses the same update-softkey.zip for all roms I have found so far. Sharp and Mokee are the outliers.
If the phone is an ICS Phone, try that file first. All it can do is to add a file that doesn't get used lol.
I know it's possible cause I did it once but I can't find it anymore...
when the phone is in the lockscreen. you can wake up with the home button (the same as on and off button).
I want to turn this off...can someone help me with this?
progrance said:
I know it's possible cause I did it once but I can't find it anymore...
when the phone is in the lockscreen. you can wake up with the home button (the same as on and off button).
I want to turn this off...can someone help me with this?
Click to expand...
Click to collapse
did u use holo locker? i know that in holo locker we can turn off and on with the menu button.....
nazri5363 said:
did u use holo locker? i know that in holo locker we can turn off and on with the menu button.....
Click to expand...
Click to collapse
No I don't use that...
You can try with a little bit of editing
With a root file explorer (so you need root) browse to /system/usr/keylayout and find the file named golden-kp.kl (However I suggest doing this through adb pull/edit with notepad ++/ adb push)
Now open it, the first lines will look like this
Code:
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL
key 62 ENDCALL
key 229 MENU
key 59 MENU
key 139 MENU
key 127 SEARCH
key 228 POUND
key 227 STAR
key 231 CALL
key 61 CALL
key 232 DPAD_CENTER
key 108 DPAD_DOWN
key 103 DPAD_UP
[B][COLOR="Red"]key 102 HOME WAKE[/COLOR][/B]
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 211 FOCUS
key 212 CAMERA
Now focus on these lines: as you can see i've highlighted for you the line key 102 HOME WAKE. Deletethat WAKE and you should be done
dariolob said:
You can try with a little bit of editing
With a root file explorer (so you need root) browse to /system/usr/keylayout and find the file named golden-kp.kl (However I suggest doing this through adb pull/edit with notepad ++/ adb push)
Now open it, the first lines will look like this
Code:
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL
key 62 ENDCALL
key 229 MENU
key 59 MENU
key 139 MENU
key 127 SEARCH
key 228 POUND
key 227 STAR
key 231 CALL
key 61 CALL
key 232 DPAD_CENTER
key 108 DPAD_DOWN
key 103 DPAD_UP
[B][COLOR="Red"]key 102 HOME WAKE[/COLOR][/B]
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 211 FOCUS
key 212 CAMERA
Now focus on these lines: as you can see i've highlighted for you the line key 102 HOME WAKE. Deletethat WAKE and you should be done
Click to expand...
Click to collapse
thx for the info bit I'm not gonna root my phone or flash it
I want to change hardware keys function on my rom. So that when screen is off, volume buttons skip music. And also when phone is active, long press on power button opens statusbar instead of power menu and it's annoying. To open power menu i have to long press power button from lockscreen. How can i change button's funcions?
Tried hard reset?
XDRdaniel said:
I want to change hardware keys function on my rom. So that when screen is off, volume buttons skip music. And also when phone is active, long press on power button opens statusbar instead of power menu and it's annoying. To open power menu i have to long press power button from lockscreen. How can i change button's funcions?
Click to expand...
Click to collapse
Can't...
Sent from my GT-S5570 using xda app-developers app
try key remapping
manoj94 said:
try key remapping
Click to expand...
Click to collapse
Edit sec_key.kl in /usr/keylayout to your liking, is very easy to edit
Format (I believe) is the following
key # is what physical key is selected - action done by that key - if it should wake up the phone
Code:
key 158 BACK
key 102 HOME WAKE
key 139 MENU
key 107 POWER WAKE
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 28 DPAD_CENTER
key 106 DPAD_RIGHT
key 105 DPAD_LEFT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 217 SEARCH
key 231 CALL
key 228 CAMERA
Then push it to your phone/put in your ROM and reboot.
Paul L. said:
Edit sec_key.kl in /usr/keylayout to your liking, is very easy to edit
Format (I believe) is the following
key # is what physical key is selected - action done by that key - if it should wake up the phone
Code:
key 158 BACK
key 102 HOME WAKE
key 139 MENU
key 107 POWER WAKE
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 28 DPAD_CENTER
key 106 DPAD_RIGHT
key 105 DPAD_LEFT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 217 SEARCH
key 231 CALL
key 228 CAMERA
Then push it to your phone/put in your ROM and reboot.
Click to expand...
Click to collapse
that's not what i meant....
on certain miui roms, if you long press power button it collapses statusbar, instead of showing power menu. I think the command is somewhere in framework-res.apk, but i'm not sure.
XDRdaniel said:
that's not what i meant....
on certain miui roms, if you long press power button it collapses statusbar, instead of showing power menu. I think the command is somewhere in framework-res.apk, but i'm not sure.
Click to expand...
Click to collapse
Disable power control. Try play more with ROM !
F4uzan said:
Disable power control. Try play more with ROM !
Click to expand...
Click to collapse
you mean to do that by editing build.prop? Because i don't think power control can be disabled from settings....
XDRdaniel said:
you mean to do that by editing build.prop? Because i don't think power control can be disabled from settings....
Click to expand...
Click to collapse
Settings > Toggle. Play there.
XDRdaniel said:
I want to change hardware keys function on my rom. So that when screen is off, volume buttons skip music. And also when phone is active, long press on power button opens statusbar instead of power menu and it's annoying. To open power menu i have to long press power button from lockscreen. How can i change button's funcions?
Click to expand...
Click to collapse
For volume button music control search for a guide. Its somewhere in android.policy.jar
Sent from my GT-S5570 using xda app-developers app
arpitkh96 said:
For volume button music control search for a guide. Its somewhere in android.policy.jar
Sent from my GT-S5570 using xda app-developers app
Click to expand...
Click to collapse
That was the answer to both of my problems. I replaced android.policy.jar with one that i knew was working
thank you
XDRdaniel said:
That was the answer to both of my problems. I replaced android.policy.jar with one that i knew was working
thank you
Click to expand...
Click to collapse
Ma pleasure
Sent from my GT-S5570 using xda premium
I used to use ButtonRemapper to switch my Volume Down and Power buttons, but sadly the app crashes on the HTC One. Waking and sleeping the One with Volume Down is very handy in my opinion.
Has anyone found another way to remap the buttons on the One? I tried this method on the qwerty.kl file, but it didn't work.
Got it working! I got ButtonRemapper to not crash, but it didn't read the correct .kl file. Using Fx File Explorer I edited the file keypad_8960.kl in /system/usr/keylayout/
Original:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 107 ENDCALL WAKE_DROPPED
My current file:
Code:
key 116 VOLUME_DOWN WAKE
key 114 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 107 ENDCALL WAKE_DROPPED
Now waking my One is a breeze! :laugh: