Headphone media control
#2
I think the kernel driver just maps the button to a key such as KEY_PLAYPAUSE using snd_jack_set_key. To do anything with double or triple clicks you would need either the application to detect and handle them, or a daemon like input-remapper to generate the key events for the alternate functions.
https://github.com/sezanzeb/input-remapper
  Reply


Messages In This Thread
Headphone media control - by rmblror - 03-27-2022, 04:13 AM
RE: Headphone media control - by wibble - 03-27-2022, 07:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  control power management aular 0 521 12-16-2023, 12:16 PM
Last Post: aular
  Android remote control using SSH/ADB/scrcpy pauloliver 1 2,604 08-05-2022, 01:30 AM
Last Post: dalyb
  Trigger happy proximity sensor, broken volume control & other newbie questions grug 3 4,398 09-10-2020, 05:57 AM
Last Post: megous

Forum Jump:


Users browsing this thread: 1 Guest(s)