You are not logged in.

#1 2008-01-19 21:06:55

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Arch starts with the sound muted always

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

#2 2008-01-19 21:17:19

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: Arch starts with the sound muted always

Could we see the errors (if any) that

alsactl store
alsactl restore

Give you (the alsa diemon is just a wrapper for that)

Offline

#3 2008-01-19 21:21:49

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Re: Arch starts with the sound muted always

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

#4 2008-01-19 21:46:51

X/ax
Member
From: Oost vlaanderen, Belgium
Registered: 2008-01-13
Posts: 275
Website

Re: Arch starts with the sound muted always

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

#5 2008-01-20 01:03:16

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Re: Arch starts with the sound muted always

Now your solutions are working.

Thank you very much big_smile


Only deaths can see the end of battles.

Blog: http://djmartinez.co.cc -> The life of a Computer Engineer

Offline

#6 2008-01-20 12:16:01

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: Arch starts with the sound muted always

Add alsa to your daemon list in /etc/rc.conf.


Hail to the thief!

Offline

#7 2008-01-20 19:05:00

Zer0
Member
From: Windsor, ON, Canada
Registered: 2006-08-25
Posts: 299

Re: Arch starts with the sound muted always

yeah that will do it.. The alsa daemon wont have any settings to restore if you don't run alsactl store first wink
http://wiki.archlinux.org/index.php/ALS … at_startup

Offline

#8 2008-01-20 20:54:45

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: Arch starts with the sound muted always

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

#9 2008-01-21 00:10:59

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Arch starts with the sound muted always

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.

?

Offline

#10 2008-01-21 09:46:46

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: Arch starts with the sound muted always

Misfit138 wrote:
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

#11 2008-01-21 13:10:35

harlekin
Member
From: Germany
Registered: 2006-07-13
Posts: 408

Re: Arch starts with the sound muted always

Misfit138 wrote:
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

#12 2008-01-21 18:46:49

Zer0
Member
From: Windsor, ON, Canada
Registered: 2006-08-25
Posts: 299

Re: Arch starts with the sound muted always

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.

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 wink

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

Board footer

Powered by FluxBB