You are not logged in.

#1 2008-05-13 08:40:54

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

alsa not loading settings after halt

I have this problem for a few months now, but I never posted it.
If I halt my machine, next time I boot alsa is not loading properly. Only after I reboot the computer I have alsa settings back as they should be. This pisses me off lately.
My card is a Creative Audigy SE. Does anyone else have this issue?

If needed I will post logs/configs.

Offline

#2 2008-05-13 12:01:54

daneel971
Member
Registered: 2008-03-28
Posts: 197

Re: alsa not loading settings after halt

After setting your desired volume levels and switches, run as root

alsactl store

For KDE, there's an option in kmix for restoring sound settings at startup

Offline

#3 2008-05-13 12:07:11

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: alsa not loading settings after halt

I did that. Once I deleted all alsa config files and ran alsaconf again so it would create a new config, then did alsactl store. Still the same issues followed.

Offline

#4 2008-05-13 16:56:43

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: alsa not loading settings after halt

Do you have alsa daemon in your /etc/rc.conf daemons line?


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#5 2008-05-13 17:36:40

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: alsa not loading settings after halt

yes, it's there

DAEMONS=(syslog-ng @network netfs @crond @xinetd @sshd hal alsa @mysqld slim @openntpd)

Offline

#6 2008-05-13 19:35:54

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: alsa not loading settings after halt

alsactl store should be run as root. Did you do that?
After you run alsactl store change the mixer's settings and run alsactl restore in order to see whether the mixer goes back to normal.
If that works you can always add

alsactl restore

to your /etc/rc.local to restore alsa's settings.


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#7 2008-05-14 05:33:23

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: alsa not loading settings after halt

So, this is what I have

[root@eff ~]# lsmod | grep ^snd
snd_ca0106             31200  0 
snd_ac97_codec         97828  1 snd_ca0106
snd_seq_oss            30336  0 
snd_seq_midi_event      6656  1 snd_seq_oss
snd_seq                48464  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            38432  0 
snd_mixer_oss          14848  1 snd_pcm_oss
snd_usb_audio          77792  2 
snd_pcm                70404  4 snd_ca0106,snd_ac97_codec,snd_pcm_oss,snd_usb_audio
snd_timer              19588  2 snd_seq,snd_pcm
snd_page_alloc          8072  2 snd_ca0106,snd_pcm
snd_usb_lib            15488  1 snd_usb_audio
snd_rawmidi            19744  2 snd_ca0106,snd_usb_lib
snd_seq_device          6796  3 snd_seq_oss,snd_seq,snd_rawmidi
snd_hwdep               7556  1 snd_usb_audio
snd                    46436  16 snd_ca0106,snd_ac97_codec,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_usb_audio,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep

This is my asound.names: http://pastebin.ca/1017691
and this is asound.state: http://pastebin.ca/1017692

I did alsactl store / restore as root and nothing happens if I boot after a halt.

Offline

#8 2008-05-14 14:25:14

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: alsa not loading settings after halt

RaisedFist wrote:

I did alsactl store / restore as root and nothing happens if I boot after a halt.

In order to load settings you need to run alsactl restore after you boot. That's why I advised you to put a line in your /etc/rc.local


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#9 2008-05-14 16:04:35

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: alsa not loading settings after halt

so what's the use of alsa daemon then?

Offline

#10 2008-05-14 17:46:06

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: alsa not loading settings after halt

RaisedFist wrote:

so what's the use of alsa daemon then?

the answer to script related questions most of time is in the script itself, read it!
In this case the alsa script in rc.d simply does an alsactl restore on boot and an alsactl store on shutdown.

Offline

#11 2008-05-15 08:27:34

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: alsa not loading settings after halt

I did as Dheart suggested. Added alsactl restore/store in /etc/rc.local and /etc/rc.local.shutdown respectively. Still doesn't work. I think I'll change my soundcard.

Last edited by RaisedFist (2008-05-15 08:31:45)

Offline

#12 2008-05-15 09:35:21

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: alsa not loading settings after halt

A computer belonging to some friends (I installed Arch to them) encounter the same problem. They dual-boot (Mint is there in case something happens and I'm not around) and the issue is only on the Arch side. It's a AMD 754 with some kind of VIA integrated sound-card.

I've tried to fix it, but can't figure out what's the issue. I've installed Arch on 4 more and very different computers, but only the above mentioned has this issue. My post is of no help, but it might show that the user isn't to blame... at least not in every case! wink

Offline

#13 2008-05-15 12:23:00

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: alsa not loading settings after halt

It's curious. I had arch installed two years ago and didn't have any problem. I use the same computer since then. Last time I installed arch was more than a year ago. ALSA problems started some 2-3 months ago and I don't have a clue why. I might try to install arch from scratch.

Offline

#14 2008-05-22 22:38:46

chaosgeisterchen
Member
From: Kefermarkt, Upper Austria
Registered: 2006-11-20
Posts: 550

Re: alsa not loading settings after halt

Good evening,

I have to revive this thread, as I face the same problem and am virtually unable to solve it. I have tried to add alsactl store to my /etc/rc.local.shutdown and alsactl restore to my /etc/rc.local files, but these won't affect the fact I have to readjust the ALSA settings every time again I boot my machine. Apart from that, I have changed the values to my needs in /etc/asound.state and the ALSA daemon is part of the daemons()-array in my rc.conf. I have tried out both ALSA 1.0.15 and 1.0.16 and am using the former, as the newer version produces playback anomalities. Upgrading did not affect the fact that restoring the levels won't work. However, if I execute alsactl restore as root on runtime, the settings are restored as demanded. So - why won't it work, despite double execution via rc.local and the alsa-daemon as well?

It's a mystery to me.

Thanks for any suggestions!

cg


celestary
Intel Core2Duo E6300 @ 1.86 GHz
kernel26
KDEmod current repository

Offline

#15 2008-07-13 13:23:52

ombra85
Member
Registered: 2008-07-13
Posts: 8

Re: alsa not loading settings after halt

I have this audio device:

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)


And i have the same problem.
I've solved putting this line into /etc/rc.local.shutdown:

alsactl store

Offline

Board footer

Powered by FluxBB