Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5175

Troubleshooting • Re: How to map IR scan codes to Key symbols to ALSAMIXER keys to control volume and mute

$
0
0
Hello again!

executing each of the below commands works as intended.

Code:

/usr/bin/amixer -c 0 set PCM 1.5dB+/usr/bin/amixer -c 0 set PCM 1.5dB-/usr/bin/amixer -c 0 set PCM toggle

However, in the /etc/triggerhappy/triggers.d/mpr.conf the following does not work.

Code:

KEY_VOLUMEUP1/usr/bin/amixer -c 0 set PCM 1.5dB+KEY_VOLUMEDOWN1/usr/bin/amixer -c 0 set PCM 1.5dB-KEY_MUTE1/usr/bin/amixer -c 0 set PCM toggle
what am I missing? Is this about permissions?

Thanks in advance!!

Statistics: Posted by karagir — Wed Jun 26, 2024 6:22 am



Viewing all articles
Browse latest Browse all 5175

Trending Articles