You are not logged in.

#1 2018-09-01 13:52:46

Nathoufresh
Member
From: Belgium
Registered: 2018-03-10
Posts: 22

Headphones remote media control?[SOLVED]

Hello,
I'm trying to get the volume switch on my headphones working on my laptop. It works well on my phone. So what I would like to do is being able to change the laptop master volume with the headphones volume switch.
I looked for something like that on ALSA and Pulseaudio's wiki but I cannot find anything about it, maybe I'm not looking for the right thing.
Is it supported on linux ? What is the name of this feature?
It looks like my headphones jack 3.5 is a TRRS.

My laptop is an HP Omen 15 2016.

Thank you for help

Last edited by Nathoufresh (2018-09-04 16:37:53)

Offline

#2 2018-09-02 09:34:26

benoitldr
Member
From: Grenoble
Registered: 2016-03-03
Posts: 29

Re: Headphones remote media control?[SOLVED]

Hello,

I use https://wiki.archlinux.org/index.php/PulseAudio and pavucontrol (gui) for configuring my sound wink

Benoit

Offline

#3 2018-09-02 13:04:25

Nathoufresh
Member
From: Belgium
Registered: 2018-03-10
Posts: 22

Re: Headphones remote media control?[SOLVED]

Offline

#4 2018-09-02 13:29:45

benoitldr
Member
From: Grenoble
Registered: 2016-03-03
Posts: 29

Re: Headphones remote media control?[SOLVED]

Nathoufresh wrote:

ok I never use this feature, I don't know if it is possible ...

Offline

#5 2018-09-02 13:59:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,842

Re: Headphones remote media control?[SOLVED]

https://unix.stackexchange.com/question … as-x-input

The 4-connector jack is pretty much a hardware hack and not standardized. Before asking whether this works with your OS, you got to figure whether it works w/ the HW, ie. whether the input can distinguish 4 connectors at all.
The next task is to figure what kind of signal can be read (and how) from that connector (eg. whether it by default acts as a microphone) - ie. the sound chip.

There's no standard and the generic answer to your question is "no", because notebook HW will most likely not support a 4th connector at all.

Offline

#6 2018-09-04 16:31:38

Nathoufresh
Member
From: Belgium
Registered: 2018-03-10
Posts: 22

Re: Headphones remote media control?[SOLVED]

seth wrote:

https://unix.stackexchange.com/question … as-x-input

The 4-connector jack is pretty much a hardware hack and not standardized. Before asking whether this works with your OS, you got to figure whether it works w/ the HW, ie. whether the input can distinguish 4 connectors at all.
The next task is to figure what kind of signal can be read (and how) from that connector (eg. whether it by default acts as a microphone) - ie. the sound chip.

There's no standard and the generic answer to your question is "no", because notebook HW will most likely not support a 4th connector at all.


Tank you for your reply.

Solved

Offline

#7 2018-09-04 20:56:49

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Headphones remote media control?[SOLVED]

Even if the connector in the pc was a 4-connector plug (typically headphones + mic in one plug) it would not work by magic. I have never looked into how it works but I suppose that the actual resistance between the common ring and the mic ring is being measured and once it goes to certain ranges then a button press event is detected.

The post on stackexchange kind of hints at how it works but don't pay attention to the resistance values quoted. Of the top of my head I don't remember exact values but I think it is a short for the middle button (on headphones with 3 buttons) and then two different values on the low hundreds of ohms for the volume buttons, you want to have values far apart enough so they are easy to distinguish.

That said it might be possible to do button press/release detection by software but I have my doubts about how reliable it might be.

@seth
If you are doing audio only there are two "standards" [1]. My laptop has a combined plug but I don't which kind it is, I know it matches what my phones use, and what a couple of usb dacs I have use. I have no idea if there is some autodetection and automatic reconfiguration going on in some of the devices but it would be possible.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB