I have a set of Bose MIE3 headphones with one button. This headset worked great on my HTC Hero rooted running Deck ROM and CM7 Gingerbread. Now on my new stock SGS2 the button doesn’t work correctly. At first long press would bring up Voice Talk through the phone speaker. I have rooted the phone with DooMLoRD fantastic ‘Easy Root Toolkit’ link http://forum.xda-developers.com/showthread.php?p=18805560 and installed Terminal Emulator from Jack Palevich I thank you both and will send $ soon as I get this headset working. The phone is still stock DooMLoRD's Root.
I Created a file /sdcard/external_sd/system/sec_jack.kl
key 107 ENDCALL WAKE
key 113 MUTE
key 163 MEDIA_NEXT
key 164 MEDIA_PLAY_PAUSE
key 165 MEDIA_PREVIOUS
key 226 HEADSETHOOK WAKE
key 231 CALL WAKE
key 76 HEADSETHOOK WAKE
Opened up Terminal Emulator
su
mount -o remount,rw /dev/block/mmcblk0p9 /system
cp /sdcard/external_sd/system/sec_jack.kl /system/usr/keylayout/sec_jack.kl
reboot
Now long press brings up music player and does nothing else. Did I set the key's correctly?
Please help TIA!
anyone have any input on this?!
patiently waiting for a solution. i too have the bose headsets and used to enjoy music control functions on my og droid.
how did you create that file?
donp2700 said:
patiently waiting for a solution. i too have the bose headsets and used to enjoy music control functions on my og droid.
how did you create that file?
Click to expand...
Click to collapse
I have a workable fix! I'm clicking it all into a doc right now!! I'll post it tonight here under 'Headset Button Fix'!!!
Awesome! Been looking for a solution
Sent from my Galaxy S2
ravizzle said:
Awesome! Been looking for a solution
Sent from my Galaxy S2
Click to expand...
Click to collapse
same here!
the fix post is up http://forum.xda-developers.com/showthread.php?t=1348504
Related
Besides editing the .kl files, is there something else I need to do to remap the click function of the optical pad? I don't seem to have any success so far...
In both the incrediblec-keypad.kl and qwerty.kl files, the following line exists:
Code:
key 232 DPAD_CENTER WAKE_DROPPED
I have tried simply changing "DPAD_CENTER" to "CAMERA" (in both files) and then rebooting, but the phone does not behave any differently. If I use this same procedure for a different key (like Volume-Up, for example) it works perfectly. Is there something else in the framework that is preventing remapping of the optical click though?
For what it's worth, I'm running Virtuous 3.0.1... though given the fact that I can remap other keys, I'd assume it isn't a ROM issue
I tried the exact same thing. My one problem with this phone is that I can't bind something to this key. I would LOVE to get it to load the camera. I made a thread a few weeks ago, but no one responded. I was thinking making dpad_center isn't actually the right identifier for this key? BUMP!
I wish I could find a way to wake the phone up consistently with the track pad.
1967ls2 said:
I wish I could find a way to wake the phone up consistently with the track pad.
Click to expand...
Click to collapse
I second this
Sent from my Incredible using XDA App
Gahh Its Lee said:
I second this
Sent from my Incredible using XDA App
Click to expand...
Click to collapse
There's a forum dedicated to this tweak
I'm using it now
Sent from my ADR6300 using XDA App
Search optical joystick wake
Sent from my ADR6300 using Tapatalk
So no one has any solutions for mapping the camera to the optical click?
intenselyinsane said:
Search optical joystick wake
Sent from my ADR6300 using Tapatalk
Click to expand...
Click to collapse
I ran a search for "optical joystick wake" and I don't seem to be able to find the thread you are referring to.
From forum.xda-developers.com/showthread.php?t=825511[/url] it appears that key 232 is incorrect. It should be key 272.
Runawaycoder said:
From forum.xda-developers.com/showthread.php?t=825511[/url] it appears that key 232 is incorrect. It should be key 272.
Click to expand...
Click to collapse
Thank you very much! That is quite helpful. Let me try some experiments on my end and see if I can get this working now...
First off, let me offer major thanks to TheLynxy for clearing up the whole 232/272 thing: I was wondering why rebinding the optical trackpad click never did anything (I was leaving it at 232)
What I've always wanted to do with mine was map it to be a camera button. It would seem that still does not work, even now using the correct key #
If I use the following, nothing at all happens (the phone doesn't even wake up)
Code:
key 272 CAMERA WAKE
Interestingly, however, using the FOCUS command instead will wake the device, but still does not start the camera (even if the camera is already running in the background)
Code:
key 272 FOCUS WAKE
TheLynxy said:
When the phone is on, the trackpad behaves like normal, eg the active application decides what the button does.
Click to expand...
Click to collapse
This is another interesting point about the whole thing. It seems like this is a button that is really on lockdown by the phone.
So while some progress was made, I still can't get the camera functionality I wanted. Oh well.
Standard Disclaimer: I am in no way responsible for your device ,marriage, or social life, so don't come crying to me when something happens to one or all of them. You assume all responsibility and risk.
THIS APP IS BETA:
This is a simple app I made for the A100 semi- based off the popular HideBar app by Pieter Pareit. What this app does is allow you to use the capacitive Home Button on the device (A100) to toggle the Notification Bar on/off.
HOW TO SET UP
Download the two files in the folder
Take the "gpio-keys.kl" file and move it to "/system/usr/keylayout" (make sure to make a backup of the old one before pasting)
Make sure permissions are set to RWXRWXRWX or at LEAST RW-R--R--
Now Install the downloaded APK like normal.
FILES CAN BE FOUND HERE
HOW TO USEThe gpio-keys file basically changes the home button to act as a search button (which this beta app uses) so to use the toggle, just LONG PRESS the search button and select the toggle. The first time it will ask for root permissions. I do recommend setting it as the default app. There is no app icon.
TO DO: This app is in beta, so I need you guys to let me know any bugs you find! Besides that I plan to bypass the need to use a search button.
THANKS TOO: dima_tr for, Pieter Pareit for his HideBar App , sanixk for his tutorial on how to remap hardware keys , crossix for his continued development on this device ,aznmode for letting us all know about HideBar originally , and Acer for a great tablet
Just in case
Sent from my Acer A100 using XDA Premium
What I get no thanks for initially posting the hidebar app? lol. Jk I dont think I was the first one to. Anyway, thanks for this. Will try it out when I get home!
aznmode said:
What I get no thanks for initially posting the hidebar app? lol. Jk I dont think I was the first one to. Anyway, thanks for this. Will try it out when I get home!
Click to expand...
Click to collapse
You actually were the first to post about it xD (at least that I saw) so definitely added your name.
Let me know how it works for you
Sent from my EVO 4G
I can't seem to get this working on my A10. I put the gpio-keys.kl file where it belongs. I installed the apk. Permissions are correct. I may be wrong but seems that the gpio-keys.kl from the download is identical to the one in my "/system/usr/keylayout"
this is the one I downloaded
key 136 SEARCH WAKE_DROPPED
key 139 MENU WAKE
key 102 HOME
key 158 BACK WAKE_DROPPED
key 116 POWER WAKE
key 115 VOLUME_UP WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED
this one is my backup copy from "/system/usr/keylayout"
key 136 SEARCH WAKE_DROPPED
key 139 MENU WAKE
key 102 HOME
key 158 BACK WAKE_DROPPED
key 116 POWER WAKE
key 115 VOLUME_UP WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED
am i missing something?
You have to change
key 102 HOME
to
key 102 SEARCH
simoneser said:
You have to change
key 102 HOME
to
key 102 SEARCH
Click to expand...
Click to collapse
Yes that is correct I thought I changed it to make it easier I apologize ill fix that.
Thanks simoneser
EDIT:I reuploaded the gpio-keys.kl file. Should work fine now, I apologize.
Sent from my EVO 4G
got it working
I like it so far. I'm going to check it out for a while. Thanks!
Good job! it works great. There is a typo in gpio-keys.kl though, an `s` is the first char.
eww245 said:
Good job! it works great. There is a typo in gpio-keys.kl though, an `s` is the first char.
Click to expand...
Click to collapse
Thanks for letting me know, I reuploaded a fixed version. =)
Hopefully in the next couple weeks ill have a version that doesn't need an extra gpio-keys file and just uses the home button, but that looks like it takes looking into the binding and not just android.intents so with a busy life don't hold me on the time frame
Thanks allot for making the app. Any known issues we should watch out for or things we should avoid doing with it enabled etc?
I did find an issue with using this. I was watching a video in Netflix with my taskbar hidden and the home button worked as a search button only. The long press would not work. I had no way to exit the program without restarting my tab. Any way to fix this? I'm sure there are other apps that would have this issue as well.
Sent from my A500 using xda premium
NoSudo said:
Thanks allot for making the app. Any known issues we should watch out for or things we should avoid doing with it enabled etc?
Click to expand...
Click to collapse
Well the only issue is that at the moment this does call for the search button so any app that doesn't have a need for it won't be able to launch the app.
As for the problem above (cant multiqoute on tapatalk) that's a weird issue , but it seems like it goes along with what I said above and their is no workaround until I make the app use the home button as a "home button"
Sent from my EVO 4G
will you continue to work on this to make it more functional?
thanks for the hard work put in it anyway
nunoruf said:
will you continue to work on this to make it more functional?
thanks for the hard work put in it anyway
Click to expand...
Click to collapse
Oh wow, I almost forgot about this (not in the A100 threads much)
But I suppose it's possible. I'm not very sure about ICS compatibility, but I'll take another look at this soon
Sent from my EVO 3D using Tapatalk 2
Yes, it would be amazing if you could find the time to update this to be ICS compatible!
Yes please make this ics compatible
Sent from my A100 using Tapatalk 2
Any progress on this purty please?
I don't have a comp right now so I can't work on this. Eventually though
Sent from my PG86100 using Tapatalk 2
yes ..
yes...
+1 for ICS compatibility !
Hi, sorry if I'm posting this in the wrong section, a bit confused whether it would fall under general Q&A, accessories or apps.
Anyway, does anyone know of a good app that can sort of manage the use of the 3 control buttons of sennheiser earphones while using MusicProplayer?
Right now, I can use the control to skip to the next track or play the previous track but the control for volume itself does not respond. Any app that might help?
Thanks!
seraph011 said:
Hi, sorry if I'm posting this in the wrong section, a bit confused whether it would fall under general Q&A, accessories or apps.
Anyway, does anyone know of a good app that can sort of manage the use of the 3 control buttons of sennheiser earphones while using MusicProplayer?
Right now, I can use the control to skip to the next track or play the previous track but the control for volume itself does not respond. Any app that might help?
Thanks!
Click to expand...
Click to collapse
Hey there! I was in your situation not too long I ended up downloading "JAYS headset control" app refereed by nixoninajar. This app allows you to do everything that you are looking for but the catch is, you have to use just one button. Everything stays the same except for volume control, if you want to increase click once and hold the play/skip button and to decrease double click play/skip button and hold till you get your desire volume level. This works really good for me, tested on several 3 button headsets.
Sent from my GT-N7000 using Tapatalk 2
Nice! I'll try it out tonight! By the way, is there a way to skip tracks / play previous tracks using just one button? Thanks again!
seraph011 said:
Nice! I'll try it out tonight! By the way, is there a way to skip tracks / play previous tracks using just one button? Thanks again!
Click to expand...
Click to collapse
Yes and you can customize it too
Clicks
1x play/pause/answer/hang calls
2x skip track
2x+hold volume up
3x previous track
3x+hold volume down
Easy
Sent from my GT-N7000 using Tapatalk 2
Just following up...unfortunately, Jays headset control isn't compatible with MusicPlayerPro...=*(
seraph011 said:
Just following up...unfortunately, Jays headset control isn't compatible with MusicPlayerPro...=*(
Click to expand...
Click to collapse
Aw man... Sorry to hear that I have never used musicplayer pro, but works on poweramp and playerpro though. Does musicplayer pro have option to control headset buttons? Maybe need to check them off so it doesn't conflict with jays headset app? :/
Sent from my GT-N7000 using Tapatalk 2
I'll try disabling the override for musicplayer pro and check again...thanks for the advice! =)
Hi, guys! I'm new here, so i don't know how this forum works, but I'd like to ask you something: I've a pair of headphones with volume keys but, obviously, with Android that kind of keys does not work. Well, I'd like to know if there is some kind of mod or xposed module that can make that keys work. But, if there's not, I'd like to know if there's a method or a "trick" to make that keys work without mods or somethin like that. Maybe it can be useful to know that I've a rooted ZenFone 2 running CM13. Thanks for the help! :good:
P.S. Sorry for eventual mistakes!
As far as I know there is no enabler. It depends on what headphones you have. In my Apple earpods only the midle key works to pause and play but on my samsung headphones both volume and the midle key work
You could try the xposed module Physical Button Music Control.
Guys/Mods,
I have been testing almost all CM13 and 14 ROMs for Yureka and Mi Max, but I find that 3.5mm earphones with 3 buttons' volume +/- buttons do not work. Only play/pause work in any music player app. When pressed +/- button, Play store app is getting selected on homescreen.
I use Piston 2 earphones. All 3 buttons are working fine on MIUI ROMs, but on CM based ROMs Any help is appreciated to fix this problem. By the way, I tried headset button control app, etc. etc. but those also not working.
Apple has some kind of patent for volume +- buttons on headphones so they never work on any Android phone. You can only double press them to skip track. The reason they work with MIUI got to have something to do that they are their own brand and compatible with MIUI only.
dannejanne said:
Apple has some kind of patent for volume +- buttons on headphones so they never work on any Android phone. You can only double press them to skip track. The reason they work with MIUI got to have something to do that they are their own brand and compatible with MIUI only.
Click to expand...
Click to collapse
Hi
It's not a kind of apple headphone , I have same issue with lg G4 headphone with are made for android
I saw 2 ways, but now use miui and can not try, sorry. Try for Us, please.
1) go to
system/usr/keylayout/Generic.kl
search
key 257 BUTTON_2
key 258 BUTTON_3
change to
key 257 VOLUME_UP
key 258 VOLUME_DOWN
OR
2) add
key 250 VOLUME_DOWN
key 251 VOLUME_UP
The_Serial said:
I saw 2 ways, but now use miui and can not try, sorry. Try for Us, please.
key 250 VOLUME_DOWN
key 251 VOLUME_UP
Click to expand...
Click to collapse
thank you its works on my redmi 3s using aex rom
do you know which key number for double click action ?
Hello!
Volume up/down working with Xiaomi Pistons 3rd. Xenon HD rom + phonograph +V4A, Mi Max 3/32.
If anyone reading this and want more instructions:
```
adb root
adb remount
adb shell
vim system/usr/keylayout/Generic.kl
# do the edits, save, exit
reboot
# test earbud buttons
```