Headset Jack Button - msm8974 - software fix vs soldering - Android Software/Hacking General [Developers Only]

Hello,
I guess my headphone jack button event is handle by msm8974 because the input event name is msm8974-taiko-mtp-snd-card_Button_Jack.
It does work fine if I use a headset which does match the following technical specifications: source.android.com/devices/accessories/headset/plug-headset-spec
But I want to use a headphone jack button. Unfortunanaly all smart headphone jack buttons without microphone doesn't work with my msm8974 module. I did messure them an find out that the mic resistence is missing. According to source.android.com/devices/accessories/headset/plug-headset-spec the mic resistence is required. I guess the implementation of my msm8974 module can't handle this.
I did monitor the events and the only thing I got during button press with GND and Mic 10 Ohm is a headphone pluged in event.
I have the following ideas to solve the problem:
put a 0603 SMD resistor between GND and MIC on the male jack. It's very tight there and my be possible if I could grind the jack a little bit. But soldering on the male jack surface would be very painful. Well, I could use an resistor on top of the plug, like this: youtube.com/watch?v=mn_xYEkDMDQ but I don't want to add so much fragile offset to my phone. I prefer the integrated solution: google.com/search?q=quick+button+jack&tbm=isch
put a resistor inside the phone on the flex cable of the female connector. I have enough room inside my phone for another resistor but it's really difficult to solder on the flex cable because the lines are very small and tight together. I would not able to do this without a microscope.
change the implementation of msm8974 headphone jack handling to make it able to find the button events even without mic. There are many phone out there which are compatible with this incorrect headphone jack button. Does anybody know how to find the according kernel module and how to alter it?
change the headphone event check intervall of msm8974. If the headphone detection would be a lot faster I could listen for headphone plugin events instead of key events. But currently it does take 1-3s until the event fires. Which means I need to hold the button 3 seconds to close the circuit long enough until the headphone detection event got detected.
do you know other ways to add another hardware button to the phone without try to fit an arduino into the phone?
My msm8974 device is a Sony Z3 Compact.
I hope some of you have ideas to solve this problem.

Related

Headphone extender with inline controls

I've tried a couple of headphone extenders with inline controls to try and get something to control music with, I blind-ordered 2 from Amazon.
o The iLuv iEA15.
o The Griffin SmartTalk
The iLuv has a central play/pause/skip button which works with the N1 music app but the +/- volume buttons do nothing. Triple-click for previous track also does not work.
The Griffin has just 1 button for play/pause skip which also works fine, it also has a built-in microphone which works.
So, looks like inline volume control is NOT compatible with whatever method the iPhone/iPod uses, but maybe this just needs a software tweak somewhere? (i might put a REQ into the dev. topic and see if it flies), but if you just want inline play/pause/skip with a microphone, then the Griffin looks like a winner. The iLuv has a much shorter cable and no microphone so is possibly more suited for in-pocket use.

Headset button disable

Hey,
Can someone make a keyassign patch for vodafone 845 to disable the headset button?
It can maybe fix the headset sound problem.
Now i have a hardware solution(see picture).
I have made a insulation stripe in the jack connector.
Best regards,
Tomi

Using the Sennheiser MM30i Headset for HTC One S Android

Just brought the Sennheiser MM30i Headset for my HTC One S,
for those wondering only the centre button works, the + and - buttons are not recognized.
However im using "Headset Button Controller" (there's a couple good headset programming apps this one lets you modify the button clicks, however the Jayy one sent my music player shuffling like crazy).
So basically i can control:
Answer Call/End/Pause/Start Music = 1 click
Reject Call / Next Track = 2 click
Volume up = Hold
Volume down = Click then hold
Music wise as with most Sennheiser earphones, the quality is good, the mic is clear and in a good position on the wire. All in all a good Earphone/Headset for an android device. IF only there was a way to get the other two buttons working it would be perfect.
Been using a pair of "regular" sennheisers plugs for a while, and i'm quite happy with them. but a mic + some form of controls would be nice to have, so these could be interesting.
How is the cable lengths? unequal or equal length for left/right plugs?
equal, both side go from the front, not long enough to drive one of them behind your neck.
I'm so sad mm50ips are off the market.

canbus question

From my car/steering wheel I have to cables
Can high
Can low
Any way to get those connected to the MTCD unit?
On unit I have key 1 key 2?
Volvo V70
I believe looking at the instructions that key1 and key2 are keypress type inputs into the device similar to the illumination cables that tells the HU your lights are on and dims the display. I believe they work on a 12v signal (although you might want to confirm that and do a little more research before trying) idea being you could maybe hook up two dashboard buttons that when you press them you could get the unit to do something (run an app or trigger some code).
I think the Can High and Can Low are high and low signals from the onboard computer. I think the two are incompatible. But I am certainly no expert.
Key 1 and 2 are for resistive steering wheel controls. They have nothing to do with CANBUS.
You are going to need a CAN bus adapter for steering wheel control.
This transforms the CAN signal to the head unit into a resistive signal which can be connected to the key 1 and 2 of the head unit loom.
I would attach a picture of what this adapter looks like but I'm not allowed yet.
What year is your Volvo V70 ?

Ford SWC Issues

I have a 2004 Ford that uses one wire resistor signal for steering wheel control. I wasn't able to get the AXXESS SWC-1 to work right so I tried removing it and just connecting the one wire from the steering wheel to the Key-1 wire. That made it work but for some reason i have to program the buttons more than once. I have three different programs for each of the 4 buttons. It's like there is some king of ground shift going on causing the radio to see a different resistance at different times. I have the SWC ground off the back of the radio connected to the same ground as the radio, should that be connected to the ground that feeds the steering wheel buttons?
It's not so much of a problem as it is an annoyance to keep having to assign the buttons again and again till i have all the possible scenarios covered.

Categories

Resources