Access Volume Button via bash
#2
What I found https://xnux.eu/devices/feature/volumekeys.html

On the PPP, there are following devices:

Code:
/dev/input/event0: gpio-vibrator
/dev/input/event1: adc-keys
/dev/input/event2: Goodix Capacitive TouchScreen
/dev/input/event3: gpio-key-power
/dev/input/event4: gpio-key-ri
/dev/input/event5: PinePhonePro Headphones



So I am able to read if the Volume_Key is pressed (from adc-keys) with:



Code:
libinput debug-events --device=/dev/input/event1




Which gives me some debug outputs of the pressed hardware keys without debouncing:

Code:
event1  DEVICE_ADDED            adc-keys                          seat0 default group1  cap:k
event1  KEYBOARD_KEY            +0.000s KEY_VOLUMEDOWN (114) pressed
event1  KEYBOARD_KEY            +0.208s KEY_VOLUMEDOWN (114) released
event1  KEYBOARD_KEY            +2.196s KEY_VOLUMEUP (115) pressed
event1  KEYBOARD_KEY            +2.404s KEY_VOLUMEUP (115) released




The idea is to read this keys with something simple like: read or showkey to be able to make a simple if volume up and down statement to trigger screenshooter



but I do not get input from the volume keys with this methods...
  Reply


Messages In This Thread
Access Volume Button via bash - by magdesign - 04-13-2022, 07:27 AM
RE: Access Volume Button via bash - by magdesign - 04-21-2022, 02:29 PM
RE: Access Volume Button via bash - by TRS-80 - 04-30-2022, 08:28 PM
RE: Access Volume Button via bash - by magdesign - 05-03-2022, 03:17 PM
RE: Access Volume Button via bash - by TRS-80 - 05-15-2022, 03:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to access the hardware privacy switches? Pinoideae 3 2,220 02-09-2022, 10:45 PM
Last Post: bcnaz

Forum Jump:


Users browsing this thread: 1 Guest(s)