Fedora Linux Support Community & Resources Center
  #1  
Old 23rd December 2004, 06:20 PM
makuz Offline
Registered User
 
Join Date: Dec 2004
Posts: 73
alsamixer settings are not restored

i recently upgraded my system from fc1 to fc3. i was using alsa with fc1 as well. the problem is that the mixer settings are not restored at boot and everything is muted. i think the old settings from fc1 collide with fc3 somehow.

my /etc/modprobe.conf has the following sound related lines:

Code:
alias char-major-116-* snd
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
alias char-major-14-* soundcore
alias snd-card-1 snd-usb-audio

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
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-8 snd-seq-oss

install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-intel8x0 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0
i know that i could put an alsactl call to /etc/rc.d/rc.local. is it how it works in a fresh fc3 install? i don't think so, it seems to be an ugly hack to me.

i heard that udev might cause problems with alsamixer settings. my /etc/udev/devices directory was completely empty, so i tried to copy the mixer devices from /dev, but i'm not sure if this is enough. could someone post the contents of his /etc/udev/devices directory?

any help would be appreciated.
Reply With Quote
  #2  
Old 25th December 2004, 10:38 PM
makuz Offline
Registered User
 
Join Date: Dec 2004
Posts: 73
maybe i was not clear enough. could someone do an
Code:
ls -la /etc/udev/devices
on a fedora core 3 system and post the result here, please?
i could not get this sound problem sorted out for weeks.
thanks in advance.

Last edited by makuz; 25th December 2004 at 10:42 PM.
Reply With Quote
  #3  
Old 26th December 2004, 01:17 AM
Woad_Warrior Offline
Registered User
 
Join Date: Dec 2004
Location: Harmony, PA
Posts: 457
I have the same problem with alsa settings not being restored.
etc/modprobe.conf
alias eth0 8139too
alias eth1 forcedeth
alias snd-card-0 snd-intel8x0
options snd-card-0 index=0
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-intel8x0 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0
alias char-major-81 bttv
alias usb-controller ehci-hcd
alias usb-controller1 ohci-hcd
alias ieee1394-controller ohci1394

