LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-07-2005, 03:19 AM   #1
mraray
Member
 
Registered: Sep 2005
Posts: 49

Rep: Reputation: 15
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.
 
Old 09-07-2005, 03:21 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there and welcome to LQ,
try
Code:
alsactl store
as root... this will save the file for you...
regards,
slackie1000
 
Old 09-07-2005, 03:42 PM   #3
db391
Member
 
Registered: Jun 2004
Location: Britain
Distribution: Slackware
Posts: 186

Rep: Reputation: 31
To keep the settings across reboots, just add this command to a shutdown script.
 
Old 09-08-2005, 05:35 AM   #4
mraray
Member
 
Registered: Sep 2005
Posts: 49

Original Poster
Rep: Reputation: 15
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'
 
Old 09-08-2005, 07:10 AM   #5
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA Volume Settings not saving tubatodd Slackware 5 04-14-2014 02:55 PM
saving alsa settings for all users sonofpan Slackware 4 03-11-2009 02:57 PM
ALSA not saving user mixer settings abk4523 Linux - Software 3 12-29-2004 12:29 AM
Saving settings? orange400 Linux - General 3 05-27-2004 06:00 AM
ALSA Mixer Not Saving Settings... shiny_spoon Linux - Software 6 11-02-2003 11:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration