Answer the question
In order to leave comments, you need to log in
How to intercept a button press on a wired headset on Linux?
The usual headset, two headphones, a microphone and a button. You know. The laptop socket just allows you to stick such a "two in one". Of course, the microphone will work. And I also want buttons, so that when clicked, for example, the specified command is executed
Answer the question
In order to leave comments, you need to log in
the button closes the microphone input to a common wire. this is the moment you need to catch hardware
The laptop socket is just the same two in one - a microphone and headphones. And you need 3 in one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question