Remapping keys on EVO? - EVO 4G Q&A, Help & Troubleshooting

I just saw a guide in the Hero forum that allows you to remap keys so you can choose their functions. Is this possible on the EVO? I know the file being pulled/edited would be named differently but can the buttons be altered?
http://forum.xda-developers.com/showthread.php?t=695936

+1, would love to find out as well... i did find an app on marketplace that mapped search key longpress to launch itself so hw (actually sw) key mapping is definetely possible

What would you possibly remap them to do tho?...we only have 3 hard keys.

Longpress search key - toggle vibrate OR launch quick volume/brightness manager. Then, when music app is playing and screen is off/locked - up plays/pauses track, down plays next track, up longpress - rewind, down longpress - fastforward. Turning on/unlocking the phone un-maps the keys and i change the volume with same keys... Will remove the need to turn on lcd and the need to look at the cell while listening to music.

frifox said:
Longpress search key - toggle vibrate OR launch quick volume/brightness manager. Then, when music app is playing and screen is off/locked - up plays/pauses track, down plays next track, up longpress - rewind, down longpress - fastforward. Turning on/unlocking the phone un-maps the keys and i change the volume with same keys... Will remove the need to turn on lcd and the need to look at the cell while listening to music.
Click to expand...
Click to collapse
All nice ideas. Let me know if you ever see something for EVO key mapping.

Id also like a way to do this.. I dont like the lock button location.. when using one handed, I always end up hitting the volume.. or hitting search.. probably because I was used to the lock button on the hero.

It is possible.... here is how!
I first realized how much I wanted to remap keys after I used a cyanogen rom a while back. He had an option that would allow you to let the power key end a call when pressed. This was awesome because I hate ending calls by touching the screen because sometimes I press it twice and accidentally redial and so on... Anyway, I've switched to a million different roms since and this option is not present on any of them. I knew there was a way but figured it was far too difficult. It isn't...
I followed the tutorial from the hero forums using the link in the first post. The file that you need to edit is in the same place that the hero file is in but it's called supersonic-keypad.kl instead. I edited it right on my phone using root explorer... But I'm sure you can use other methods. For my simple edit I changed the second line. I deleted the word power and replaced it with ENDCALL
... I recommend reading the tutorial carefully and making a copy of the file before making any changes just incase. I am going to remap a couple other things now... But that was my main concern. After editing it... Save and then reboot your phone to let the changes take effect...
I hope this helps!

Related

AE Button 2.6.6 - 2.2.09 - Experiences

