Thank you for your donation!


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


triggerhappy and volume
#4
(07-11-2023, 06:00 PM)mezcal Wrote: I have installed moode 8.3.3.

If I set Volume type: software it works. If I set Volume type: hardware it does not.
The problem is that user nobody has not access to the hardware mixer. I have hifiberry dac+. I don't know if it also applies to other dacs.

Code:
pi@moode:~/t $ sudo -u nobody amixer
amixer: Mixer attach default error: No such file or directory

The command amixer is in /var/www/vol.sh.

Solution is adding nobody to the audio group.
Code:
sudo usermod -a -G audio nobody

It is also possible to start the triggerhappy as another user from the audio group. For example mpd user.

I'm able to repro the issue when configuring Hardware volume. My earlier test was using Software volume.

I'll ad to the TODO list to investigate but your suggestion to add userid "nobody" to the audio group looks promising.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
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: