Remap Volume Key Long-Press? - Motorola Triumph

Posted this elsewhere and haven't found a solution...
With the Optimus V I had CM7 installed, and it had an option for long-press volume-up to skip tracks, and volume-down would go back a track.
But since I listen to mostly podcasts, I went in with root explorer and changed the physical search button to be fast-forward to get past boring parts.
Since the Triumph doesn't have much in the way of physical buttons, I was trying to use the long-press volume keys to FF and rewind the current track.
I've gone to /system/usr/keylayout (this is the directory of the Optimus's settings)
But there are a number of .kl files in that folder. Does anyone know which is the one the Triumph uses for the physical keys? I'm assuming it's the "fbx_kybd.kl" since there are only 4 keys listed in it.
Also, what would key values would I add to the file to make my FF setup work?
ex:
key ??? MEDIA_FAST_FORWARD
key ??? MEDIA_REWIND
Thanks!

Still trying...
Ok, so the phone has been out for a while now, people have started making custom ROMs and such. Does anyone have an answer to my question?
Thanks!

Related

Registry Key for Button Mapping?

I know this topic has been covered - but that's the thing...it hasn't, that I can find. I see a dozen searches for this, all with responses saying "Try Vito ButtonMapper!" or "Try AE Button Plus!" Well, I've tried both.
AE Button creates a delay in any key I try to remap, so that the internet key (remapped to the Scroll Right button, since my normal Scroll Right button is ... broken) has a three-second delay after I push it until the button registers being pressed. So, AE Button is a no-go.
VITO is working much better, albeit it is far less functional in terms of those keys that can be remapped. But that's not my concern for my current issue. I'm using it right now, and it's screwing up my softkeys royally (and yes, I do know how to use the program properly, and so it's not just my ignorance to the different configurations).
So, can someone just give me a yes or no, without beating around the bush, on whether there is a direct registry key that can remap one button onto another? And, if there is, would anyone have any idea where I can find a list of keys corresponding to their respective registry values?
Thanksssssssssssssssssssss.

[REQ] Change track using Vol Keys.

Hi,
Is anyone able to write a simple service or app that will hook the volume keys so that i can double tap or tap and hold the volume keys to change the track back and forward on the stock music player.
It's a bit of a pain getting the phone out every time I want to skip a track, especially since I like to drop things but also since I prefer not to take my desire or hero out and be seen with them in my local area.
Ain't too safe.
I still can't believe HTC didn't add this feature by default, I don't want to use the headset remote.
Thanks.
Well you can always modify the file bravo-keypad.kl in /system/usr/keylayout
from
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
to
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
But then you have no volume keys.
HTC headset has track change controls?
sruon said:
Well you can always modify the file bravo-keypad.kl in /system/usr/keylayout
from
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
to
key 115 MEDIA_NEXT WAKE
key 114 MEDIA_PREVIOUS WAKE
But then you have no volume keys.
Click to expand...
Click to collapse
That's exactly why I didn't do it and requested an app/service instead
alias_neo said:
Hi,
Is anyone able to write a simple service or app that will hook the volume keys so that i can double tap or tap and hold the volume keys to change the track back and forward on the stock music player.
It's a bit of a pain getting the phone out every time I want to skip a track, especially since I like to drop things but also since I prefer not to take my desire or hero out and be seen with them in my local area.
Ain't too safe.
I still can't believe HTC didn't add this feature by default, I don't want to use the headset remote.
Thanks.
Click to expand...
Click to collapse
I use my own set of earbuds, no way I'd ever take that stock crap out of the box.
You can open the track control unit and solder your own buds onto it :/
AdamG said:
You can open the track control unit and solder your own buds onto it :/
Click to expand...
Click to collapse
I know i _can_ but it's not the solution I'm after. My buds are expensive and I use them elsewhere too, as do I also plug several other things into the phone.
Essentially, I want hte controls on the phone, and independant of the phones or wiring.
Otherwise the first thing I would have done is modify the remote control. 2 minutes work for an electronic engineer. (most of which is waiting for the iron to heat up).
I'm surprised someone hasn't already written something like this, it seemed like an obvious addition to me.
i have htc touch pro, and i mapped nearly all hw keys to do something usefull.
hold send key = toggle screen brightness. hold end key = toggle vibrate. hold home key, get the task manager. when playing music, press dpad's down = next track, hold it = fast forward. same with dpad's up but reverse. dpad's middle key = play/pause. dpad's right/left, player's volume (dedicated volume keys controll system volume.)
seeing that evo has only volume and power hw keys, assigning different functions to them besides what they currently do is essential. you got my support here =)
i'm quite familiar with modding winmo phones, but havent played with android yet. tho once i get evo, trust me, ill do everything in my power to get those hw/sw key to function as desired =D
frifox said:
i have htc touch pro, and i mapped nearly all hw keys to do something usefull.
hold send key = toggle screen brightness. hold end key = toggle vibrate. hold home key, get the task manager. when playing music, press dpad's down = next track, hold it = fast forward. same with dpad's up but reverse. dpad's middle key = play/pause. dpad's right/left, player's volume (dedicated volume keys controll system volume.)
seeing that evo has only volume and power hw keys, assigning different functions to them besides what they currently do is essential. you got my support here =)
i'm quite familiar with modding winmo phones, but havent played with android yet. tho once i get evo, trust me, ill do everything in my power to get those hw/sw key to function as desired =D
Click to expand...
Click to collapse
Yeh, this was a useful capability of WinMo. I miss that in Android, but not much else. The Desire like you said doesn't have many keys unfortunately, I'm even missing the Call and End keys I was used to on the HTC Hero, but that I can live with.
What I'd really like is the double press or press and hold for track change on volume keys just like Sony Ericsson's do.
Why moved?
Can someone please tell me why on earth this has been moved to the EVO 4G Apps and Themes Section?
The request is for an App for use on the HTC desire, which is where I posted it.
........................
My thoughts exactly.
any solution found yet, op?
Well still I want it for the Evo so if this gets moved again I am making a new one
i support this request as well... coming from BB i miss that functionality to skip tracks without having to look at or even pull out your phone
http://forum.xda-developers.com/showthread.php?t=777767

