[Q] (Change power button) - modifying leo-keypad.kl doesn't help - HD2 Android Q&A, Help & Troubleshooting and Genera

Hello,
I've looked for a way to modify the keypad on my HTC and I found that one must change the leo-keypad.kl file when rooted. I've done so several times with r/w option, keeping a backup file and changing the leo-keypad.kl in several ways.
What I'm trying to achieve is to exchange the function of call and endcall button. Reason? I already had to change the digitizer since pressing the endcall button to turn off the screen is so frequent, it actually damages the flex cable from digitizer making the touch screen unresponsive. Replacing the digitizer cost money, time and a little bit of functionality of the phone. I don't want this to happen again, thus I want to turn off the screen with the call button.
Changing of the file did not help. What I've done was that I located the row with CALL and changed it to ENDCALL and ENDCALL changing to CALL. Then I tried to change both or one of them for POWER. POWER for CALL, etc. Nothing has changed whatsoever. Each time I rebooted the phone and checked, whether the file did not change on it's own. It was changed, but buttons work still the same.
Any ideas?
(using Hyperdroid, ES File Explorer with root option and writing ability)

Try using KeynumberTracker from the market. This will give you the correct key number to modify, then get ButtonRemapper from the market and remap the keys....or just edit it yourself and save using root-explorer..

im sure you've noticed that ANY button will unlock the phone when running Hyperdroid. (not to insult) i too, ran into the problem you are describing and found that mashing the physical buttons (any for any reason) just seemed hard on my precious Leo.
i downloaded "screen off and lock" from the market. it IS an ON-screen alternative (and a useful one at that) to trying to remap the physical keys. i simply replaced my launchers contact icon with the 'screen off' one (that way it will show on any home screen) and i simply go to the other end of the spectrum (using the green CALL button) to bring it off standby.
hope this helps. cheers
oh, almost forgot ... "screen off and lock" REQUIRES root!!!

MimKoRn said:
Hello,
I've looked for a way to modify the keypad on my HTC and I found that one must change the leo-keypad.kl file when rooted. I've done so several times with r/w option, keeping a backup file and changing the leo-keypad.kl in several ways.
What I'm trying to achieve is to exchange the function of call and endcall button. Reason? I already had to change the digitizer since pressing the endcall button to turn off the screen is so frequent, it actually damages the flex cable from digitizer making the touch screen unresponsive. Replacing the digitizer cost money, time and a little bit of functionality of the phone. I don't want this to happen again, thus I want to turn off the screen with the call button.
Changing of the file did not help. What I've done was that I located the row with CALL and changed it to ENDCALL and ENDCALL changing to CALL. Then I tried to change both or one of them for POWER. POWER for CALL, etc. Nothing has changed whatsoever. Each time I rebooted the phone and checked, whether the file did not change on it's own. It was changed, but buttons work still the same.
Any ideas?
(using Hyperdroid, ES File Explorer with root option and writing ability)
Click to expand...
Click to collapse
You might want to try editing qwerty.kl also . I was trying to disable the front keys during sleep and at first i only edited the leo-keypad.kl file and that wasnt holding . So i also edited the qwerty.kl file and it worked .

Thanx!
shanman-2 said:
Try using KeynumberTracker from the market. This will give you the correct key number to modify, then get ButtonRemapper from the market and remap the keys....or just edit it yourself and save using root-explorer..
Click to expand...
Click to collapse
Thank you all for prompt answers and useful ideas. I decided to go for the quoted way and it works great for me. Now the call button kills the screen.
I also considered a touch screen alternative as rubledub mentioned (thanx for that), but I wanted to be able to turn off the screen even when I'm not on homescreen, so I went for the first mentioned alternative. However, the idea is cool, so I'll probably get it too, just to have both alternatives at hand.
Thanx a lot again. You probably saved my phone and my nerves.

