You are not logged in.

#1 2005-02-13 03:51:39

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

alsactrl error at boot

Just rebooted my computer after some time, and I seem to have developed a problem with alsactrl. During the uptime, I ran pacman -Syu several times and only restarted the needed services like apache and mysql.
During boot, I get the error:
alsactrl: load_state:1267 No soundcards found
when the alsamixer startup script is run.

If I run the alsamixer script after I log in, it runs successfully.

Offline

#2 2005-02-13 04:11:20

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: alsactrl error at boot

its because udev hasn't finished populating the devices by the time the script is run. Try moving the alsamixer call to the end of the Daemon's array to give it a bit more time, or edit the alsamixer script to include a sleep call such as this:

 start)
        stat_busy "Restoring Alsa mixer volumes"
        sleep 10
        alsactl restore
.
.
.

I think there was discussion somewhere about some script that would load the sound device statically instead of using udev, but I don't know how it worked or where it went. The sleep call is a dirty hack but it works... if you're worried about boot time, you can use the fastboot patches (user contrib forum) to background the task.

I don't know if there were any cleaner solutions to the problem.

Dusty

Offline

#3 2005-02-13 19:01:49

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: alsactrl error at boot

Thanks, that works. I moved alsamixer after httpd and mysqld.

For the longest time this DAEMON list worked just fine.

DAEMONS=(syslogd klogd !pcmcia portmap network netfs crond cups sshd samba alsamixer)

Now after several upgrades to cups and samba, it doesn't seem to work. Very strange.

Currently my new list is:

DAEMONS=(syslogd klogd !pcmcia portmap network netfs crond cups sshd samba httpd mysqld alsamixer)

which works fine. Not sure if the upgrades really caused the problem, but I just thought I would throw this out for the next person who runs into this.

Offline

#4 2005-02-14 00:33:39

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: alsactrl error at boot

You could just add:

alsactl restore

to your rc.local.


·¬»· i am shadowhand, powered by webfaction

Offline

Board footer

Powered by FluxBB