[Q] Endcall button

So, I'm playing with my phone, it's rooted, I'm using the Button Remapper (http://forum.xda-developers.com/showthread.php?t=850464). I see "key 107 ENDCALL" ...
Okay, I feel like a real idiot, but is there an "end call" button somewhere on my phone?
Examining the .kl files in /system/usr/keylayout there's also "key 62 ENDCALL" which I'm guessing is the on-screen red button that shows up during a call. But key 107 is apparently a remappable button like Menu or Search. What is it? I've attached a text file that was originally pyramid-keypad.kl and holds apparently the hardware-ish keys.
Also, I've been looking around, but haven't found this; is there a definitive list somewhere of the key numbers and what they represent?
Thanks!
Maybe the "back" button is hooking off? Not sure, would like to know this aswell.

[Q] Adding the ability to LONG press volume keys to change music track

I'm currently running Dronix 0.4 on my T-Mobile Comet (Ideos U8150). LOVE this ROM. Stable and smooth, and the only one for my comet that the multitouch actually works!
I've been trying desperately to figure out how to make the volume keys change music tracks when you LONG press on them. I was able to make them change tracks with a short press by simply editing the key layout .kl file in System/usr/keylayout, but then you can't actually adjust the volume with them. I know a few other ROMs do indeed let you control music tracks this way, and still have the volume functionality for short presses.
From what I've read, however, this is hard-coded in the kernel or something? Is there a way, without knowing how to make my own kernel, to simply update or replace something in the system files in order to get this working?
I've even tried using PowerAMP for my music, but still cannot use the volume keys to change tracks.
Please let me know, thanks in advance!

[HOW-TO] Survive with a broken power button

If your button is broken, your button is broken. Sorry . Some people have had luck cleaning it with electrical cleaner but unfortunately I was not one of them. Eventually, you will probably want to send it in somewhere to get fixed (you need all three hardware buttons for various development functions). But if you are like me and you just need a temporary fix (I'm happy w/ my current rom and will be upgrading soon), then read on!
So what you are going to want to do is swap your power and volume up functions by remapping their respected buttons. Alternatively, you could swap your power and your volume down, but I think it's more important to be able to turn it down (plus you can still take screen shots in ICS).
Here's how you do it:
You will need a file explorer (and phone for that matter) with root access. ES File Explorer would be my personal recommendation. Make sure you have root access turned on in the settings
You will probably start in /sdcard/. Navigate up one folder then go to /system/usr/keylayout. Here you will find all the files that control your buttons
For the physical buttons, go to "aries-keypad.kl" and open as a text in a text editor that your file explorer hopefully came with (if you can't in yours, use ES File Explorer)
Write down or take a screen shot of what you see so you always have a reference of what it should look like and won't need to keep checking here key 114 = vol down, key 115 = vol up, & key 116 = pow
Cut and paste POWER WAKE to key 115 and VOLUME_UP WAKE to key 116
Hit back to leave and save the file when prompted
Reboot your phone. You'll probably need to pull the battery since your power button is toast
That should do it. Your volume up button should now control your power and your power button should now control your volume up. A couple (not so important) notes:
I think you can accomplish the same thing by switching the key numbers and leave the functions where they are, but can't be sure since I didn't try it
If your button is behaving erratic and going off without you pressing it, completely erase the key and it's function from the file. After I used an electric cleaner on the button this happened to me. I tried leaving the key in there and assigning it no function but my phone went bonkers.
I have no idea if the number of spaces between the various functions and WAKE are of any significance lol. I would guess not but I kept them the same to be safe.
Some people may want to assign the search button as volume up. I'm guessing you could do it the same way but again, I haven't tried. The file cypress-touchkey.kl also has softkey functions but I'm not sure if you would need to play around in that one instead or possibly do both. If anyone has had success with this please share!
After editing the aries file, I notice a duplicate in there after reboot that has the old setup. In the file explorer it has the same name, but upon opening it, I can see that it is a .bak file. I'm 99% sure this is a backup that ES File Explorer has made for idiots like me that shouldn't be playing around in these files and need to revert
OK that's it. Sorry this got so wordy. I hope this helps someone!
Credit for getting me started: http://forum.xda-developers.com/showthread.php?t=1325867
Ye, but Volume wake + SearchToPower mod solves the same issue. I like to use my Search button for long Power press to access Power menu - it is supercool!
Another way to survive without power button is to install Super Manager and enable the 'Sensor screen wake' function. Simply wave your hand in front of the sensor to wake device, add a shortcut to lock screen.
Sent from my SGH-I897 using xda premium

Categories

Resources