MimKoRn said:
Hello,
I've looked for a way to modify the keypad on my HTC and I found that one must change the leo-keypad.kl file when rooted. I've done so several times with r/w option, keeping a backup file and changing the leo-keypad.kl in several ways.
What I'm trying to achieve is to exchange the function of call and endcall button. Reason? I already had to change the digitizer since pressing the endcall button to turn off the screen is so frequent, it actually damages the flex cable from digitizer making the touch screen unresponsive. Replacing the digitizer cost money, time and a little bit of functionality of the phone. I don't want this to happen again, thus I want to turn off the screen with the call button.
Changing of the file did not help. What I've done was that I located the row with CALL and changed it to ENDCALL and ENDCALL changing to CALL. Then I tried to change both or one of them for POWER. POWER for CALL, etc. Nothing has changed whatsoever. Each time I rebooted the phone and checked, whether the file did not change on it's own. It was changed, but buttons work still the same.
Any ideas?
(using Hyperdroid, ES File Explorer with root option and writing ability)
Click to expand...
Click to collapse
I simply put lock screen widget on my screen,it s free from market and works great,now i use end key only to boot the phone

Thanks.
elesbb said:
You might want to try editing qwerty.kl also . I was trying to disable the front keys during sleep and at first i only edited the leo-keypad.kl file and that wasnt holding . So i also edited the qwerty.kl file and it worked .
Click to expand...
Click to collapse
I just wanted to say thanks for this post. I was struggling with some button remapping issues and this was the cause. I only edited the keypad.kl and not the qwerty.kl as well.
So thanks again man.

MimKoRn said:
Thank you all for prompt answers and useful ideas. I decided to go for the quoted way and it works great for me. Now the call button kills the screen.
I also considered a touch screen alternative as rubledub mentioned (thanx for that), but I wanted to be able to turn off the screen even when I'm not on homescreen, so I went for the first mentioned alternative. However, the idea is cool, so I'll probably get it too, just to have both alternatives at hand.
Thanx a lot again. You probably saved my phone and my nerves.
Click to expand...
Click to collapse
could you elaborate a bit on that? i dont know where the kwerty.kl resides (yes, i m well versed with editing things in system files with root explorer)
did you find the key number and change with another key number? if so, to set an empty key (that doesnt work on pressing) what do i replace it with?
would be appreciated

why doesnt any one use button remapper it works perfect for me i have my call button set to
shut off screen and as shutdown or restart phone i dont use my end call key for anything now

Related

Jas-Jar Light Button

