Sorry my bad english and stupid request
I have xperia x10 mini and modding it. I want to make accept/end call in an old phone, by pressing the left or right hard buttons. For actions with pressure of keys answer file /system/usr/keylsyout/robyn_keypad.kl:
key 158 BACK WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 102 HOME WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 215 FOCUS
key 212 CAMERA
key 107 POWER WAKE_DROPPED
Click to expand...
Click to collapse
It's possibly whether hang on few key actions, depending on situation(for example: if there is call button, it cancels, and other of time brings up menu) or hang on for long/short pressing different things?
P.S. version
key 158 BACK ENDCALL
key 139 MENU CALL
key 102 HOME WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 215 FOCUS
key 212 CAMERA
key 107 POWER WAKE_DROPPED
Click to expand...
Click to collapse
is not working, all hard buttons switching off
I tried assigning multiple triggers to a button but it doesn't work but it doesn't work. You can proove it wrong offcourse
It's bad, but be outstanding idea, I count. On street in frost it's necessary to accept call, it's inconvenient to use sensor in gloves(I from frosty Russia ), and sometimes missed push button of stop call and my collocutor hold off in on line.
Maybe, sending mail to developers of this smartphone?
So, there's the problem with the X2 having the volume buttons not work when it's locked. I just got one a couple days ago, and decided to poke around to see if I could get it going. I messed with my old Nexus One and reassigned the Search button to the camera, so I started with the keylayout directory. Well, after some experimenting, I got it going. While you have to press the button for each incremental change in volume, it beats having to turn the device on.
Note: I can't post links due to a low post count. So my lack of helpful links is the forums' fault, not mine. My apologies.
What you'll need before you begin;
1) Root access. The X2 can be rooted with Gingerbreak.
2) A file manager. I use Root Explorer.
2b) If you're manually applying the changes, and you're using a file manager without one built-in, you'll need a text editor. Root Explorer has one, so...figure it out.
The Long Method
=Step One=
Navigate to "/system/usr/keylayout". The file we're working with is "tegra-kbc.kl"
=Step Two=
Mount the file system as read/write, make a backup of tegra-kbc.kl(I'm partial to adding a .ori to the end, but that's me), and open tegra-kbc.kl in a text editor.
=Step Three=
Lines six and seven, right below Camera, are the volume buttons we're looking for. We're going to append "WAKE" at the end of the line, to tell the phone to listen when they're pressed. Mine looks like this;
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
Obviously, it's not too picky about spacing. So the sky and your anal-retentiveness is the limit.
=Step Four=
Save the file, set correct permissions if they got mangled somehow(rw-r--r--, for reference), and restart.
The Short Method
=Step One=
Download the needed file. Take any public dropbox file link, and replace the end with "/u/3487229/Android/tegra-kbc.kl"
Look, I'd just give the link, but low post count and all. My apologies.
=Step Two=
Make a backup of, then copy the file over /system/usr/keylayout/tegra-kbc.kl
=Step Three=
Reset any mangled permissions(rw-r--r--, for reference), and restart.
Awesome.
10char
Worked a champ. Was trying to figure out how to do this last night.
Could someone paste the tegra file. I think I may have deleted it while attempting to make a backup. Many Thanks!
Sent from my Xoom using XDA App
Just tried this and did not work. Looking at file now, says WAKE after each, restarted and still doesn't work.
This may sound dumb, but I don't think this method "fixed" anything. I accidentally deleted the tegra-kbl.kl file but my volume can be adjusted while locked. The trick is to press volume multiple times rather than holding to adjust. FYI I never got a chance to adjust the file per the OP. Lemme know if this works for anyone else.
ALSO I STILL WOULD REALLY APPRECIATE SOMEONE POSTING THE TEGRA-KBL.KL FILE. THANK!
Sent from my DROID X2 using XDA App
Elite49 said:
Just tried this and did not work. Looking at file now, says WAKE after each, restarted and still doesn't work.
Click to expand...
Click to collapse
Does it match the above, where there's at least one space between WAKE and the word preceding it? Also, are the permissions correct?
cmanatam said:
This may sound dumb, but I don't think this method "fixed" anything. I accidentally deleted the tegra-kbl.kl file but my volume can be adjusted while locked. The trick is to press volume multiple times rather than holding to adjust. FYI I never got a chance to adjust the file per the OP. Lemme know if this works for anyone else.
ALSO I STILL WOULD REALLY APPRECIATE SOMEONE POSTING THE TEGRA-KBL.KL FILE. THANK!
Click to expand...
Click to collapse
That's how this works when implemented; you can't just hold down volume, but each click changes the volume by one increment.
I'm not sure how you got to where you are; when I accidently deleted the keylayout file on my Nexus One, none of the physical buttons worked, except the power button to power it on.
That was a fun one to recover from.
While I see someone else posted the entire original file in another thread, let me post what mine looks like, for comparison.
Modified tegra-kbc.kl, with volume fix and Search reassigned to Camera;
Code:
key 102 HOME WAKE
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 212 FOCUS
key 211 CAMERA
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 217 SEARCH WAKE_DROPPED
key 28 ENTER
key 103 DPAD_UP WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
#
# IKXETNA-128 Verizon UTS tool support
#
key 2 1 WAKE_DROPPED
key 3 2 WAKE_DROPPED
key 4 3 WAKE_DROPPED
key 5 4 WAKE_DROPPED
key 6 5 WAKE_DROPPED
key 7 6 WAKE_DROPPED
key 8 7 WAKE_DROPPED
key 9 8 WAKE_DROPPED
key 10 9 WAKE_DROPPED
key 11 0 WAKE_DROPPED
key 56 ALT_LEFT WAKE_DROPPED
key 42 SHIFT_LEFT WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 228 POUND WAKE_DROPPED
key 227 STAR WAKE_DROPPED
key 231 CALL WAKE_DROPPED
key 162 POWER WAKE
key 14 DEL
key 57 SPACE
key 52 PERIOD
key 51 COMMA
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 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 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
Mine looks just like that, still doesn't work.
@Elite49;
Here's what I'd do, on your device. I know we might be treading old ground, but just to rule anything out, try this;
1) Download the attached file. Lop off the file extension so it's just "tegra-kbc.kl"
2) Copy it, and head over to /system/usr/keylayout. Take the existing "tegra-kbc.kl" and put on a file extension that renders it inoperable(I like .ori, but that's just me).
3) Paste the downloaded "tegra-kbc.kl" into the keylayout folder.
4) Check permissions and ownership. Ownership needs to be root on both group and user, and permissions should be rw-r--r--.
5) Power-cycle.
6) Try it out. The quickest way, with that file, is to hold down the search key. If it's using that key layout file, after a few moments your camera app should come up. If it does, then your volume buttons should also be usable when your device is locked.
If you don't want camera on your search key, here's how you change it back. I only suggest doing this after you've verified your device is using this key layout file. If you do it before, then we're back to square one because we're only testing the volume buttons. This's changing two functions, making it easier to see whether it's a hardware or software issue.
1) Open /system/usr/keylayout/tegra-kbc.kl
2) Find CAMERA. Change the key from 211 to 217.
3) Find SEARCH. Change the key from 217 to 211.
4) Save file, check ownership and permissions, reboot. Ta-da.
Thanks!
This marks a huge negative off of my list! I think I will keep it now.
-JJ
i just made modification on glacier-keypad.kl to make all button can wake the phone (except camera button).
Code:
key 102 HOME WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 231 CALL
key 211 FOCUS
key 212 CAMERA
key 217 SEARCH WAKE_DROPPED
key 183 SEARCH WAKE_DROPPED
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
its working on CM7 but i think it will work on any rom since the path are same:
system/usr/keylayout
i've attached the zip but flash it with your responsibility. you can extract and make your own update.zip if you don't trust me.
mniroy said:
i just made modification on glacier-keypad.kl to make all button can wake the phone (except camera button).
Code:
key 102 HOME WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 158 BACK WAKE_DROPPED
key 231 CALL
key 211 FOCUS
key 212 CAMERA
key 217 SEARCH WAKE_DROPPED
key 183 SEARCH WAKE_DROPPED
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
its working on CM7 but i think it will work on any rom since the path are same:
system/usr/keylayout
i've attached the zip but flash it with your responsibility. you can extract and make your own update.zip if you don't trust me.
Click to expand...
Click to collapse
U can just use button remapper for this to by the way
sent from mi myTouch ICS 4G via xda premium
Tez MyTouch said:
U can just use button remapper for this to by the way
sent from mi myTouch ICS 4G via xda premium
Click to expand...
Click to collapse
sure, but i don't need an app just to make this little modification.
Ummm I don't see track pad on the list...
Any ideas?
Sent from my HTC myTouch 4G using xda premium
I use Real ICS v6, in LWW, I have a problem with the Walkman key and I use PowerAMP and as it says in several tutorials in pm8058-keypad
:
WAKE key 115 VOLUME_UP
WAKE key 114 VOLUME_DOWN
# KEY_HOME
102 HOME key WAKE_DROPPED
# CAMERA Related Key
key 212 CAMERA
528 FOCUS key
# WALKMAN key
Key 200 Poweramp
The PowerAMP me works perfectly with the button but the problem arises in the home key to change the walkman key home key does not work help
geja said:
The PowerAMP me works perfectly with the button but the problem arises in the home key to change the walkman key home key does not work help
Click to expand...
Click to collapse
Yeah that happens(I presume it would happen with any other custom app too).
Which ROM? If it's CM7, simply replace Poweramp in pm-8058-keypad with SEARCH. Reboot. (If the Home button still doesn't work, replace that file from your ROMs ZIP.) Then, in Cyanogenmod settings, there's an option to set the Search key behavior to launch any app. If you're on other GB-based ROM, you could try the Button Remapper app(never tried it myself).
Guys i have a very disturbing issue with my xperia pro (mk16i)
When i gently apply a pressure to the screen, one of the buttons in the physical keyboard is pressed down and the phone wakes up.
This often causes phone to unlock in my pocket and do random stuff(calls someone, plays mp3...)
So my question is that is it not possible to deactivate the keyboard buttons when the physical keyboard is closed.
Any help will be appreciated much.
Thanks...
The solutÄ°on!!!
An intensive research yielded the solution.
"/system/usr/keylayout/pm8xxx-keypad.kl" file has all the information about which keys will wake the phone up and which keys don't.
Originally it was:
Code:
# file pm8xxx-keypad.kl
# this corresponds to kernel/arch/arm/mach-msm/keypad-iyokan.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
# KEY_VOLUMEUP, KEY_VOLUMEDOWN
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_MENU, KEY_HOME, KEY_BACK
key 139 MENU
key 102 HOME WAKE_DROPPED
key 158 BACK
# KEY_CAMERA, KEY_CAMERA_FOCUS
key 212 CAMERA
key 528 FOCUS
key 108 DPAD_LEFT WAKE_DROPPED
key 103 DPAD_RIGHT WAKE_DROPPED
key 105 DPAD_UP WAKE_DROPPED
key 106 DPAD_DOWN WAKE_DROPPED
key 16 Q WAKE
key 17 W WAKE
key 18 E WAKE
key 19 R WAKE
key 20 T WAKE
key 21 Y WAKE
key 22 U WAKE
key 23 I WAKE
key 24 O WAKE
key 25 P WAKE
key 30 A WAKE_DROPPED
key 31 S WAKE_DROPPED
key 32 D WAKE_DROPPED
key 33 F WAKE_DROPPED
key 34 G WAKE
key 35 H WAKE
key 36 J WAKE
key 37 K WAKE_DROPPED
key 38 L WAKE_DROPPED
key 44 Z WAKE_DROPPED
key 45 X WAKE_DROPPED
key 46 C WAKE_DROPPED
key 47 V WAKE_DROPPED
key 48 B WAKE_DROPPED
key 49 N WAKE_DROPPED
key 50 M WAKE_DROPPED
key 40 APOSTROPHE WAKE_DROPPED
key 51 COMMA WAKE_DROPPED
key 52 PERIOD WAKE_DROPPED
key 57 SPACE WAKE_DROPPED
key 14 DEL WAKE_DROPPED
key 28 ENTER WAKE_DROPPED
key 56 ALT_LEFT WAKE_DROPPED
key 42 SHIFT_LEFT WAKE_DROPPED
key 26 AT WAKE_DROPPED
key 27 GRAVE WAKE_DROPPED
key 127 PICTSYMBOLS WAKE_DROPPED
key 368 CAPS_LOCK WAKE_DROPPED
As one can realize, the keys with "WAKE" or "WAKE_DROPPED" labels wakes the phone up. So i deleted the "WAKE" labels of all the buttons of slide-out keyboard with root browser. Then the new form is like this:
Code:
# file pm8xxx-keypad.kl
# this corresponds to kernel/arch/arm/mach-msm/keypad-iyokan.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
# KEY_VOLUMEUP, KEY_VOLUMEDOWN
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_MENU, KEY_HOME, KEY_BACK
key 139 MENU
key 102 HOME WAKE_DROPPED
key 158 BACK
# KEY_CAMERA, KEY_CAMERA_FOCUS
key 212 CAMERA
key 528 FOCUS
key 108 DPAD_LEFT
key 103 DPAD_RIGHT
key 105 DPAD_UP
key 106 DPAD_DOWN
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 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 44 Z
key 45 X
key 46 C
key 47 V
key 48 B
key 49 N
key 50 M
key 40 APOSTROPHE
key 51 COMMA
key 52 PERIOD
key 57 SPACE
key 14 DEL
key 28 ENTER
key 56 ALT_LEFT
key 42 SHIFT_LEFT
key 26 AT
key 27 GRAVE
key 127 PICTSYMBOLS
key 368 CAPS_LOCK
AND THE PROBLEM HAS GONE AWAY...
I attach the file you can use. But it may be specific to CM11 rom! Be careful.
A further info:
WAKE: The key should wake the device when it is asleep. For historical reasons, this flag behaves in the same manner as WAKE_DROPPED below.
WAKE_DROPPED: The key should wake the device when it is asleep but the key itself should be dropped when the wake-up occurs. In a sense, the key's action was to wake the device, but the key itself is not processed.
Thanks...