[TUR]Disable Home key or change to Power key - Acer Iconia Tab A100

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

Related

Menu key to unlock

When I turn on my phone from standby I am surprised to find that to unlock the phone, ad well as wiping down I can also press the menu key.
Is this normal? It seems to override the whole protection which wiping provides.
Can the menu key option be disabled?
yes it is normal. All Android phones do this as this was the standard on earlier Android phones.
Some people prefer it to swiping. I am one of those people.
I know of no way to disable it, but it has been covered quite a few times in the sapphire and Hero forums. I'd also check in the nexus forums as well.
Hope you find what you're looking for.
Ok. Thanks for the clarification.
oh i didnt know that, ... so if you put it in your pocket and the menu button got pressed by accident that it would be unlocked, .. hmm ... not very cool
irkan said:
oh i didnt know that, ... so if you put it in your pocket and the menu button got pressed by accident that it would be unlocked, .. hmm ... not very cool
Click to expand...
Click to collapse
You need to press power button before to wake up the phone, and, after that, press menu button... I think it won't happened so many times...
Please correct me if i'm wrong, but i thought you cannot "accidently" press the Touchscreen of the Desire because it is not responsive to something unorganic?!
exactly.
But as has been said, you would have to press the power button, and then press the menu button.
And anyway, I've had my Hero since August, and that unlocks with two presses of the menu button which is easier to do in a pocket and its never happened to me so far.....
Is there an app/widget to just simply lauch the lock screen?
Aha. Very good point about the organic pointer requirement. That should stop most of the accidents.
fooXeh said:
Please correct me if i'm wrong, but i thought you cannot "accidently" press the Touchscreen of the Desire because it is not responsive to something unorganic?!
Click to expand...
Click to collapse
XDAgeek said:
Aha. Very good point about the organic pointer requirement. That should stop most of the accidents.
Click to expand...
Click to collapse
the screen receives only organic requests, ... but not the menu button!
if you turn off the display from above and put it in your pocket than this doesnt matter, because its very hard to "accidentally" press the power button in the first place.
but am talking about what if you left the screen, just locked the device and put it in your pocket, ... if you pressed the menu button accidentally than you can keep pressing search, back, menu, home buttons accidentally while in your pocket
irkan said:
but am talking about what if you left the screen, just locked the device and put it in your pocket, ... if you pressed the menu button accidentally than you can keep pressing search, back, menu, home buttons accidentally while in your pocket
Click to expand...
Click to collapse
How can you lock the screen and not need to hit power to wake it up?
mhewitson said:
How can you lock the screen and not need to hit power to wake it up?
Click to expand...
Click to collapse
That's what I've been trying to find out too!
O and O said:
That's what I've been trying to find out too!
Click to expand...
Click to collapse
Why on earth would you want to do that?
Because would like the display to time out but without me having to press the button but I also want it to be locked.
O and O said:
Because would like the display to time out but without me having to press the button but I also want it to be locked.
Click to expand...
Click to collapse
Why though?
Don't get me wrong I'm not having a go at you but how hard is it to press an extra button or to just let it timeout.
i also think that it would be great if we could press any harfware key to wake up the device... i think thats a great feature on hd2.
mr.vandalay said:
i also think that it would be great if we could press any harfware key to wake up the device... i think thats a great feature on hd2.
Click to expand...
Click to collapse
I agree 100%. My hands aren't that big and it can be annoying at times having to stretch my index finger all the way to the top. Would be so much better it it could be done with my thumb (using one of the bottom hard keys).
I'm not moaning, just voicing my opinion.
I love this phone too much for it to be an issue.
Yep, I want it to be like on my Hero.
is there some progress on the situation above?
yes there is
http://forum.xda-developers.com/showthread.php?t=683902
basically you do it like this
enter recovery
adb-nilezon shell mount /system
adb-nilezon pull /system/usr/keylayout/bravo-keypad.kl c:\
edit bravo-keypad.kl to your liking --> loacted in c:\ on your comp
adb-nilezon push c:\bravo-keypad.kl /system/usr/keylayout/bravo-keypad.kl
adb-nilezon shell reboot
if you edit bravo-keypad.kl like this (add WAKE_DROPPED on key 139) than when you press menu button you'll wake up your device, you can assign back, home or search key for this... the choice is yours
Code:
key 102 HOME
key 139 MENU WAKE_DROPPED
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

[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.

What's "key 107"?

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.

Playing with Root and Keymapping

I was thinking since we have root and we have a Hardware Keyboard it would be nice to actually have a Hardware button for the Camera.
So I started Searching around on how to do it. I found an application that claimed to be able to do it called "buttonremapper". Unfortunately this program only sees the Menu and back button. 2 buttons I do not wish to remap.
I did find a program called Keynrtracker on XDA that allows me to see the ID's of every button pressed including the Hardware buttons.
I researched a little more and found where the Key mapping files are located:
"system/usr/keylayout"
In here, there are many files that have to do with the keyboard. I found the one to modify is the:
"STMPE_keypad.kl"
this file has all the keys and I simply wanted to change the Search button from the keypad to bring up the Camera so I did this:
key 217 CAMERA WAKE_DROPPED
where previously 217 was:
key 217 SEARCH WAKE_DROPPED
"Wake dropped" is to tell the button to wake up if asleep or not.
Make sure you backup before have root and save. Reboot to load changes.
Well it now works I have a Hardware Camera button. One thing I noticed is I have to Hard press the button and hold not just click. Anyone know why? Added benefit is once the camera app is open, it also takes pictures by pressing on that same button.
JB
nice ^__^
It sounds like you re-mapped long press search, which normally goes to google search, which is why you may have to hold it down longer. Does a short press bring up the normal search menu?
Nardholio said:
It sounds like you re-mapped long press search, which normally goes to google search, which is why you may have to hold it down longer. Does a short press bring up the normal search menu?
Click to expand...
Click to collapse
Short press on its own does nothing. Pressing it with any other key does a normal search.
dudejb said:
I was thinking since we have root and we have a Hardware Keyboard it would be nice to actually have a Hardware button for the Camera.
JB
Click to expand...
Click to collapse
I'm assuming, you want to have it set as a 1 key touch operation instead of setting it up in quick launch configuration like Search + C.
pics can be taken using the OK button by default.
clockwork58 said:
I'm assuming, you want to have it set as a 1 key touch operation instead of setting it up in quick launch configuration like Search + C.
pics can be taken using the OK button by default.
Click to expand...
Click to collapse
Agreed 1 touch I also like the ability of knowing I can change any key on the keyboard like that useless "www.com"button.
Sent from my SAMSUNG-SGH-I927R using xda app-developers app

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

Categories

Resources