there is a new version of AE Button! The Button map application! Any experiences? Is there an improvement for the HD? Let´s test
Anyone tried?
I wish to know too =)
Is it free?
I have this registered.
The unregistered version is actually almost fully functioning and well worth trying.
I choose to register since I found the application useful and it seemed fair to pay the developer.
THANKS, for the new version alert. But, I suspect there is little new as the history details for this version are:
02.02.2009(v2.6.6):
Fixes:
Backlight works on HP 612c now
Languages:
Updated Traditional Chinese resources (thanks to Chow Yuh)
AE Button
I find this software very useful. It completely eliminates the need of locking/unlocking software for me.
I just set double or triple tap to answer and hang up keys. This will prevent accidental key press when taking HD out of pocket. To answer call, simple double/triple tap on answer key or simply slide on screen to answer (built-in screen lock will be unlocked during incoming call).
Set press and hold volume up to toggle wireless and down to toggle bluetooth.
This one single software solved all my screen locking + lack of buttons issues!! Believe me i tried touch lock pro, sensor lock, slide to unlock and what ever you can think of (I didnt like because I think its not really practical for me to be rolling phone 180 degrees or shaking back n fourth in meetings to answer a call.)...I know you guys may argue it has light sensors to unlock, but I'll be in meetings and presentations which might be low light conditions. I do not want to set very small for polling interval either. If you have tried all else, no harm in trying this.
if you guys face the same problem like me, this tiny software might be the right solution for you.
The best combination for me:
Gyrator2 (fine tuned based on my apps) + Lumos + AE Button Plus + Touch Response (for onscreen keypress only).
The only flaw that i could find to complain is that they should really change the icon...it looks like bread/potato/or whatever...
Headset Buttons
Hi there,
is this program able to capture the button press events from a headset wired/wireless?
What I'd like to achieve is, to switch to the next song in Mediaplayer as long there is no incoming or active call.
Is that possible?
Thx in Advance
Steve
noctifer said:
Hi there,
is this program able to capture the button press events from a headset wired/wireless?
What I'd like to achieve is, to switch to the next song in Mediaplayer as long there is no incoming or active call.
Is that possible?
Thx in Advance
Steve
Click to expand...
Click to collapse
Hi, I believe not. I understand the press events from headsets and bluetooth AVRCP are actually trapped in the hardware by HTC and by-pass the operating system and are sent directly to TF3D music or WMP.
If you check on the AEB plus site: http://ae.inc.ru/ it says the app is not for specific applications.
(Also: the AEB+ icon does look like a loaf of bread !!)
Will it allow me to remap the Home button on the Touch HD?
CorruptedSanity said:
Will it allow me to remap the Home button on the Touch HD?
Click to expand...
Click to collapse
Nope. All the others but not the home button.
I have:
1. volume up. 1 press = arrow up, 2 press = volume up, long press = plamp (flash light)
2. volume down. 1 press = arrow down, 2 press = volume down, long press = resco notes recorder (auto)
3. OK / back. 2 press = rotate screen 90 deg
I keep the long press on phone end and long press on phone start handled by the system.
Dave, thanks a lot and you have some very smart short cuts
I may very well adopt them too.
CorruptedSanity said:
Dave, thanks a lot and you have some very smart short cuts
I may very well adopt them too.
Click to expand...
Click to collapse
Thanks, but I'm needing a suggestion for replacing the flash light. Never used this now "for real" so I shall find something else for the long volume up press ...
I have almost identical settings but use the long up as a bluetooth toggle. This is a fantastic program and really eliminates one of the few shortcomings of this phone.
Cheesy Dave said:
long press = plamp (flash light)
Click to expand...
Click to collapse
do you know where i can get this plamp please?
P Lamp v1.5 http://pda.jasnapaka.com/plamp/
Question guys,
How do I map the call button to long press (like the smallest long press ever) to get the Start menu?
Thanks
Sorry, I don't understand what you want. Is "call button" the "end call" or "start call" ?
Dave, call button is the left-most button that answers/makes a call. If it were colored, it would have been green.
I want to short press it to start menu (heres the tricky part, I have Quick Menu as my start menu).
Basically I miss the Start button from my TyTn II (Kaiser) and the scroll on the top. I have managed to set the volume buttons as scroll up/down and want the start call button to imitate the start menu button when I long press it. But I want to long press it for as little time as possible. So say 1 second as opposed to 3 seconds.
I see. So, two points:
1. Get quick menu
2. Use a "short" long press
I asked because the green/start left button is assignable in the standard settings - button to the <start menu> but I don't know how to do this to quick menu. I guess if you make a short cut to quick menu and drop this somewhere in the Programs folder in windows (or a sub-folder) then the standard settings - button should find it OK.
But, for option 2 I have no idea. Instead of the "short" long press how about using AEB+ with a double press ?
Dave, I see from the options that you can set the delay. I guess this from the "Key Press timeout" menu where you can select units of time starting with 200ms to 900ms. I am guessing that 200ms of time needed for a long press would be the shortest longpress possible.
Any how, how to assign the green button to start menu? It doesnt work for me. I have it as 2 presses or 3 presses or long press for start menu but nothing happens.
one problem it works to rotate(volume up which i assigned) but as soon as i make a call or recieve a call it no longer works untill i soft reset???? im i missing a setting or something? i have duttys rom, please help! : ) thanks!

Change volumebuttons function.

