Need to run system-config-sound after every boot too make sound work in FC2
Hi All,
Having just upgraded from FC1 to FC2 and worked through the many niggles it causes, I'm down to just one. To make my soundcard work, I have to run the system-config-soundcard utility at the beginning of every session. Can anyone suggest how to make the configuration permanent? I've got an integrated soundcard on an NVidia nForce2 DDR socket A mainboard (NF24-ALH). The alsa drivers ARE installed, but I haven't done any manual configuration since the upgrade. Appreciate any pointers, Thanks, Jon |
add it to the end of /etc/rc.d/rc.local
if that file exists. that might do it. |
Here's how I did it
Here are the relevant lines from my /etc/modprobe.conf:
Code:
# ALSA portion This allows the card to start up automatically and saves the settings (volume etc) during reboot. Seems to work ok for me. |
I don't use FC2, I use Slackware, but in slackware you can change the sound settings with alsamixer and save them (as root) with "alsactl store". If FC2 has alsactl you might want to try this.
|
Thanks to all for your replies,
MobyTurbo : Tried your idea, no change Syd: Had a look at my version of the file: # Note: for use under 2.4, changes must also be made to modules.conf! alias usb-controller ohci-hcd alias usb-controller1 ehci-hcd alias eth0 nvnet alias usb-interface usb-ohci alias snd-card-0 snd-intel8x0 alias char-major-195-* nvidia install sound-slot-0 /sbin/modprobe --first-time --ignore-install sound-slot-0 && { /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :; } remove sound-slot-0 { /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :; } ; /sbin/modprobe -r --first-time --ignore-remove sound-slot-0 alias /dev/ttySHCF[0-9]* /dev/ttySHCF alias /dev/modem /dev/ttySHCF alias char-major-240 /dev/ttySHCF alias char-major-240-* /dev/ttySHCF options hcfpciserial serialmajor=240 alias /dev/hcfpcidiag hcfpciosspec alias /dev/hcfpcidiag* /dev/hcfpcidiag alias char-major-242 /dev/hcfpcidiag alias char-major-242-* /dev/hcfpcidiag options hcfpciosspec diagmajor=242 install /dev/ttySHCF /sbin/modprobe hcfpcihw My sound driver is snd-intel8x0. So I should add your alias-soundservice lines? Whansard: I think your option will just bring up the configuration dialog at every boot won't it? Thanks again, Jon |
i didn't know it was a dialog config. sorry. i'll have some new distros on my computer soon, and i'll get caught up on the changes over the past few years.
|
I had a similar problem once. I don't think it's the drivers. What you need to do is to make an empty file called asound.state in /etc and then adjust your settings as you wish. Then run alsactl and reboot. worked for me. The problem is that for some strange reason asound.state doesn't exist so it has nowhere to store the settings
|
Hi Fredde,
Thanks for the reply- but no, the file does exist. Though maybe I'll try deleting it and replacing it with a blank- perhaps it's remembering some wrong settings or something....... J |
Quote:
I think it will work, though. As long as you replace sb-awe with your driver. |
Quote:
|
The preferred and proper way is the /etc/modprobe.conf way (assuming you are running FC2's 2.6 kernel).
alias snd-card-0 snd-ymfpci install snd-ymfpci /sbin/modprobe --ignore-install snd-ymfpci && /usr/sbin/alsactl restore >/dev/null 2>&1 || : remove snd-ymfpci { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-ymfpci This is for my laptop sound card (Yamaha). You'd do alias snd-card-0 snd-intel8x0 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 The /etc/modprobe.conf isn't some hack - it's *the* way of doing this to tell you kernel what module to load for your soundcard. After editing that file run modprobe -a And that should load the sound card for your session (the command isn't needed on subsequent reboots as the rc scripts do this for you). Kev |
Hi everyone,
Sorry for being slow getting back; writing my thesis! Have tried all the suggestions, and there's no change in the situation- I have some more head- scratching to do! Thanks anyway, jon |
All times are GMT -5. The time now is 05:11 PM. |