You are not logged in.
Pages: 1
Hello, I have a little problem. When I start my PC, sound is always muted by default, and I must unmute it manually with alsamixer. When I stop the PC, the changes on volume are not saved.
alsa is on the daemons array.
What can I do to solve this?
Greetings
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
Could we see the errors (if any) that
alsactl store
alsactl restore
Give you (the alsa diemon is just a wrapper for that)
Offline
No output:
[root@helena david]# alsactl store
[root@helena david]# alsactl restore
[root@helena david]#
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
That means that it worked, if you reboot now, or you logout/login, your sound will be on by default.
My coding blog (or an attempt at it)
Archer start page (or an attempt at it)
Offline
Now your solutions are working.
Thank you very much
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
Add alsa to your daemon list in /etc/rc.conf.
Hail to the thief!
Offline
yeah that will do it.. The alsa daemon wont have any settings to restore if you don't run alsactl store first
http://wiki.archlinux.org/index.php/ALS … at_startup
Offline
I think the wiki is not correct or rather imprecise.
It is sufficient to just add alsa to the rc.conf's daemons array. You don't have to call alsactl store manually as this is done be /etc/rc.d/alsa stop which is executed on shutdown.
Hail to the thief!
Offline
I think the wiki is not correct or rather imprecise.
It is sufficient to just add alsa to the rc.conf's daemons array. You don't have to call alsactl store manually as this is done be /etc/rc.d/alsa stop which is executed on shutdown.
alsa is on the daemons array.
?
Offline
harlekin wrote:I think the wiki is not correct or rather imprecise.
It is sufficient to just add alsa to the rc.conf's daemons array. You don't have to call alsactl store manually as this is done be /etc/rc.d/alsa stop which is executed on shutdown.
Davigetto wrote:alsa is on the daemons array.
?
Well, if it doesn't, then running the alsaconf-script should be doing this (and has done it for me in 100% of the cases)
Zl.
Offline
harlekin wrote:*snip*
Davigetto wrote:*snap*
?
Sorry, I overread this. But I still can't see any reason why it shouldn't be sufficient. *shrug*
Hail to the thief!
Offline
I think the wiki is not correct or rather imprecise.
It is sufficient to just add alsa to the rc.conf's daemons array. You don't have to call alsactl store manually as this is done be /etc/rc.d/alsa stop which is executed on shutdown.
You would think that wouldn't you.. I remember having to do this alsactl store manually myself on the last install so I know it is necessary.. The question now is why is it necessary? Time to do some investigation, as I'm now curious as to why it doesn't work by just putting alsa on the daemons line.
1) I backed up and deleted my /etc/asound.state file so as if I had a fresh install.
2) I still have alsa in my daemons line so I left that and did a reboot.. I get an error..
:: Restoring ALSA Levels [BUSY] /usr/sbin/alsactl: load_state:1313: Cannot open /etc/asound.state for reading: No such file or directory
3) Ok as I reboot again, and still same error.
4) I inspect /etc/rc.d/alsa stop function and sure enough there is a call to alsactrl store in there! I reset again and watch the terminal shutdown messages.. hmm, no mention of "Saving ALSA Levels" as set in the stop function.. Why not?
5) I head over to /etc/rc.shutdown to see how the script decides to stop daemons at shutdown.. I would appear that rc.shutdown checks the files in /var/run/daemons to find out what's running or has been run.
6) Since the alsa daemon failed to run at start because of the missing asound.state file... it is not listed in /var/run/daemons and so rc.shutdown doesn't know to run "alsa stop" on shutdown/reboot.
It's like a never ending paradox.. It's interesting though, I learned something new about Arch's scripts
Edit: Oh and when I put my system back to normal, ran alsactrl store and then ran "/etc/rc.d/alsa start". I checked /var/run/daemons and sure enough alsa is listed now!
Last edited by Zer0 (2008-01-21 18:51:00)
Offline
Pages: 1