¿ªÔÆÌåÓý

Re: Bookworm & Direwolf 1.8 not saving sound volumes


 

David,
I have used sudo alsactl save , but put in the port number to also try.
systemctl | grep alsa does respond with "loaded active exited"
?
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.
?
?
~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
?
?
I've loaded Bookworm and Direwolf on 4 other Pi's without any other issues several months ago.? Now things are fighting me.? One difference is I don't want WiFi running on this Pi, so I did not set this up.? I wouldn't think WiFi settings would cause a problem, but I do get a warning when I log in after a reboot.
---------------------
Linux mine 6.6.62+rpt-rpi-v7 #1 SMP Raspbian 1:6.6.62-1+rpt1 (2024-11-25) arm v7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Dec 9 11:05:06 2024
Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.
mine@mine:~ $
-----------------------
?
I'm going to keep carefully looking, but help is appreciated.
Arnold, KQ6DI
?

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.