Any ideas on how to get the light button working on a jas-jar. Mine has not been working since the start and I've tried everything. The button Im talking about is the first from the right close to the infrared port on the outside of the device. It is supposed to turn on the flashlight but when I press it nothing happens and it doesnt even show up in the buttons applet in WM5.
Actually that button doesn't turn on the flashlight, though some here have tried to come up with a hack so that it would. I don't know if they were ever successful with that.
That button turns on the screen backlight when it has timed out but your device is still turned on. It's not the most useful button, which is why folks were trying to come up with a hack to make it more useful, for instance to turn on the flashlight like you wanted to.
Maybe if someone has had success, they will chime in here.
Change the button
Attached is a cab file allowing you to make use out of the light button to anything else :lol:
When yuo say anything else, does that include controlling the flashlight? Either way, thanks for the file.
Would be nice if one could assign it to turn on the keyboard backlight.
There is no option to adjust the sensitivite of the light sensor for the keyboard, and i think that it kicks in way to late.
Find my self holding the finger over the sensor and hitting a button to make it light up.
Any one aware og a possible Reg Hack to make this option appear in the Assing Button list?
Melty said:
When yuo say anything else, does that include controlling the flashlight? Either way, thanks for the file.
Click to expand...
Click to collapse
I meant anything else with use, flushlight & the keyboard light do not have exe files in the buttons map menu :wink:
taiseer999 said:
& the keyboard light do not have exe files in the buttons map menu :wink:
Click to expand...
Click to collapse
Nope i know that :wink: thats why i'm asking if anybody knows of a hack or the whereabouts of such an exe file..... Any ideas??
why dont u just change the option in the settings\buttons\backlight and take the tick off the box, and it works like a charm. everytime u press a key it lights up, sorted, and it doesnt affect the battery at all really
@Elmo
Well i didn't use that choise because i don't have any car charger yet. (Waiting for the Brodit kit)
I want to preserve as much battery as possible.........as you already know, this baby can eat your battery pretty fast............
Re: Change the button
taiseer999 said:
Attached is a cab file allowing you to make use out of the light button to anything else :lol:
Click to expand...
Click to collapse
Is this the same as changing it manually on the registry?
Yes, it's my CAB file I posted a little while back that adds a registry entry so that you see it listed as "Button 5" in the Buttons setting applet.
elmo said:
why dont u just change the option in the settings\buttons\backlight and take the tick off the box, and it works like a charm. everytime u press a key it lights up, sorted, and it doesnt affect the battery at all really
Click to expand...
Click to collapse
God, didn't know it was that easy... cheers!
Anyone any idea how badly this affects battery life?
Re: Change the button
taiseer999 said:
Attached is a cab file allowing you to make use out of the light button to anything else :lol:
Click to expand...
Click to collapse
Isn'it available for the Wizard too ? ...
I wrote a very simple script that turn on the camera and press the flash button.
I use the flash key and ms voice command to start it
you need to have MortScript installed. (include with this package)
A very simple question from a new owner -- where are the buttons defined that are assigned in Settings - Buttons? I don't see them labeled as "Button 1", etc in the User Manual.
davidinnz said:
A very simple question from a new owner -- where are the buttons defined that are assigned in Settings - Buttons? I don't see them labeled as "Button 1", etc in the User Manual.
Click to expand...
Click to collapse
On your HTC Universal, go to:
Start>Settings>Buttons
From there you can change the assignments of the buttons.
Ok. I have found the 2 keyboard keys that are buttons 1 and 2, and the 2 external buttons that are buttons 3 and 4.
I must say that button 1 is not very useful for voice command, when the device is closed. I guess I could assign it to button 4 or button 5 with the registry hack.
On the supplied "headset", there is a microphone with a button on it.
- What does that button do?
- Is it possible to use it for Voice Command?
(I guess for that to happen, it first needs to be recognised as an assignable button in WM5).
The backlight button cab file is working. Now I can reassign that useless button becomes the OK button. Very useful when use it in the tablet mode. But I need two more buttons to use for the softkey. I have use the record button for the left softkey and have no more button for the right softkey. Any suggestion?
One more thing, the script for enabling the flash light does not work. It turns on the camera, but the flash light remains off.

How dows one add/change a hardkey?

Hi, I did a lot of searching for this but I can't come up with any solution (which is odd as it strikes me to be a problem).
I bought voice commander yesterday as I'm on the road for my company a lot and all that works perfectly. So then I tried assigning it to a hardkey (is that the right word?) on my Touch HD (uk).
Apparently some incompetent interaction designer must have thought that it was a brilliant idea to only have one hardkey and bind that hard to making calls as well. Result? Me accidentally dialling 6 people out of the 7 times that I tried using it. I can only imagine what a horror it must be when I'm driving.
So here is the question; how do I add hardkeys to the buttons menu in the settings so I can assign stuff to those buttons? Any button really, preferably the 'hang up' button. Currently there is only 'button 1' but there must be a way of tapping into those other buttons.
I'm not shy of reg editing (it has to be a key or something in the registry) or anything like that but I can't seem to find a regeditor.
I'd try the HTC helpdesk but they don't know anything really beyond the standard questions (at least not the last 3 times I tried).
Zeus2.0 said:
Hi, I did a lot of searching for this but I can't come up with any solution (which is odd as it strikes me to be a problem).
I bought voice commander yesterday as I'm on the road for my company a lot and all that works perfectly. So then I tried assigning it to a hardkey (is that the right word?) on my Touch HD (uk).
Apparently some incompetent interaction designer must have thought that it was a brilliant idea to only have one hardkey and bind that hard to making calls as well. Result? Me accidentally dialling 6 people out of the 7 times that I tried using it. I can only imagine what a horror it must be when I'm driving.
So here is the question; how do I add hardkeys to the buttons menu in the settings so I can assign stuff to those buttons? Any button really, preferably the 'hang up' button. Currently there is only 'button 1' but there must be a way of tapping into those other buttons.
I'm not shy of reg editing (it has to be a key or something in the registry) or anything like that but I can't seem to find a regeditor.
I'd try the HTC helpdesk but they don't know anything really beyond the standard questions (at least not the last 3 times I tried).
Click to expand...
Click to collapse
Have you tried AEBPlus?
That requires me to run the program in the memory constantly doesn't it (and it's not freeware iirc)?
Zeus2.0 said:
That requires me to run the program in the memory constantly doesn't it (and it's not freeware iirc)?
Click to expand...
Click to collapse
Yes, it does takes some resources, but it gives a lot more functionality and improves the phone greatly.
For example,
You could ingle press to forward/repeat songs or change channel in FM radio, and long press to change volume.
You could single press the green button to either do nothing or start your VOIP phone if you have one, and double press to run the regular phone. (this prevents accidental dialing the last number)
Double press the back key to close active application
etc.
Hmmm, it's a last option solution for me. It's more a matter of principle. When I buy a phone like this, I expect to be able to have access to all buttons, not just one. It's a bit stupid that I need to run an extra app to actually use my phone properly. I mean; didn't anyone at htc think that just having one button is stupid and then assigning it to the dial button is just braindead thinking?
Right, gave that program a go but it doesn't seem to be working for me.
Zeus2.0 said:
Right, gave that program a go but it doesn't seem to be working for me.
Click to expand...
Click to collapse
That's because you're not familiar with how to use it yet, I think.
This is how yo use that software:
Say, you want to reassign the up volume button. First you might note that the initial defaultsetting is "do not touch button".
press and HOLD the up volume entry until
the screen for altering the setting appear.
Once that happens, the rest should be intuitively enough.
Remember later to save and exit. No need to soft reset.

