The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


triggerhappy and volume
#1
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.
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*
Reply


Messages In This Thread
triggerhappy and volume - by mezcal - 07-11-2023, 05:32 AM
RE: triggerhappy and volume - by Tim Curtis - 07-11-2023, 11:02 AM
RE: triggerhappy and volume - by mezcal - 07-11-2023, 06:00 PM
RE: triggerhappy and volume - by Tim Curtis - 07-11-2023, 06:12 PM

Forum Jump: