Hello,
I use triggerhappy daemon for buttons, infrared remote controls and a rotary encoder.
I have rpi3 with hifiberry dac+ and use hardware volume.
I have a problem with volume. The commad is /var/www/vol.sh -dn 2. Triggerhappy daemon is started as nobody user.
I think triggerhappy.service should be overridden in /etc to starts as pi user. Maybe rewrite vol.sh or add rights for nobody user.
I use triggerhappy daemon for buttons, infrared remote controls and a rotary encoder.
I have rpi3 with hifiberry dac+ and use hardware volume.
I have a problem with volume. The commad is /var/www/vol.sh -dn 2. Triggerhappy daemon is started as nobody user.
Code:
sudo -u nobody /var/www/vol.sh -dn 2
Invalid card number.
I think triggerhappy.service should be overridden in /etc to starts as pi user. Maybe rewrite vol.sh or add rights for nobody user.
Code:
for example /etc/systemd/system/triggerhappy.d/customexec.conf:
[Service]
ExecStart=
ExecStart=/usr/sbin/thd --triggers /etc/triggerhappy/triggers.d/ --socket /run/thd.socket --user pi --deviceglob /dev/in
put/event*