Disabled n button from waking up device?

Ok, I searched and can't find anything on this. Any thoughts?
FYI...Im using CM7
Thanks.
Sent from my NookColor using XDA Premium App
ramiss said:
Ok, I searched and can't find anything on this. Any thoughts?
FYI...Im using CM7
Thanks.
Sent from my NookColor using XDA Premium App
Click to expand...
Click to collapse
I don't know that you can stop one of the 4 inputs from waking up the hardware, but...
You can define the 'n' button to do something that doesn't offend you and set your screen to sleep after a very brief moment (15 seconds).
Why do you want to change the hardward button behavior?
byronczimmer said:
Why do you want to change the hardward button behavior?
Click to expand...
Click to collapse
Hi, thanks for answering. The reason for this request is because the screen keeps waking up as it moves around in my bag. Just lightly pushing on the case/cover I use will activate the button and leave the screen on until the timeout. I am surprised this isn't an issue for more people (or perhaps people aren't noticing their nook turning on.)
Lowering the timeout is not going to work since I do a lot of reading and having to tap the screen every 15 seconds would be a pain. Unless anyone has figured out how to get screebl to work??
You can completely disable the "N" button by editing the keyboard layout file. Using Root Explorer (paid app - but WELL worth it!) or equivalent, navigate to SYSTEM>USR>KEYLAYOUT then click the button at the top to "Mount R/W", now long-press the file "qwerty.kl" and choose "Open in Text Editor". Then find the following line:
Code:
key 102 HOME WAKE
and simply add a # to the beginning of that line so that it looks like this:
Code:
#key 102 HOME WAKE
Now press your MENU button and choose "Save & Exit". You'll need to reboot the Nook for the change to take effect.
Now your N button should be completely disabled. Just make sure you have the soft keys set up with a home button so you'll have a way to use that functionality when needed.
If you want to maintain the functionality of the "N" button but just prevent it from waking the Nook, simply remove the word WAKE from that line and don't insert the # character. I haven't tried this implementation, but it should work fine.
If you did what jason suggest, make sure you not hide the status bar.
You can change the "unhide" button to something else in Tablet Tweaks or you can use the long-press Power menu option which is also in Tablet Tweaks.
911jason - thanks for that.
Running CM7.0.3 from sdcard, used Root Explorer to find and edit the keyboard layout file.
Simply removed WAKE from the home button as suggested.
Works beautifully. Doesn't wake the device, yet does all the other stuff it's supposed to.
Score one victory for increased battery life for shared knowledge.
I have a soft case and it gets turned on in my pocket.
I went ahead and also removed WAKE from the volume up and down buttons.
Now the only way to wake the screen is the power button. The way my case is, that's the one button that won't get pressed in daily travel.
(don't know if reboot is necessary, but i'd assume so, and did after each change before testing)
Thanks!
TCAndroid said:
911jason - thanks for that.
Running CM7.0.3 from sdcard, used Root Explorer to find and edit the keyboard layout file.
[ ... ]
I went ahead and also removed WAKE from the volume up and down buttons.
Click to expand...
Click to collapse
I also took WAKE off the volume keys, because I tend to reach into my bag and adjust the volume while walking or waiting for the train. My buttons don't tend to get pressed, since my bag is for a netbook and my uncased NC doesn't rattle around. However, after adjusting the volume, the screen was live and the bag and its contents sometimes made random touches all over the screen...
The volume buttons now work exactly the way I want! Thanks for the very clueful answer to this question!
Of course, now I have another thing to do every time I update my ROM. I should learn how to make update scripts!
I am curious why HOME has WAKE and not WAKE_DROPPED, when it appears to behave like WAKE_DROPPED.
From what I understand, WAKE_DROPPED causes the device to wake from sleep but does not send the command normally associated with the button that was pressed. WAKE will wake from sleep and also send the command after doing so.
911jason said:
From what I understand, WAKE_DROPPED causes the device to wake from sleep but does not send the command normally associated with the button that was pressed. WAKE will wake from sleep and also send the command after doing so.
Click to expand...
Click to collapse
Exactly so. HOME acts like WAKE_DROPPED, doesn't it? But it's marked WAKE.
Actually, yes, you're right... just realized that. Not sure why it's behaving that way.

