LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Need to run system-config-sound after every boot too make sound work in FC2 (https://www.linuxquestions.org/questions/linux-hardware-18/need-to-run-system-config-sound-after-every-boot-too-make-sound-work-in-fc2-212138/)

jrbiochem 08-01-2004 10:30 AM

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

whansard 08-01-2004 11:03 AM

add it to the end of /etc/rc.d/rc.local
if that file exists. that might do it.

syd 08-01-2004 12:52 PM

Here's how I did it
 
Here are the relevant lines from my /etc/modprobe.conf:

Code:

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-sbawe
# module options can go here
                                                                                                           
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
                                                                                                           
# card #1
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
                                                                                                           
install snd-sbawe /sbin/modprobe --ignore-install snd-sbawe && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-sbawe { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-sbawe

You would replace all instances of snd-sbawe (i have an old isa sb awe) with whatever the driver name is for your soundcard.

This allows the card to start up automatically and saves the settings (volume etc) during reboot. Seems to work ok for me.

MobyTurbo 08-01-2004 01:32 PM

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.

jrbiochem 08-01-2004 02:42 PM

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

whansard 08-01-2004 02:56 PM

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.

Fredde84 08-01-2004 07:18 PM

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

jrbiochem 08-01-2004 08:16 PM

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

syd 08-01-2004 09:35 PM

Quote:

Originally posted by jrbiochem
Thanks to all for your replies,

MobyTurbo : Tried your idea, no change

Syd: Had a look at my version of the file:

Jon

I think you should try adding the lines, yes. I think if you run into any trouble you could set the system to boot into runlevel 3 and do interactive bootup so that you can individually load modprobe.conf lines.

I think it will work, though. As long as you replace sb-awe with your driver.

jsutton 08-01-2004 10:58 PM

Quote:

Originally posted by whansard
add it to the end of /etc/rc.d/rc.local
if that file exists. that might do it.

whansard has a good idea. You need to use a different command though. Infact, I had the same problem when I first did the FC1->FC2 upgrade. At the time, I was using a CT5880 (aka, one of the later versions of the Sound Blaster 16 PCI). It used the snd-ens1371 driver. So, all I did was add 'modprobe snd-ens1371' to my /etc/rc.d/rc.local. Your card is obviously going to use a different driver, but the same idea may work; try adding 'modprobe [kernel sound module]' to your rc.local file and see if that takes care of it (making sure to replace '[kernel sound module]' with the kernel module appropriate for your sound card).

linuxmankev 08-02-2004 11:25 AM

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

jrbiochem 08-04-2004 07:08 AM

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.