setting up alsa defaults
Hi all,
Does anyone know how to setup default volume levels and unmute line in for alsa? I presume you put something in the /usr/share/alsa/alsa.conf but I can find no mention of it in the readme's, howto's or on lq. On my system I have made ~./.asoundrc and inserted: pcm.cmipci { type hw card 0 } ctl.cmipci { type hw card 0 } Sound works fine but I have to umute things and adjust volumes at startup:( Any help would be appreciated. ps. perhaps this should be in the howto? |
how about alsamixer?
|
No, you misunderstand, I can use that to set up volumes but I want to save those settings (alsamixer exits without saving its settings).
edit: no mention of it in alsamixer man page:( |
I had this problem originally.
When I came to re-installing ALSA, I added it to the startup. Try rc-update add alsasound boot and reboot and then check the levels in the alsa mixer. I knew that they weren't by default with me. But after adding this line so that it would start at boot time, when checking, the mixer already had the levels set and I didn't need to do it manually [whereas I did previously after every time I started the computer] Anyway, give it a try and tell us what happens. [EDIT] changed line!!! rc-update add alsasound boot is correct |
Hmm. Do you mean for me to type "rc-update add alsa boot" as root? If so, the command rc-update doesn't exist on my system:( . I haven't missed something obvious have I?:)
edit: same applies with alsasound..... |
hmmm.. I'm not sure about slack then... but try starting alsa whilst you're in the system. There should be a way that you can get ALSA to auto load. When you do this, it should have the channels unmuted.
Am I correct in thinking that at the moment you have to load up ALSA mixer to un-mute after every bootup? I'm just checking some info and I've come across some that I didn't need to do. You might need to do this. Quote:
|
Thanks very much for all the info and for finding that piece of text. I'll give it a try as soon as I have some time and let you know how it goes:)
|
I don't have init.d type system, instead I have /etc/rc.d/*.rc which handle runlevels, modules, internet etc....
I do however have the alsa sources and in the "driver" source package is the script "alsasound" in which can be found the lines: function stop() { # # store driver settings # if [ -x $alsactl ]; then $alsactl -f $asoundcfg store else echo -n -e "${rc_warning}!!!alsactl not found!!!${rc_reset} " fi so, in a rood console, I typed "alsactl -f asoundcfg store" and hey presto! Thanks again for info breakerfall:) |
Glad you got it working in the end :)
|
I do this by modules.conf file.
Put this : post-install snd-xxx-xxx /usr/sbin/alsactl restore pre-remove snd-xxx-xxx /usr/sbin/alsactl store After this you can make your changes in alsamixer and do alsactl store . Reboot. There must be sound now . Here is my modules.conf: alias char-major-116 snd alias snd-card-0 snd-intel8x0 alias char-major-14 soundcore post-install snd-intel8x0 /usr/sbin/alsactl restore pre-remove snd-intel8x0 /usr/sbin/alsactl store alias sound-slot-0 snd-card-0 alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss options snd major=116 cards_limit=1 device_mode=0666 options snd-intel8x0 index=0 |
Glad you posted that petatsabev as my previous post doesn't seem to do the trick, it said it saved the settings but when I rebooted I found that the line input was still muted!:(
I'll wade through what you posted and see what happens. ps. I'll reboot and test it this time - before I post "It works!!!" ;) |
All times are GMT -5. The time now is 12:31 AM. |