What's "key 107"? - G2 and Desire Z Q&A, Help & Troubleshooting

Hey guys, I was going through my vision-keypad.kl, and saw that the second entry was:
key 107 ENDCALL WAKE_DROPPED
Now as far as I know, we have no End Call button?
I decided to investigate, so I removed all the WAKE and WAKE_DROPPED markers from all the buttons except key 116 (Power button) and key 107 (unknown)
I was then able to wake my phone 2 ways:
Power button
Sliding the keyboard
So that supposedly means sliding the keyboard is an End Call button.
So I called my phone and tested it -- no dice.
Meaning, key 107 is not sliding the keyboard.
So what is key 107?

You could go into clockworkmod recovery and use the keytest option (under advanced?) to find out what the key codes are.
-Nipqer

Um yea Key 107 doesn't really exist. I tested it.

Related

Hardware key mapping

Hello,
I can't read anywhere why it's not possible to set hardware key mappings for keys other than phone answer.
Also using HButton I can't assign functions to home,back,end,vol up,vol down, ... is there a way?
Where can I read more?
AE Button plus works perfect for back key,volume key,green and red key

[FIX] Prevent home button from waking device, add support for HTC headset button

Hi all!
By altering the key layout files I have managed to
a) prevent the device form waking up by pressing the home button. I was very annoyed by the fact that I almost always turned on the device when pulling it out of my pocket.
b) Enable support for HTC headset buttons
Because I have moved form HTC to the SGSII I had a leftover HTC headset with one button and a 3,5mm extension jack (see attached picture).
Over the stock SGSII headset the option to use custom earpieces is a great benefit in my opinion. The sound and microphone part of the HTC headset worked out of the box, but the SGSII did not react to button press from the headset.
Prevent wake on home button, alter system/usr/keylayout/sec_key.kl
(Remove wake from key 102)
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 102 HOME
key 107 ENDCALL
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 232 DPAD_CENTER
key 116 POWER WAKE
key 212 CAMERA WAKE
Support for HTC headset, alter system/usr/keylayout/sec_jack.kl
(Add key 76)
Code:
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
key 226 HEADSETHOOK WAKE
key 76 HEADSETHOOK WAKE
Anyone know how to disable power menu option on lock screen on android 10 OR Alternative is to ASK FOR THE PASSWORD when you want to turn off, restart or enable airplane mode on. This helps enhance security while you can still use power button normally.
What prog do i use to edit the KL file?
why would even want to do that?
I spent ages trying to get ROMs on my HTC desire to enable OJ wake and the HTC head is only good enough for the bin (not even the recycle bin)
sorry only my 2p
iOStoAndroid said:
why would even want to do that?
I spent ages trying to get ROMs on my HTC desire to enable OJ wake and the HTC head is only good enough for the bin (not even the recycle bin)
sorry only my 2p
Click to expand...
Click to collapse
Well, if you like the device to wake on home button or not is a personal choice.
I think you have misunderstood the HTC headset support. The whole point is to NOT use the earplugs from either HTC or Samsung (they both suck). But with the HTC one you are able to extend with any 3.5 regular headset and still play, pause, answer and hang up without taking the phone out of the pocket.
Regards,
PK
Sent from my GT-I9100 using XDA App
sheridan2000 said:
What prog do i use to edit the KL file?
Click to expand...
Click to collapse
I used root explorer.
Sent from my GT-I9100 using XDA App
use Root explorer or ASTRO or ES File Explorer..
in Root explorer do to the file and long press it> options will come up and scroll down to see "Edit in text Editor" once done save it and thats it..
sheridan2000 said:
What prog do i use to edit the KL file?
Click to expand...
Click to collapse
nasgilani said:
use Root explorer or ASTRO or ES File Explorer..
in Root explorer do to the file and long press it> options will come up and scroll down to see "Edit in text Editor" once done save it and thats it..
Click to expand...
Click to collapse
Thanks ES File cant save it, so will try ASTRO, nope astro cant edit just cut, paste move....i think root explorere is paid so will look into that...
paalkr said:
I used root explorer.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Thanks
Is "WAKE" the only thing that can be set for these buttons, or are there other commands as well?
EDIT: Nevermind, the answer is here
Ahhhh I did the above to try and make a 'samsung' headset I have to try and make the button function work, but it did not work.
Must be a problem with the actual headset as I realise the command you added is just to make the button work while the phone is asleep.
Thanks anyway
paalkr said:
Prevent wake on home button, alter system/usr/keylayout/sec_key.kl
(Remove wake from key 102)
Code:
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 102 HOME
key 107 ENDCALL
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 103 DPAD_UP
key 108 DPAD_DOWN
key 232 DPAD_CENTER
key 116 POWER WAKE
key 212 CAMERA WAKE
[/QUOTE]
its not working.... ah sorry, i forgot to make a reset, not its working ;) fine, thanks.
Click to expand...
Click to collapse
for whitch htc model is this headset
dule2303 said:
for whitch htc model is this headset
Click to expand...
Click to collapse
I'm not sure, I think it is some generic accessory. It works perfect with HTC Desire, HTC HD2 (android) and HTC DHD.
Regards,
PK
dule2303 said:
for whitch htc model is this headset
Click to expand...
Click to collapse
I believe it will work on most phones not made by Apple.
from my experience any distro based on linux allows you to re-start a pid/app without reseting the device/gadget/pc/phone.
all you need to do is re-run it. unless im not aware of the way the android was built to run pids.
anyways preventing the home key to wake up the phone is a good tweak and i think this needs to be done for all devices without a phisical home key to prevent battery leaks.
Great! Thanks for the hint with the home button!
Works perfect
paalkr said:
I think you have misunderstood the HTC headset support. The whole point is to NOT use the earplugs from either HTC or Samsung (they both suck). But with the HTC one you are able to extend with any 3.5 regular headset and still play, pause, answer and hang up without taking the phone out of the pocket.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Can't the SGS2 do this already? My SGS was always able to use any of those cheap Chinese adapters with a microphone, in-line volume control, and button. The button did work for answering calls and changing music. Usually the responsiveness is not quick IMO, but it worked...allowed me to answer calls while on my bike. I didn't actually like to have to be forced to use that adapter, so I installed ROMs which incorporate Voodoo Sound in the kernal (like Darky's) so I can speak into the mic with my headset still attached.
Q. On the SGS2, is it like how the SGS Samsung ROMs, in which you have to disconnect the headphone in order to use the phone Mic? That's pretty lame is its true...the iPhone allows you to speak into mic with headphone attached. so is it true that even the cheap adapters don't work?
Hey there
I have the Diddybeats headset, it has 3 buttons.
Currently only the middle button is accepted and is keycode 226.
I'm using the key code accessory in Clockwork Mod to find out what my keys are mapped to.
Pressing the volume up/down buttons provides no key whatsoever.
Do you know if there are other methods to find out the keycodes? Apparently this headset is accepted by iDevices so there's obviously some sort of signal being sent through that connector.
Thanks
Dan
dkl_uk said:
Hey there
I have the Diddybeats headset, it has 3 buttons.
Currently only the middle button is accepted and is keycode 226.
I'm using the key code accessory in Clockwork Mod to find out what my keys are mapped to.
Pressing the volume up/down buttons provides no key whatsoever.
Do you know if there are other methods to find out the keycodes? Apparently this headset is accepted by iDevices so there's obviously some sort of signal being sent through that connector.
Thanks
Dan
Click to expand...
Click to collapse
Hi, I used logcat to find the right keycode for the HTC headset.
Sent from my GT-I9100 using XDA App
I've used logcat to try and find volume codes. Doesn't seem to come up with anything for volume keys on my headset.
Play/Pause button comes up with a:
D/BluetoothIntentReceiver
line with the "scancode" 226, and the button works.
Volume, don't get any of those, just get:
I/InputDispatcher, delivering key
W/KeyCharacterMap, no keyboard for id 0
D/Input Reader, Input event, Value=0
No idea how we can change the file for volume if there's not even a key captured for it...
rickgillyon said:
I've used logcat to try and find volume codes. Doesn't seem to come up with anything for volume keys on my headset.
Play/Pause button comes up with a:
D/BluetoothIntentReceiver
line with the "scancode" 226, and the button works.
Volume, don't get any of those, just get:
I/InputDispatcher, delivering key
W/KeyCharacterMap, no keyboard for id 0
D/Input Reader, Input event, Value=0
No idea how we can change the file for volume if there's not even a key captured for it...
Click to expand...
Click to collapse
What an odd response there in regards to D/BluetoothIntentReceiver.
Could it be that multi-use headsets are handled differently?
I have installed many free apps claiming to handle headsets but none do. Nothing seems to be able to capture the volume keys.

[TUR]Disable Home key or change to Power key

first backup /system/usr/keylayout/gpio-keys.kl
edit /system/usr/keylayout/gpio-keys.kl,
key 136 SEARCH WAKE_DROPPED
key 139 MENU WAKE
key 102 UNKNOWN
key 158 BACK WAKE_DROPPED
key 116 POWER WAKE
key 115 VOLUME_UP WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED
change 3td line to "key 102 UNKNOWN " to disable Home key.
u can change to "key 102 POWER", so u can screen on/off by pressing Home key
Edit/Delete Message
Could you be more explicit about this ?
Do you think we can modd the market for non landscape mode ?
We can change the behaviour of the physical keys of A100 from changing the file:/system/usr/keylayout/gpio-keys.kl
Does this actually work?
Just want to make sure this works before I attempt it...thanks
sure!!!!!!!!!!!!!!!!!!!!!!!!!1
It works!
raphsabb said:
Just want to make sure this works before I attempt it...thanks
Click to expand...
Click to collapse
I just tried it, and it works!
Thanks, @sanixk!
So, I followed the instructions above, the home button is 'unknown ", but it still keeps flashing - to indicate notifications, I guess. Is there any way to stop notifications from flashing the home (and Power) buttons?
---------- Post added at 06:42 AM ---------- Previous post was at 06:27 AM ----------
I am wondering - would it be possible to turn the HOME button into a second BACK button rather than a POWER button? I find the bottom-left locationof the BACK button quite inconvenient.
I think it would be easy to change to a back button. I think it would be nice to have it hide and unhide the bar at the bottom.
I changed Key 102 to UNKNOWN, and it now functions as a "Scroll To Top" button in Dolphin HD!
Has anybody else seen that behavior?
Hi, I have HP IPAQ 514 (Voice Messenger) and my red button is broken . It isn't actually broken, but when I click it, it doesn't respond . Instead, it responds whenever it wants . Is there a way to disable the button because it's really getting on my nerves . Please help, thanks !
Kung-Fu-Panda said:
Hi, I have HP IPAQ 514 (Voice Messenger) and my red button is broken . It isn't actually broken, but when I click it, it doesn't respond . Instead, it responds whenever it wants . Is there a way to disable the button because it's really getting on my nerves . Please help, thanks !
Click to expand...
Click to collapse
Thank you for the morning laugh. This post fails on many levels. The Ipaq is Windows Mobile, not Android.
try changing to:"key 158 BACK WAKE_DROPPED"
Kung-Fu-Panda said:
Hi, I have HP IPAQ 514 (Voice Messenger) and my red button is broken . It isn't actually broken, but when I click it, it doesn't respond . Instead, it responds whenever it wants . Is there a way to disable the button because it's really getting on my nerves . Please help, thanks !
Click to expand...
Click to collapse
Until you learn to both post in the right section AND stop using so many goddam smilies, I think we should just disable your posting button instead.
sanixk said:
try changing to:"key 158 BACK WAKE_DROPPED"
Click to expand...
Click to collapse
l
AFAIK, that is the stock, or "normal " entry.
Did you mean "key 102 BACK WAKE_DROPPED "? Seems to me that should turn the HOME button into a second BACK button.
yeah. Another BACK button
jschall,
I tried editing 102 key to power up the device when I press the home button, but no luck!
Any ideas?
Thanks!
Managed to change the 102 key.
"works" great by not doing anything.
Thanks!
sanixk said:
first backup /system/usr/keylayout/gpio-keys.kl
edit /system/usr/keylayout/gpio-keys.kl,
key 136 SEARCH WAKE_DROPPED
key 139 MENU WAKE
key 102 UNKNOWN
key 158 BACK WAKE_DROPPED
key 116 POWER WAKE
key 115 VOLUME_UP WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED
change 3td line to "key 102 UNKNOWN " to disable Home key.
u can change to "key 102 POWER", so u can screen on/off by pressing Home key
Edit/Delete Message
Click to expand...
Click to collapse
Sorry for the noob questions I'm about to ask.
I need to have the A100 rooted before I do this?
What am I using to edit the .kl file?
Yes. You do need to be rooted. You can't access the file without root.
You don't need anything to edit the file.
Simply open as - text - text editor and modify the file. Save it afterwards.
gshadefull said:
Yes. You do need to be rooted. You can't access the file without root.
You don't need anything to edit the file.
Simply open as - text - text editor and modify the file. Save it afterwards.
Click to expand...
Click to collapse
Great, thanks! Got it working now (or rather, not working). Now my 2yr old son won't be pressing it each time he holds it to watch his videos. I've hit it enough times to annoy me as well, wish they would have used a real button but then I'm sure Apple would have sued them for using a real button

Disable Trackpad by Software

Hey there,
My Desire is now 2 years old and seems to have the first flaw now.
The Trackball movement seems to be crazy, it randomly selects stuff and while it does that, the device cant really be used otherwise.
It usually stops after around 30 seconds.
The only solution I found is to disable it by hardware, which I don't really want, especially because of the selection in ClockworkMod Recovery(where Trackball press is the only way to confirm a selection I know).
Is there any way to disable it by software? Even better would be to only disable the selection, not the pressing
Covering it with something shows no effect.
Cristhecrusader said:
Hey there,
My Desire is now 2 years old and seems to have the first flaw now.
The Trackball movement seems to be crazy, it randomly selects stuff and while it does that, the device cant really be used otherwise.
It usually stops after around 30 seconds.
The only solution I found is to disable it by hardware, which I don't really want, especially because of the selection in ClockworkMod Recovery(where Trackball press is the only way to confirm a selection I know).
Is there any way to disable it by software? Even better would be to only disable the selection, not the pressing
Covering it with something shows no effect.
Click to expand...
Click to collapse
With root explorer go to
System>usr>keylayout and edit "bravo-keypad.kl" as you wish.
Thanks for your reply.
Now when i open that config the only lines that are not commented out are:
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
key 116 POWER WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
Click to expand...
Click to collapse
Every key is pretty obvious(except for "ENDCALL" but nvm).
I figure only the keys that are listed here are bound to any function, but the trackpad doesnt show up, so shouldnt it already be disabled? Or is it in another config?
Just did a quick google and turns out from what i could see is the trackball is part of the digitizer (ur phones touchscreen) so dont think it can be disabled. Maybe it can, i dunno.
Sent from my HTC Desire

Volume key unlock

I've tried doing a search and have found no information.
Is it possible to get the volume key to unlock the phone please.
Sent from my HTC One X using xda premium
It might be possible in some custom roms but on stock, it's impossible...
What's the problem??
http://forum.xda-developers.com/showthread.php?p=24519453
system/urs/keylayout ..I think tegra-kbc.kl
key 115 VOLUME_UP WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED
other options
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.
SHIFT: The key should be interpreted as if the SHIFT key were also pressed.
CAPS_LOCK: The key should be interpreted as if the CAPS LOCK key were also pressed.
ALT: The key should be interpreted as if the ALT key were also pressed.
ALT_GR: The key should be interpreted as if the RIGHT ALT key were also pressed.
FUNCTION: The key should be interpreted as if the FUNCTION key were also pressed.
VIRTUAL: The key is a virtual soft key (capacitive button) that is adjacent to the main touch screen. This causes special debouncing logic to be enabled, see below.
MENU: Deprecated. Do not use.
LAUNCHER: Deprecated. Do not use.

Categories

Resources