This will be hard to explain in english but i will try.
Volumebutton on the side, it turns of my ringer now and then, very annoying. I dont understand why HTC let that button control ringvolume at all wake times.
One solution was to edit keypad.kl, i made volumebutton to a scrollbutton. That solution was of course not so good.
Is there another way? I want it to be able to change volume when playing media but i dont want it to be able to change ringvolume.
Softwarewise there is functions to individually have different sets of volume on media, ringer, messagenotification, this in Settings control panel. Somewhere in the code there should be some kind of call to those functions and give volumebutton access to ringvolume. Maybe possibility to delete that function that lets volumebutton change ringvolume?
Does anyone understand my jibbrish-english?
Perhaps any rom-cooking chef could do an "update.zip" for this purpose? Or is this deep inside the software that needs reorganizing much?
Any chef want to confirm my request are looked into? I want this so very much and i dont think i´m alone with this wish.
Or if its practically impossible, please tell me then so i can drop the idea.
Or if my english is so messed up you dont understand what i mean, tell me so i can try harder to explain.
Yes it can be done, all you would need to do is edit the key bindings located in the following file "system\usr\keylayout\qwerty.kl" , you could do this in a update.zip form or via adb.
What do you want the volume up and down keys binded to do>?
hkkla said:
Is there another way? I want it to be able to change volume when playing media but i dont want it to be able to change ringvolume.
Click to expand...
Click to collapse
I'm also interested in this. Great idea! It has made me miss several calls
Let's not forget that they should work during a call too, which, in my opinion, is even more important.
Would it in some way be possible to stop the volume keys from changing the media volume when the screen is turned off? It's quite annoying when you take your phone out of your pocket and grab it by the volume up button
Stickman89 said:
Yes it can be done, all you would need to do is edit the key bindings located in the following file "system\usr\keylayout\qwerty.kl" , you could do this in a update.zip form or via adb.
What do you want the volume up and down keys binded to do>?
Click to expand...
Click to collapse
Whats the difference between qwerty.kl and keypad.kl? I have tried alter keypad.kl but then vol-button became more or less useless, it lost all volume-functions. I only want it to loose ability to change the ringer-volume and leave the rest of volumes alone.
I pulled qwerty.kl from my phone and it practically looks almost the same as the keypad.kl.
If i change key 114 and 115 in qwerty.kl to be for example scrollbutton i wont be able to change any volume at all with that button?
I too would like a similar function as there really is no need for the ability to change it almost anywhere;, especially with the volume rocker being so easily pushed on this phone. The following would be my preferred set up:
Only adjust media volume while playing media (including screen lock as I find it beneficial to change volume without taking phone out of my pocket)
Only adjust ring volume while in sound settings menu (where it should be!)
Volume adjust while in call should be left as is.
The only thing I would want fixed is that you shouldn't be able to use the volume buttons while the screen is locked/turned off.

[Q] How to set the volume buttons long press activity?

I'm trying to remap the long press of my volume buttons to function as another keypress. I tried posting in the android general q/a but did not garner any results.
This is not actually for my incredible, but my nationite midnite, which suffered the loss of it's hardkey buttons recently (menu, home, back) so I want to remap at least two keys to the long press of the volume button. Hours of searching hasn't done me much good in the way of this as it only points me to to spareparts and cmparts that have the option for longpress home and longpress back, which both keys don't work for me anyway.
Perhaps I could patch it somehow so that I have the media track change for the volume +/- and then remap the media < > to other keys.
I'm just trying to brainstorm the best way to go about this. I know it's the wrong section, but the midnite has limited support and the developer community is quite small.
Thanks for looking!

[Q] Can you wake up/unlock Xoom with keyboard?

