[Q] [Problem] XPERIA Z2 - Headset Button/Key Control

Templa

Member
Jan 24, 2013
38
7
0
Frankfurt
Hello XDA,

(TL;DR: Headset button is inconsistent, can't properly use it for music control)

I recently got my XPERIA Z2, uprading form the Z. I can't be more happy right now, no flaws, no serious problems.
It's just that this one-button headset does not work properly like I want it to.
For example on Cyanogenmod 11 on my Z I could simply click once for play/pause, double click (not too fast) for next track and triple click for goung to the previous track.

Right now it feels like the software which tasks these clicks is like on drugs.

My setup:
- XPERIA Z2 (D6503) Android 4.4.2 + root
- Build: 17.1.2.A.0.314
- Poweramp 2.0.9-build-564-uni
- V-MODA M100 crossfade Headphones
- Integrated microphone and button on the cord

The problem also occurs with the WALKMAN app.
I am pretty sure it's a software based problem.

Obviously I already looked around for some solutions:
- Headset Control Center
- JAYS Headset Control
- SmartKey by Sony

Main problem is that not every click is properly recognized. Long click results into Google Voice Search.
I hit the button in different click frequencies to find out how fast or slow I have to time the clicks, but well there is like no pattern at all.
The inconsistency is all the time, it does not matter if the display is on or off.

I could only find similiar threads on this XDA but no real working solution.

I'd be happy about some replies and maybe some solid solution.

Thanks in advance!
 

Envious_Data

Senior Member
Oct 12, 2012
4,870
2,280
0
Imagination
enviousmedia.design
Hello XDA,

(TL;DR: Headset button is inconsistent, can't properly use it for music control)

I recently got my XPERIA Z2, uprading form the Z. I can't be more happy right now, no flaws, no serious problems.
It's just that this one-button headset does not work properly like I want it to.
For example on Cyanogenmod 11 on my Z I could simply click once for play/pause, double click (not too fast) for next track and triple click for goung to the previous track.

Right now it feels like the software which tasks these clicks is like on drugs.

My setup:
- XPERIA Z2 (D6503) Android 4.4.2 + root
- Build: 17.1.2.A.0.314
- Poweramp 2.0.9-build-564-uni
- V-MODA M100 crossfade Headphones
- Integrated microphone and button on the cord

The problem also occurs with the WALKMAN app.
I am pretty sure it's a software based problem.

Obviously I already looked around for some solutions:
- Headset Control Center
- JAYS Headset Control
- SmartKey by Sony

Main problem is that not every click is properly recognized. Long click results into Google Voice Search.
I hit the button in different click frequencies to find out how fast or slow I have to time the clicks, but well there is like no pattern at all.
The inconsistency is all the time, it does not matter if the display is on or off.

I could only find similiar threads on this XDA but no real working solution.

I'd be happy about some replies and maybe some solid solution.

Thanks in advance!
1. Does this change with playing with the cable

2. Does it do it with other headsets

3. There may not be any solutuon due to the fact the Z2 has a 5 pin jack instead of a ordinary 3 pin

4. :/ ive seen this with my old Xperia S headset
 

Templa

Member
Jan 24, 2013
38
7
0
Frankfurt
1. Does this change with playing with the cable

2. Does it do it with other headsets

3. There may not be any solutuon due to the fact the Z2 has a 5 pin jack instead of a ordinary 3 pin

4. :/ ive seen this with my old Xperia S headset
1. Cable is stable, it works perfectly fine on my Xperia Z

2. Don't have other headsets with one-buttons and mic attached. :/ Might look through the house later

3. I was thinking the same, but otherwise I can't imagine that's the problem. I actually can play/pause skip forward/backward just inconsistent. I am almost sure the problem would be gone if I install CM11 but tbh stock by Sony is pretty awesome without bloat.
I think that whatever processes the one-button input must have some problem. These other Headset Control apps or whatever had some options like delay and such precision stuff, sadly it does not work.

4. I don't remember it clearly but I think my Xperia Z had the same problem which got "fixed" due to another android firmware (CM11)
 

Envious_Data

Senior Member
Oct 12, 2012
4,870
2,280
0
Imagination
enviousmedia.design
1. Cable is stable, it works perfectly fine on my Xperia Z

2. Don't have other headsets with one-buttons and mic attached. :/ Might look through the house later

3. I was thinking the same, but otherwise I can't imagine that's the problem. I actually can play/pause skip forward/backward just inconsistent. I am almost sure the problem would be gone if I install CM11 but tbh stock by Sony is pretty awesome without bloat.
I think that whatever processes the one-button input must have some problem. These other Headset Control apps or whatever had some options like delay and such precision stuff, sadly it does not work.

4. I don't remember it clearly but I think my Xperia Z had the same problem which got "fixed" due to another android firmware (CM11)
Report this to Sony Support and hope their useless support team actualy does something

:/
Flashing another rom will fix it unless sony upate the firmare to fix it
 

Templa

Member
Jan 24, 2013
38
7
0
Frankfurt
Report this to Sony Support and hope their useless support team actualy does something

:/
Flashing another rom will fix it unless sony upate the firmare to fix it
Well I got some kind of substitute, I installed Xposed Framework and binded the volume up/down with prev/next to my licking. Actually that works better for me when I am outdoor. Pushing that button on the cord is cool but it's usually below my jacket, while my hands are in the pocket near the phone.

I am fine with that. But I'll take a look at Xposed Additions, there is also some configuration with hardware buttons in general.
I'll update this post in case I find a decent workaround.

Thanks for your time though! :)
 
  • Like
Reactions: Envious_Data