alias snd-card-1 nvsound
options snd-card-1 index=1
install nvsound /sbin/modprobe --ignore-install nvsound && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove nvsound { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove nvsound

# --- BEGIN: Generated by ALSACONF, do not edit. ---
# --- ALSACONF verion 1.0.7 ---
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
# --- END: Generated by ALSACONF, do not edit. ---

# nvidia kernel module
alias char-major-195 nvidia-1_0-6629

# ls -la /etc/udev/devices
total 20
drwxr-xr-x 3 root root 4096 Dec 15 10:34 .
drwxr-xr-x 6 root root 4096 Dec 18 01:09 ..
drwxr-xr-x 2 root root 4096 Nov 28 22:16 dev
crw-rw-rw- 1 root root 195, 0 Nov 27 08:28 nvidia0
crw-rw-rw- 1 root root 195, 1 Nov 27 08:28 nvidia1
crw-rw-rw- 1 root root 195, 2 Nov 27 08:28 nvidia2
crw-rw-rw- 1 root root 195, 3 Nov 27 08:28 nvidia3
crw-rw-rw- 1 root root 195, 4 Nov 25 00:05 nvidia4
crw-rw-rw- 1 root root 195, 5 Nov 25 00:05 nvidia5
crw-rw-rw- 1 root root 195, 6 Nov 25 00:05 nvidia6
crw-rw-rw- 1 root root 195, 7 Nov 25 00:05 nvidia7
crw-rw-rw- 1 root root 195, 255 Nov 27 08:28 nvidiactl
Reply With Quote
  #4  
Old 26th December 2004, 10:02 AM
makuz Offline
Registered User
 
Join Date: Dec 2004
Posts: 73
it seems that i managed to solve this at last.
Code:
# MAKEDEV -d /etc/udev/devices/ sound
creates lots of devices in /etc/udev/devices like
Code:
crw-------  1 root root  14,   4 Dec 25 22:49 audio
crw-------  1 root root  14,   7 Dec 25 22:49 audioctl
crw-------  1 root root  14,   3 Dec 25 22:49 dsp
crw-------  1 root root  35,   0 Dec 25 22:49 midi0
crw-------  1 root root  35,   1 Dec 25 22:49 midi1
crw-------  1 root root  14,   0 Dec  6 16:06 mixer
crw-------  1 root root  14,  16 Dec  6 16:06 mixer1
crw-------  1 root root  35,  64 Dec 25 22:49 rmidi0
crw-------  1 root root  14,   1 Dec 25 22:49 sequencer
crw-------  1 root root  35, 128 Dec 25 22:49 smpte0
drwxr-xr-x  2 root root     4096 Dec 25 22:49 snd
crw-------  1 root root  14,   6 Dec 25 22:49 sndstat
crw-------  1 root root 110,   0 Dec 25 22:49 srnd0
and a bunch of others.
when alsa starts up it manages to run alsactl and restores the mixer settings.

Last edited by makuz; 26th December 2004 at 10:08 AM.
Reply With Quote
  #5  
Old 26th December 2004, 02:54 PM
Woad_Warrior Offline
Registered User
 
Join Date: Dec 2004
Location: Harmony, PA
Posts: 457
Thanks. worked great. hmmmmmm......... wonder if I can fix my joystick problem the same way..........
Reply With Quote
  #6  
Old 4th March 2005, 05:47 AM
sleeping Offline
Registered User
 
Join Date: Dec 2004
Location: Montréal, Québec, Canada
Age: 36
Posts: 16
I'm experiencing the same problem. After a clean installation of FC3, my /etc/modprobe.conf file looks like this :
Quote:
alias eth0 ne2k-pci
alias scsi_hostadapter sata_promise
alias snd-card-0 snd-emu10k1
options snd-card-0 index=0
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && /sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-emu10k1 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && /sbin/alsactl restore >/dev/null 2>&1 || :
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
alias eth1 sk98lin
Even though /usr/sbin/alsactl gets called in the modprobe, the alsamixer settings don't get restored at launch. I still need to call /usr/sbin/alsactl restore manually at every boot.

I tried the MAKEDEV thing, and it did create a bunch of devices in the /etc/udev/devices folder :

Quote:
drwxr-xr-x 3 root root 4096 Mar 1 22:35 .
drwxr-xr-x 6 root root 4096 Dec 27 12:38 ..
crw------- 1 root root 116, 0 Mar 1 22:35 aloadC0
crw------- 1 root root 116, 32 Mar 1 22:35 aloadC1
crw------- 1 root root 116, 64 Mar 1 22:35 aloadC2
crw------- 1 root root 116, 96 Mar 1 22:35 aloadC3
crw------- 1 root root 116, 1 Mar 1 22:35 aloadSEQ
crw------- 1 root root 14, 4 Mar 1 22:35 audio
lrwxrwxrwx 1 root root 5 Mar 1 22:35 audio0 -> audio
crw------- 1 root root 14, 20 Mar 1 22:35 audio1
crw------- 1 root root 14, 7 Mar 1 22:35 audioctl
crw------- 1 root root 14, 3 Mar 1 22:35 dsp
lrwxrwxrwx 1 root root 3 Mar 1 22:35 dsp0 -> dsp
crw------- 1 root root 14, 19 Mar 1 22:35 dsp1
crw------- 1 root root 55, 0 Mar 1 22:35 dsp56k
crw------- 1 root root 35, 0 Mar 1 22:35 midi0
crw------- 1 root root 14, 2 Mar 1 22:35 midi00
crw------- 1 root root 14, 18 Mar 1 22:35 midi01
crw------- 1 root root 14, 34 Mar 1 22:35 midi02
crw------- 1 root root 14, 50 Mar 1 22:35 midi03
crw------- 1 root root 35, 1 Mar 1 22:35 midi1
crw------- 1 root root 35, 2 Mar 1 22:35 midi2
crw------- 1 root root 35, 3 Mar 1 22:35 midi3
crw------- 1 root root 14, 0 Mar 1 22:35 mixer
lrwxrwxrwx 1 root root 5 Mar 1 22:35 mixer0 -> mixer
crw------- 1 root root 14, 16 Mar 1 22:35 mixer1
crw------- 1 root root 31, 0 Mar 1 22:35 mpu401data
crw------- 1 root root 31, 1 Mar 1 22:35 mpu401stat
crw------- 1 root root 14, 17 Mar 1 22:35 patmgr0
crw------- 1 root root 14, 33 Mar 1 22:35 patmgr1
crw------- 1 root root 35, 64 Mar 1 22:35 rmidi0
crw------- 1 root root 35, 65 Mar 1 22:35 rmidi1
crw------- 1 root root 35, 66 Mar 1 22:35 rmidi2
crw------- 1 root root 35, 67 Mar 1 22:35 rmidi3
crw------- 1 root root 14, 1 Mar 1 22:35 sequencer
crw------- 1 root root 14, 8 Mar 1 22:35 sequencer2
crw------- 1 root root 35, 128 Mar 1 22:35 smpte0
crw------- 1 root root 35, 129 Mar 1 22:35 smpte1
crw------- 1 root root 35, 130 Mar 1 22:35 smpte2
crw------- 1 root root 35, 131 Mar 1 22:35 smpte3
drwxr-xr-x 2 root root 4096 Mar 1 22:35 snd
crw------- 1 root root 14, 6 Mar 1 22:35 sndstat
crw------- 1 root root 110, 0 Mar 1 22:35 srnd0
crw------- 1 root root 110, 1 Mar 1 22:35 srnd1
crw------- 1 root root 110, 2 Mar 1 22:35 srnd2
crw------- 1 root root 110, 3 Mar 1 22:35 srnd3
crw------- 1 root root 110, 4 Mar 1 22:35 srnd4
crw------- 1 root root 110, 5 Mar 1 22:35 srnd5
crw------- 1 root root 110, 6 Mar 1 22:35 srnd6
crw------- 1 root root 110, 7 Mar 1 22:35 srnd7
but to no avail. I still need to call /usr/sbin/alsactl restore manually everytime I boot. What's the next thing I can try to fix this?
Reply With Quote
  #7  
Old 12th April 2005, 12:57 PM
makuz Offline
Registered User
 
Join Date: Dec 2004
Posts: 73
if you upgraded the kernel it can cause problems to alsa, try to read this: http://www.ces.clemson.edu/linux/alsa.shtml

you can also try checking /etc/asound.state after you run alsactl when restoring the settings manually and after reboot to see if anything has changed.

the other thing i find strange is your modprobe.conf. do you have two sound cards? you have lines with install and remove snd-emu10k1, but snd-intel8x0 has only install, try inserting the remove one as well or remove the install. i must admit that i'm just guessing here.

this is my remove line from modprobe.conf:
Code:
remove snd-intel8x0 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0
hope it helps.

Last edited by makuz; 12th April 2005 at 07:52 PM.
Reply With Quote
Reply

Tags
alsamixer, restored, settings

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC9 + Gnome: windows piled up in restored session DrLex Using Fedora 1 11th July 2008 07:23 PM
Restored FC5 system won't boot (Acronis True Image) sliptrap EOL (End Of Life) Versions 4 20th August 2007 03:51 AM
alsamixer default settings pmreid Using Fedora 2 22nd February 2006 12:32 AM
Alsamixer settings: Can't save them! GrahamB Hardware & Laptops 0 21st March 2005 01:41 PM


Current GMT-time: 22:53 (Sunday, 26-03-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat