LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Saving Alsa settings (http://www.linuxquestions.org/questions/linux-hardware-18/saving-alsa-settings-360962/)

mraray 09-07-2005 04:19 AM

Saving Alsa settings
 
Hi All,


I am running Debian Sarge (stable) on my Toshiba Tecra M2 laptop. The sound works great when I run alsaconf

However, when I reboot all the settings are lost.


I have all the modules being loaded at boot (I checked lsmod before and after running alsaconf and they look the same).


Any advice?

Any other information I should provide to help: )

Thanks!

Cheers,
Andrew.

slackie1000 09-07-2005 04:21 AM

hi there and welcome to LQ,
try
Code:

alsactl store
as root... this will save the file for you...
regards,
slackie1000

db391 09-07-2005 04:42 PM

To keep the settings across reboots, just add this command to a shutdown script.

mraray 09-08-2005 06:35 AM

Hi,

Thanks for the quick reply - I tried the suggestions, but they didn't work :(

Maybe I am loading the modules too early in the boot process?

(below is the difference between the modules before and after I run alsaconf - they all appear to be there, but aftewards they are bound to hardware).

Any more suggestions?

(2.6 kernel) :)


Many thanks!

Andrew.


Quote:

tux:/tmp/2# diff post.txt pre.txt
2,14d1
< snd_intel8x0 33068 0
< snd_ac97_codec 59268 1 snd_intel8x0
< snd_pcm_oss 48168 0
< snd_mixer_oss 16640 1 snd_pcm_oss
< snd_pcm 85384 2 snd_intel8x0,snd_pcm_oss
< snd_timer 23300 1 snd_pcm
< snd_page_alloc 11144 2 snd_intel8x0,snd_pcm
< gameport 4736 1 snd_intel8x0
< snd_mpu401_uart 7296 1 snd_intel8x0
< snd_rawmidi 23204 1 snd_mpu401_uart
< snd_seq_device 7944 1 snd_rawmidi
< snd 50660 9 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi, snd_seq_device
< soundcore 9824 1 snd
56a44,56
> snd_intel8x0 33068 2
> snd_ac97_codec 59268 1 snd_intel8x0
> snd_pcm_oss 48168 1
> snd_mixer_oss 16640 1 snd_pcm_oss
> snd_pcm 85384 2 snd_intel8x0,snd_pcm_oss
> snd_timer 23300 1 snd_pcm
> snd_page_alloc 11144 2 snd_intel8x0,snd_pcm
> gameport 4736 1 snd_intel8x0
> snd_mpu401_uart 7296 1 snd_intel8x0
> snd_rawmidi 23204 1 snd_mpu401_uart
> snd_seq_device 7944 1 snd_rawmidi
> snd 50660 11 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi, snd_seq_device
> soundcore 9824 2 snd
79c79
< unix 26036 507
---
> unix 26036 524
My syslog looks like this when I am running alsaconf

Quote:

p 8 20:28:33 localhost udev[6833]: removing device node '/dev/mixer'
Sep 8 20:28:33 localhost udev[6842]: removing device node '/dev/snd/pcmC0D4p'
Sep 8 20:28:33 localhost udev[6851]: removing device node '/dev/snd/pcmC0D3c'
Sep 8 20:28:33 localhost udev[6859]: removing device node '/dev/snd/pcmC0D2c'
Sep 8 20:28:33 localhost udev[6865]: removing device node '/dev/snd/pcmC0D1c'
Sep 8 20:28:33 localhost udev[6874]: removing device node '/dev/adsp'
Sep 8 20:28:33 localhost udev[6883]: removing device node '/dev/snd/pcmC0D0p'
Sep 8 20:28:33 localhost udev[6939]: removing device node '/dev/snd/pcmC0D0c'
Sep 8 20:28:33 localhost udev[6940]: removing device node '/dev/dsp'
Sep 8 20:28:33 localhost udev[6941]: removing device node '/dev/audio'
Sep 8 20:28:33 localhost udev[6942]: removing device node '/dev/snd/timer'
Sep 8 20:28:33 localhost udev[6943]: removing device node '/dev/snd/controlC0'
Sep 8 20:28:44 localhost kernel: ACPI: PCI interrupt 0000:00:1f.5[B] -> GSI 11 (level, low) -> IRQ 11
Sep 8 20:28:44 localhost kernel: PCI: Setting latency timer of device 0000:00:1f.5 to 64
Sep 8 20:28:44 localhost udev[9973]: configured rule in '/etc/udev/rules.d/udev.rules[57]' applied, 'controlC0' becomes 'snd/%k'
Sep 8 20:28:44 localhost udev[9973]: creating device node '/dev/snd/controlC0'
Sep 8 20:28:44 localhost udev[9981]: configured rule in '/etc/udev/rules.d/udev.rules[61]' applied, 'timer' becomes 'snd/%k'Sep 8 20:28:44 localhost udev[9981]: creating device node '/dev/snd/timer'
Sep 8 20:28:45 localhost kernel: intel8x0_measure_ac97_clock: measured 49544 usecs
Sep 8 20:28:45 localhost kernel: intel8x0: clocking to 48000
Sep 8 20:28:45 localhost udev[10052]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied, 'pcmC0D4p' becomes 'snd/%k'
Sep 8 20:28:45 localhost udev[10052]: creating device node '/dev/snd/pcmC0D4p'
Sep 8 20:28:45 localhost udev[10060]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied, 'pcmC0D3c' becomes 'snd/%k'
Sep 8 20:28:45 localhost udev[10060]: creating device node '/dev/snd/pcmC0D3c'
Sep 8 20:28:45 localhost udev[10068]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied, 'pcmC0D2c' becomes 'snd/%k'
Sep 8 20:28:45 localhost udev[10068]: creating device node '/dev/snd/pcmC0D2c'
Sep 8 20:28:45 localhost udev[10076]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied, 'pcmC0D1c' becomes 'snd/%k'
Sep 8 20:28:45 localhost udev[10099]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied, 'pcmC0D0c' becomes 'snd/%k'
Sep 8 20:28:45 localhost udev[10099]: creating device node '/dev/snd/pcmC0D0c'
Sep 8 20:28:45 localhost udev[10104]: creating device node '/dev/dsp'
Sep 8 20:28:45 localhost udev[10107]: creating device node '/dev/audio'
Sep 8 20:28:45 localhost udev[10084]: creating device node '/dev/adsp'
Sep 8 20:28:45 localhost udev[10092]: configured rule in '/etc/udev/rules.d/udev.rules[59]' applied, 'pcmC0D0p' becomes 'snd/%k'
Sep 8 20:28:45 localhost udev[10092]: creating device node '/dev/snd/pcmC0D0p'
Sep 8 20:28:45 localhost udev[10076]: creating device node '/dev/snd/pcmC0D1c'
Sep 8 20:28:45 localhost udev[10129]: creating device node '/dev/mixer'

slackie1000 09-08-2005 08:10 AM

hi there,
i had a problem once with one box that could not save sound state also... what i did?
1. run alsamixer and set the volumes as desired
2. copy /etc/asound.state /etc/asound.state.ref
3. add the following line to your rc.local(or whatever your distro uses) script..
Code:

cp /etc/asound.state.ref /etc/asound.state
and voila... i know that is quick and dirty.. but it works..
regards,
slackie1000


All times are GMT -5. The time now is 04:57 PM.