Was thinking of ordering one, curious how unlocking the Xoom worked with the keyboard. Thanks!
I just checked and no, you cannot unlock with the keyboard. You can switch the screen on duration to fit your needs.
Sent from my Xoom using XDA Premium App
Actually, yes you can. if you have a keyboard with the "menu" key (usually on the right side of the keyboard near the Ctrl+Alt keys) it will work. I tried it last night and from sleep, one press takes to the unlock screen, one more unlocks the Xoom. Even without the Motorola Android specific keyboard, I found a lot of amazing shortcuts on a normal keyboard, do a google search, there are a lot, from opening Gmail/the browser to composing e-mails, etc. Just typing on the home screen brings up the search, which is great, and you can navigate most things, including going between home screens with the arrow keys. It convinced me that using the Xoom as a mini laptop replacement is relatively possible.
Hmmm, I tried every key on the moto keyboard and it will not wake it. Interesting that a generic keyboard would have that function.
I really do like the official keyboard however, I wish there was some way to map some of the keys. Its not really optimized for 3.0. Some of they keys do nothing and I haven't found a way to access the app drawer. A bit disappointing.
I think you modify the keylayout file so the button you want to wake has the "WAKE" attribute.
any idea on how to modify the keylayout on the motorola BT keyboard?
Half-way there
Actually, you can bypass the lock screen by hitting the "settings" button (or whatever it is called) 2 keys to the right from your spacebar on the Moto keyboard. However, I still can't get it to actually wake via a keypress.
Edit the /system/usr/keylayout/Vendor_22b8_Product_093d.kl file, assuming you are rooted.
On line 99, add the word WAKE beside MENU like this:
key 125 MENU WAKE
Save it and reboot. Be sure to make a backup of this file first in case you have any issues. Press Menu button once to bring it out of sleep and a second time to unlock it.
Thanks. I'm actually not rooted. Maybe I'll give that a try as well...
this worked perfectly! thanks very much
I have gotten my Xoom to wake up by pressing and holding the power button on the keyboard. It doesnt always work. It seems to depend of if the keyboard is awake itself. I have gotten them apps menu to open using the keyboard as well - its not an easy task. It depends on your ability to navigate to the top line on the home screen. Pressing enter will allow you to see if you have selected the top line (the top line is the row with the apps button, text and voice search, and the plus button). I can press alt+tab to select row, and then can cycle through the 4 options using tab. It is really hard to know which option you are on since it does not highlight as you cycle through. You simply press enter when you think you have it right. I think its much easier to just start typing the name of the app you wish to use and allow the xoom to search for it.
anthony_m_king said:
Edit the /system/usr/keylayout/Vendor_22b8_Product_093d.kl file, assuming you are rooted.
Click to expand...
Click to collapse
Is there any way to find out what file will be used for a keyboard? I bought a generic BT keyboard from eBay that has lots of Apple-specific keys. I wanted to remap them to take advantage of Android commands. I got the scancodes for each key and modified the Generic.kl file. In this file, however, it recommends to create a separate file for each device but I have no idea how I would make HC aware to use the specific file. Any ideas?

[Q] volume rocker to pause and resume

I've been searching for a mod to allow the volume rocker to pause and resume media while the screen is off. Many roms have borrowed the "volume rocker to skip tracks" feature from cyanogenmod, but I rarely skip backwards and I would rather have a hard key option to pause/resume without having to turn on the the screen.
Also, I don't want to totally remap the volume keys, just edit the long-press function while the screen is off.
Any help would be greatly appreciated.
Sent from my Galaxy Nexus using Tapatalk 2
Quickly searching, I couldn't find anything like that other than remapping, but I did find this music player app. It does use the typical Volume rocker skip forward and back.
But if you read the description, you can use the power button double press to pause and double press to start the music , and you can edit the options of that function slightly.
https://play.google.com/store/apps/details?id=com.purelogicapps.android.tactileplayerfree
It appears to run a service and isn't an actual music player in itself. You simply activate it, and then the functions apply to your music player. I can attest that the pause and skip FW and BK function works with AudioGalaxy. I don't use any other players but I may install and try a few with it.
It may be a battery drain, but that is to be determined.
Thanks... I hadn't seen that app before so I gave it a try. It uses double presses of the hard keys for media controls. Unfortunately it has a few drawbacks.
First, while you can use the power button to pause while the screen is off, it turns on the screen. Second, the the volume controls become a bit unruly and it tends to skip tracks when trying to change volume. I think this app would benefit from using long presses instead of multiple presses.
Sent from my Galaxy Nexus using Tapatalk 2
That is a good point. Perhaps you should send that to the dev. Or if you know how to make your own apps........
After having messed with it since I found it, although some might find it useful, I agree with you on the long press vs double tap, and I would think having it running would just add memory demand and battery usage. As well its another thing to turn on and off.
Maybe you can try tasker.
Swiftkey'ed on my CM9 Galaxy Nexus
+1 for Tasker. Forgot about it.
Should be able to get it to function as desired. It is a tricky app to learn, be forewarned, but it can do amazing things once you start to figure it out.
Tasker is really cool and I've tried it on several occasions for this issue but I couldn't find a way to program long presses.
I thought there may be a simple way to edit the cyanogenmod "long press to skip back" into a pause/resume function (like a simple text edit) but I've had no luck. Wish I was a programmer...
Sent from my Galaxy Nexus using Tapatalk 2

Categories

Resources