¿ªÔÆÌåÓý

Re: Bookworm & Direwolf 1.8 not saving sound volumes


 

I have a Pi 3A, 3B, 3B+ all running Bookworm and Direwolf 1.8, and all work fine.? It's only this attempt at another 3B giving me issues, so something odd happened.
I think my best option is to re-format the SD Card, and start over at the point of loading the OS.? It seems like a better option than fighting what might be missing...
?
Arnold, KQ6DI

On 12/09/2024 12:01 PM PST David Ranch via groups.io <direwolf-groupsio@...> wrote:
?
?

Hello Arnold,

On 12/09/2024 11:10 AM, Arnold Harding - KQ6DI via groups.io wrote:
David,
I have used sudo alsactl save , but put in the port number to also try.

Please try NOT specifying a specific number:

?? sudo alsactl store

Once that's run, make sure you have the following file present with today's date/time:

?? sudo ls -la /var/lib/alsa/asound.state


?
systemctl | grep alsa does respond with "loaded active exited"

Ok.. that's good.

?
? The only thing in /etc/alsa/ is a directory conf.d .? Not the state-daemon.conf? file.
?? In /etc/alsa/conf.d are multiple additional directories.

Ok. good.


?
?Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.

That shouldn't matter



I'm going to keep carefully looking, but help is appreciated.

One thing to try... open up two CLI terminal sessions to your Rpi.?

?? - In session #1, open up alsamixer and select the correct sound device that's connected to your radio.? Make sure nothing important is muted, etc.
?????? Now, go and CHANGE either the microphone or playback levels to something you DON'T want.? Once changed.. just leave the alsamixer
?????? program running

?? - In session #2, run the command:
????? sudo alsactl store

? ? ?? In session #1, you should see your changed volume levels RETURN to where you expect them LIVE.? If they don't change, something isn't correct here.
? ? ?? Maybe you see some errors here??? Maybe you see some errors running "sudo journalctl -f" ?


--David
KI6ZHD



On 12/09/2024 7:59 AM PST David Ranch via groups.io <direwolf-groupsio@...> wrote:
?
?

Hello Arnold,

Raspberry Pi OS Bookworm uses systemd and it should have already installed the following Systemd unit files to restore your saved audio levels via:

??? /usr/lib/systemd/system/alsa-restore.service


You can see if it's recognized by running this command:

?? systemctl | grep alsa
?? --
?? alsa-restore.service??????????????????????????????????????? loaded??? active exited??? Save/Restore Sound Card State
?? --

If it's not showing up on your Pi, you need to troubleshoot that.? There is one noted caveat mentioned in the "1.3 ALSA and systemd" section in of why that might happen.? Specifically the /etc/alsa/state-daemon.conf file cannot exist to let the audio levels be restored.? Does that /etc/alsa/state-daemon.conf file exist on your Pi?? If so, do you need it??


Maybe you just saved the audio levels of the wrong souncard card?? Try just running:

?? #saves the levels of all sound devices
?? sudo alsactl save

where this more basic command will save ALL sound device levels and then reboot.? Did your required levels now get saved?

--David
KI6ZHD


On 12/08/2024 03:21 PM, Arnold Harding - KQ6DI via groups.io wrote:
David,
Yes, it is Raspberry Pi OS, Bookworm.
?
Looks like I didn't use "alsastl restore".? Where should this go?
I didn't look for /var/lib/alsa/asound.state file yet, but I'll try Restore first.
?
Thanks again,
Arnold, KQ6DI
On 12/08/2024 3:14 PM PST David Ranch via groups.io <direwolf-groupsio@...> wrote:
?
?

Hello Arnold,

I assume you're using Raspberry Pi OS correct?? In your direwolf.conf file, what sound devices are you using via your various specified ADEVICEs?? Few things to check:

?? - does the saved ALSA level file /var/lib/alsa/asound.state file exist?
?? - Upon restart, how are you running "alsastl restore" to restore the saved audio levels?


Btw, I recommend to just run "alsactl store" to save ALL sound device levels and not just specific cards.

--David
KI6ZHD


I have Direwolf working in a Pi 3B, and I am unable to have the sound devices volumes get properly restored after a reboot.
It receives fine, and transmits fine, and I can adjust volumes easily using alsamixer, but on the next power-up, all of the volumes need to get re-adjusted again.? I can use
sudo alsactl store 1? (or no channel, or 2 or 3) and the next power-up the sound devices are messed up yet again.
I'm using a usual CM108 sound card, so nothing unusual.
?
It should be easy, but I haven't seen the clue as to what yet.
?
Thanks.
Arnold, KQ6DI

Join [email protected] to automatically receive all group messages.