Skip to main content
Topic: alsa-utils-runit loops (Read 183 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

alsa-utils-runit loops

The /etc/runit/sv/alsa/run file which is part of alsa-utils-runit causes looping on at least some hardware. I see that restore exits 99 on some hardware; that causes repeated runs which makes changes to the volume etc etc constantly revert.

Code: [Select]
$ sudo alsactl restore ;echo $?
Found hardware: "acp" "" "" "" ""
Hardware is initialized using a generic method
99

The run script looks like

Code: [Select]
#!/bin/sh
set -e
alsactl restore
exec chpst -b alsa pause
[code]

to make it work reasonably I need to add || true to the restore line to avoid set -e causing a premature exit.

Presumably there must be some way to hide the error more sensibly.

Re: alsa-utils-runit loops

Reply #1
Code: [Select]
[quote author=replabrobin link=msg=45707 date=1736081036]
.........
Presumably there must be some way to hide the error more sensibly.
[/quote]
It seems that alsactl nrestore does not  exit with an error.