Ok I picked up a new headset today (broke my OEM headset) and I really want to get the volume up/down and the answer/end keys to work for winamp.....I did a bit of snooping around with root explorer and found something very interesting..... (/system/usr/keylayout/sec_jack.kl) and when I opened it with text editor I get this (key 248 send_end)....anyone wanna give me a good push in the right direction? I would love for this sony headset to work like it does in my wife's 4g... control volume up/down, and play,plause,fw,rw...ect.
Sent from God using my Epic4G
AVRCP.kl
key 200 MEDIA_PLAY_PAUSE WAKE
key 201 MEDIA_PLAY_PAUSE WAKE
key 166 MEDIA_STOP WAKE
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
key 168 MEDIA_REWIND WAKE
key 208 MEDIA_FAST_FORWARD WAKE
key 164 MEDIA_PLAY_PAUSE WAKE
key 128 MEDIA_STOP WAKE
key 159 MEDIA_FAST_FORWARD WAKE
I'm asuming this is the blutooth keymap.... anyone know how I could get these to to work in the sec_jack.kl.... or figure out how to find out wha keys are for my volume controls on my headset?
Sent from God using my Epic4G
luis12285 said:
Ok I picked up a new headset today (broke my OEM headset) and I really want to get the volume up/down and the answer/end keys to work for winamp.....I did a bit of snooping around with root explorer and found something very interesting..... (/system/usr/keylayout/sec_jack.kl) and when I opened it with text editor I get this (key 248 send_end)....anyone wanna give me a good push in the right direction? I would love for this sony headset to work like it does in my wife's 4g... control volume up/down, and play,plause,fw,rw...ect.
Sent from God using my Epic4G
Click to expand...
Click to collapse
Yeah, you want to change it to headset_hook or something or other like that. I did the same (don't have the exact term in front of me) and can now get play/pause/fwd through the inline remote. You're out of luck for volume and the like, though.
Mind blowing that this isn't enabled by default, Samsung.
Yea... totally blows.... so change (keyXXX SEND_END) TO (key XXX headset_hook)
ap77 said:
Yeah, you want to change it to headset_hook or something or other like that. I did the same (don't have the exact term in front of me) and can now get play/pause/fwd through the inline remote. You're out of luck for volume and the like, though.
Mind blowing that this isn't enabled by default, Samsung.
Click to expand...
Click to collapse
Sent from God using my Epic4G
luis12285 said:
Yea... totally blows.... so change (keyXXX SEND_END) TO (key XXX headset_hook)
Sent from God using my Epic4G
Click to expand...
Click to collapse
Yep, I think that's it.
Related
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
hey all,
been looking into the bravo-keypad and if you look at the top of a bravo-keypad for wake up using BACK you have this
key 102 HOME
key 139 MENU
key 158 BACK WAKE_DROPPED
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
key 116 POWER
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
The trackball has the key 272 which i got from keytest using recovery.
IF i had this to the file instead of back, i kill the power button ..
suggestions why? lol
and a solution on how to add it?
This would be interesting if it could ever be achieved
It is allready in the ShadowFrost rom, but it would be nice to make it, so it could be used in other roms as well.
Gtot
Gtot said:
It is allready in the ShadowFrost rom
Gtot
Click to expand...
Click to collapse
That's good news! It means it is doable...
Please search before posting!
http://forum.xda-developers.com/showthread.php?t=703539
======================================
I don't think you can activate trackpad/trackball wake up in bravo-keypad.kl. It's a kernel patch from what I gather.
In my DeFrost 2.0c I have trackpad to wake and unlock, together with the power button. Trackpad is not listed in bravo-keypad.kl.
Daelyn said:
Please search before posting!
http://forum.xda-developers.com/showthread.php?t=703539
======================================
I don't think you can activate trackpad/trackball wake up in bravo-keypad.kl. It's a kernel patch from what I gather.
In my DeFrost 2.0c I have trackpad to wake and unlock, together with the power button. Trackpad is not listed in bravo-keypad.kl.
Click to expand...
Click to collapse
Apparently it is only for 2.1 for now..
hehe i searched for trackball couldnt remember the trackpad so hehe
Hm so it would probobly not be possible to fix with keypad wile?
what a pain in the ass
jastonas said:
Apparently it is only for 2.1 for now..
Click to expand...
Click to collapse
No, as i said... it is working in ShadowFROST and it is Froyo.
The other solution is only 2.1 yes, we just need to find out how it was don in ShadowFROST.
l1nuxfre4k said:
hehe i searched for trackball couldnt remember the trackpad so hehe
Hm so it would probobly not be possible to fix with keypad wile?
what a pain in the ass
Click to expand...
Click to collapse
Well. It works in DeFrost 2.0c, so, I of course it is possible.
How? I don't have a clue.
Credit goes to: Geniusdog254, Decad3nce, and BuglessPete for being remapping guru's.
Right, just slappin' this how-to together quickly before I go to work. I'll clean everything up and make things so that they're not so vague when I get home from work.
So if you're like me, and you hate having to reach all they way to the top right hand corner of your phone to press the power key so that you may wake your phone, then this tutorial will tell you how to make it so that your volume down key acts as a power key, which will give your Evo the ability to wake from sleep by pushing the volume down key. I've also remapped the search key so that it acts as the volume down key.
Please note that my remapping the volume down key will not effect it while in recovery, fastboot, or bootloader mode.
Make a backup of your supersonic-keypad.kl by running these commands via adb:
Code:
adb remount
adb pull system/usr/keylayout/supersonic-keypad.kl supersonic-keypad.kl
The supersonic-keypad.kl file is now in your AndroidSDK tools file, pull it out and save it to your desktop, just in case you ever want to switch back.
Download one of these files and save it to your AndroidSDK tools folder.
Volume down key acts as your power key & search key as your volume down key - http://www.4shared.com/file/c2KMz6tH/supersonic-keypad.html
Search key as select or enter -http://www.4shared.com/file/3ME8K6iK/supersonic-keylayout.html
Volume down key acts as your power key and search key opens up the phone application - http://www.4shared.com/file/-UaXzgwH/_2__supersonic-keypad.html
Then run these commands via adb:
Code:
adb remount
adb push supersonic-keypad.kl /system/usr/keylayout
adb reboot
And that's it, your volume down button will now act as your power button which will allow you to wake your screen, and your search key will now act as your volume down key.
Sweet find man..any chance for if somebody can attach the file onto this thread instead of sharing service?
attached.
You'll need to rename it to .kl
can someone make a flashable zip to do this please.
Nice thanks bro
Sent from my PC36100 using XDA App
This is a good hack. It'll give your power button a rest, as some owners were unfortunate of having cracks from the faulty strain.
afflaq said:
attached.
You'll need to rename it to .kl
Click to expand...
Click to collapse
Thanks mate.
NICE it worked. Now the VOL-DOWN key will wake phone up.
But you'll lose the volume down and you can't adjust the volume while in phone, so you have to get a volume widget or some sort.
but i like my volume down button turning my volume down and my search button searching
haha i agree with davebu. Nice feature though! I can imagine this will be useful for some people.
vboyz103 said:
NICE it worked. Now the VOL-DOWN key will wake phone up.
But you'll lose the volume down and you can't adjust the volume while in phone, so you have to get a volume widget or some sort.
Click to expand...
Click to collapse
That's why I remapped the search key to act as a volume down key. A feature I find cool, seeing as the search key has done nothing but annoy me. Lol
davebu said:
but i like my volume down button turning my volume down and my search button searching
Click to expand...
Click to collapse
Well then, I guess you're **** out of luck with this guide.
Although I've been looking into giving key 114 permission to run the WAKE_DROPPED attribute by editing init.rc. I'll look into that when I get home, or maybe somebody smarter than me can figure it out before then.
The other thing you could do...
The other way you can enable this feature is to download No Lock by BoD. It's an app that disables the lock screen, which I've always found kinda unneeded. It has the added benefit of allowing the phone to wake up upon volume button press.
Hope someone finds this helpful.
Enjoy!
madmagdalin said:
The other way you can enable this feature is to download No Lock by BoD. It's an app that disables the lock screen, which I've always found kinda unneeded. It has the added benefit of allowing the phone to wake up upon volume button press.
Hope someone finds this helpful.
Enjoy!
Click to expand...
Click to collapse
Thread pwned. Lmao
Thanks a million for this, dude.
Could you remap your "search" key to be like a "trackball press" on the HTC Dream?
c0t0d0s2 said:
Could you remap your "search" key to be like a "trackball press" on the HTC Dream?
Click to expand...
Click to collapse
Yes, but to my knowledge you'd only be able to use it to move in one direction. Somebody please correct me if I'm wrong.
neckface said:
Yes, but to my knowledge you'd only be able to use it to move in one direction. Somebody please correct me if I'm wrong.
Click to expand...
Click to collapse
He means can you make it so its the actual "Press" like when you press the trackball down and select something, not to make it so it moves around like when you move the trackball. Like a enter sort of fashion when you highlight over something with the trackball and press it down.
oreoOozZz said:
He means can you make it so its the actual "Press" like when you press the trackball down and select something, not to make it so it moves around like when you move the trackball. Like a enter sort of fashion when you highlight over something with the trackball and press it down.
Click to expand...
Click to collapse
Good God, I'm slow. Thanks for the clarification. I'm pretty sure you could, but wouldn't it be easier to just use the screen to select or confirm whatever it is you're selecting and/or confirming? Or is there yet another thing in missing?
neckface said:
Good God, I'm slow. Thanks for the clarification. I'm pretty sure you could, but wouldn't it be easier to just use the screen to select or confirm whatever it is you're selecting and/or confirming? Or is there yet another thing in missing?
Click to expand...
Click to collapse
Yes, if it acted like a trackball click it would wake the phone.
I'd love that, but I think the issue is that the capacitive buttons are off when the phone is asleep.
Can anyone confirm this?
Sent from my PC36100 using XDA App
I was thinking it'd be nice for older apps that use a trackball press, like connectbot and spider solitaire.
laydros said:
Yes, if it acted like a trackball click it would wake the phone.
I'd love that, but I think the issue is that the capacitive buttons are off when the phone is asleep.
Can anyone confirm this?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
I see. And yeah, you're correct about the captivate buttons. I think an easier route would be to edit init.rc to give one, or both, of the volume keys permissions to run the WAKE_DROPPED attribute. Although, making it so that one of the captivated keys could run the very same attribute would be better still.
How have you guys got your shoulder buttons set in FPSE? I have L and R as L1 and R1 and then also have the shoulder buttons onscreen to be able to access L2 and R2. Is that the way we're all doing it or is there a better way?
You can use the volume buttons as well. It depends on the game, mostly. Some games don't use them at all, or they use them for redundant functions.
I tried using the volume buttons but it's hard to press it when you have a case on. It's good to use when you're not using a case but I hate it when I have to adjust the volume because you have to pause the game and adjust in settings.
I just put L2 and R2 on the touchscreen.
Sent from my R800i using xda premium
Is there a way to put L2 and R2 on the screen without L1 and R1?
The Alpha Gamer said:
Is there a way to put L2 and R2 on the screen without L1 and R1?
Click to expand...
Click to collapse
I don't think there's a way to just show L2 and R2 on the touchscreen I just checked the settings.
Russsy said:
I tried using the volume buttons but it's hard to press it when you have a case on. It's good to use when you're not using a case but I hate it when I have to adjust the volume because you have to pause the game and adjust in settings.
I just put L2 and R2 on the touchscreen.
Sent from my R800i using xda premium
Click to expand...
Click to collapse
Actually if you press the "Menu" button, the volume buttons return to their original function and you can adjust the volume. It's not a big thing, I'd say.
Logseman said:
Actually if you press the "Menu" button, the volume buttons return to their original function and you can adjust the volume. It's not a big thing, I'd say.
Click to expand...
Click to collapse
Thanks I never knew that but I still have troubles using them as buttons because im using a case. I'll just stick to buttons on touchscreen.
Sent from my R800i using xda premium
depends on the game... mostly they are just set to l1 and r1, and dont even bother with l2/r2... but to thps3 i have the right shoulder button set to r2 for revert, i never used the shoulder buttons for spins on there anyway...
I'm playing Castlevania SOTN at the moment and I mapped L1 and R1 to the physical shoulders and display R1 and R2 virtual buttons in the bottom right corner of the screen.
L2 is not used in this game, R1 R2 L1 are used to transform into a creature.
I just use the volume button. Even if your volume buttons mapped to L2 and R2 you can still change the volume by bringing up the emulator menu and then using them. So basically just press the menu key before changing your volume and then press the menu key again.
Hey, I am unable to find where to enable the shoulder buttons on screen at all... can anyone direct me? I am playing FF Tactics and shoulder is used to rotate the map which is used frequently. I have FPSE v0.11
thanks
can someone make a customkeymap for the powerbutton
replace the 3d button so i can use the 3d button to unlock the screen......
..
my power button is broken please help
thx guys
key mapping wont help you as after deep sleep only power key would wake it. You need to stop from fone going into deep sleep. you may use no lock app on market and then add wake to volumekeys
Stunningkun said:
key mapping wont help you as after deep sleep only power key would wake it. You need to stop from fone going into deep sleep. you may use no lock app on market and then add wake to volumekeys
Click to expand...
Click to collapse
yeh i have made it by myself XD i found how it works but its not working...
thx
but then drains my battery so very fast
i think cm7 has an option to wake on volume keys from deep sleep. this will save you battery but your 3d would be limited.
Stunningkun said:
i think cm7 has an option to wake on volume keys from deep sleep. this will save you battery but your 3d would be limited.
Click to expand...
Click to collapse
REALY :O
i gonna try :O
idont give a F*ck about 3D XDXD
Edit the omap.keypad.kl in /system/usr/keylayout from
key 249 3D-MODE
to
key 249 POWER WAKE
I think it should do the trick
stobias_ah said:
Edit the omap.keypad.kl in /system/usr/keylayout from
key 249 3D-MODE
to
key 249 POWER WAKE
I think it should do the trick
Click to expand...
Click to collapse
i have try't that but when it is in deep sleep it is not working anymore
gamesz2 said:
i have try't that but when it is in deep sleep it is not working anymore
Click to expand...
Click to collapse
sorry, didn´t understood the deepsleep thing
do you mean deepsleep = phone complety shut off ?
stobias_ah said:
sorry, didn´t understood the deepsleep thing
do you mean deepsleep = phone complety shut off ?
Click to expand...
Click to collapse
no when it is a couple of minutes on lockscreen then the customkeymap dont work anymore
then it should work when its
249 POWER WAKE
or
249 POWER WAKE_DROPPED
Code:
WAKE #Completes the action without waking the screen
WAKE_DROPPED #Wakes the phone to complete the action
stobias_ah said:
then it should work when its
249 POWER WAKE
or
249 POWER WAKE_DROPPED
Code:
WAKE #Completes the action without waking the screen
WAKE_DROPPED #Wakes the phone to complete the action
Click to expand...
Click to collapse
I will try this tommorow
Thx cyanogenmod was not working for me so i try this tommorow and i hope it works
Thx
Sent from my LG-P920 using XDA
sorry to disappoint but this wake thing is not gonna work. Were you not able to install cm7?? or could not find the option?
gamesz2 said:
I will try this tommorow
Thx cyanogenmod was not working for me so i try this tommorow and i hope it works
Thx
Sent from my LG-P920 using XDA
Click to expand...
Click to collapse
I have done what you say but also its not working :s
Sent from my LG-P920 using XDA
Stunningkun said:
sorry to disappoint but this wake thing is not gonna work. Were you not able to install cm7?? or could not find the option?
Click to expand...
Click to collapse
I get it to work to get it on lockscreen with a nother key but unlock looks like inpossible the sceen stays black and there is no action (deepsleep)
Iam now on cm7 beceas someone says you can unlock with volume keys but also that is not working
Sent from my LG-P920 using XDA
so you mean wake on volume keys option is not working on it i.e doesn't wake up after going into deep sleep. one more thing if your power key is damaged how are entering the CWM?
Stunningkun said:
so you mean wake on volume keys option is not working on it i.e doesn't wake up after going into deep sleep. one more thing if your power key is damaged how are entering the CWM?
Click to expand...
Click to collapse
Plug in the power (phone turns on)
Hold volume down and 3d
Wait for it
Cwm
Sent from my LG-P920 using XDA
I'm afraid that it's not possible to wake up the O3D with any other button than the power button. There is a similar 6-page thread here:
http://forum.xda-developers.com/showthread.php?t=1351552
You could also try ButtonRemapper but I doubt it will work:
http://forum.xda-developers.com/showthread.php?t=850464
But since you can enter CWM and boot your phone, isn't it possible to flash a stock .kdz ROM (in order to remove the root and CWM) and send it to the LG service?
Well i think i am lost here but i can help but it will cost you your stock LG ui just download and install Go ex and go to settings and make the volume and home key the wakeup buttons..
Do you mean the Go Locker instead of the Go Launcher EX? Last time I used the launcher, it didn't have the option to wake up the phones with the volume buttons. Go locker has this option according to the thread I posted above.
open the sucker,
disassemble it...
find the power button ans the strip that connects it to the Motherboard
you will find an L shaped two parallel wires.
Replace them with phone wires...
(most likely those wires broke...)