Generic.kl and hard key problems

Hey, hopefully someone can help me.
I just changed some parts of the file Generic.kl in the system\usr\keylayout folder to disable the wakeup funtion of the power button, when phone is locked. I wanted to use only the home button for this. I didn't work as I hoped and I replaced the edited one with the one of the backup. Now every change should be replace to original state, but I lost the funtionality of back and menu buttons.
The thing is, during the changes I used them very often and they worked. But after I used my backup, which is 100% the original one, it doesnt seems to work.
I have no idea, what did happen. anyone any idea?

Rooted S8 on Nougat, want to disable home softpress waking phone

My problem is the software home button on the bottom of the screen. Any touch near the bottom of the screen when it's off will wake it.
I'm trying to disable that function so I can press anywhere on the screen and not wake it up.
I think the setting is in either Generic.kl or gpio-keys.kl in the keylayout folder, but I don't know exactly.
I've tried disabling anything relating to Home in those files, but to no avail.
Any help would be greatly appreciated
crazysoccerman said:
My problem is the software home button on the bottom of the screen. Any touch near the bottom of the screen when it's off will wake it.
I'm trying to disable that function so I can press anywhere on the screen and not wake it up.
I think the setting is in either Generic.kl or gpio-keys.kl in the keylayout folder, but I don't know exactly.
I've tried disabling anything relating to Home in those files, but to no avail.
Any help would be greatly appreciated
Click to expand...
Click to collapse
I am going to assume they are in there I will look around tonight and see if I can find anything related as well...Even with mine turned down Its awfully sensitive..
TheMadScientist said:
I am going to assume they are in there I will look around tonight and see if I can find anything related as well...Even with mine turned down Its awfully sensitive..
Click to expand...
Click to collapse
I figured out how to disable it from turning on the screen.
In Generic.kl put # in front key 172. Save and then reboot for it to take effect.
The phone still vibrates when you press the bottom of the screen, however the screen doesn't turn on.
crazysoccerman said:
I figured out how to disable it from turning on the screen.
In Generic.kl put # in front of key 143 and key 172. Save and then reboot for it to take effect.
I'm sure which one it is exactly, but disabling both of those worked. The phone still vibrates when you press the bottom of the screen, however the screen doesn't turn on.
Click to expand...
Click to collapse
Does the home button still work?
TheMadScientist said:
Does the home button still work?
Click to expand...
Click to collapse
I use lmt pie control so I don't know. I would wager it's disabling the wakeup input rather than the home input that actually works.
Edit: It's key 172, not 143.

Categories

Resources