amixer: Unable to find simple control 'Master' on Raspbian 12 lite when running from systemctl service
0
votes
1
answer
496
views
On my Raspbian 12 Lite box I can run:
amixer set Master 100%
to successfully change the master volume. But if I put it into a systemctl configuration in order to set volume at boot:
[Unit]
Description=Volume
[Service]
ExecStart=/usr/bin/amixer set Master 100%
Restart=no
User=fritz
[Install]
WantedBy=multi-user.target
it doesn't work, as journalctl gives:
Mar 28 23:02:56 raspberrypi amixer: amixer: Unable to find simple control 'Master',0
Mar 28 23:02:56 raspberrypi systemd: volume.service: Main process exited, code=exited, status=1/FAILURE
Mar 28 23:02:56 raspberrypi systemd: volume.service: Failed with result 'exit-code'.
As you can see, I specified the same user that I tried from terminal. Adding
Group=audio
doesn't fix the problem.
Asked by Fabrizio Giudici
(141 rep)
Mar 28, 2024, 10:17 PM
Last activity: Mar 28, 2024, 10:28 PM
Last activity: Mar 28, 2024, 10:28 PM