LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Can you restart sound in Fedora Core 6? (https://www.linuxquestions.org/questions/fedora-35/can-you-restart-sound-in-fedora-core-6-a-496474/)

natewlew 10-28-2006 07:16 PM

Can you restart sound in Fedora Core 6?
 
Is there a way to reload the sound system in FC6? I have always had trouble with my sound card. It doesn't matter what Distro I use. Sometimes I have to reload or restart alsa a couple of times before my sound will work. I can't find an alsasound in /etc/init.d. Is there a script I could put in there or is there another way to restart the sound system?

macemoneta 10-28-2006 11:26 PM

To reset a hardware device manually, you need to remove and re-install the driver. This can be done dynamically on the modular Fedora kernel. Take a look at /etc/modprobe.conf for the sound driver. There will usually be an entry like:

alias snd-card-0 snd-intel8x0

To reset the driver then:

modprobe -r snd-intel8x0
modprobe snd-intel8x0

natewlew 10-29-2006 01:01 AM

Thanks for getting me started but I did that and when I try to play a song with amarok it says "xine was unable to initialize any audio drivers.".

Here is my /etc/modprobe.conf
Quote:

alias eth0 ne2k-pci
alias snd-card-0 snd-ens1371
options snd-card-0 index=0
options snd-ens1371 index=0
remove snd-ens1371 { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-ens1371
Here is what I did:
Quote:

[root@localhost init.d]# /sbin/modprobe -r snd-ens1371
[root@localhost init.d]# /sbin/modprobe snd-ens1371
Here is what I get from dmesg:
Quote:

cannot find the slot for index 0 (range 0-0)
ENS1371: probe of 0000:00:0d.0 failed with error -12
gameport: kgameportd exiting
cannot find the slot for index 0 (range 0-0)
ENS1371: probe of 0000:00:0d.0 failed with error -12
When I start my computer I always know when my sound doesn't work when my gnome sound has a red x and says "microphone muted". When I right click and select preferences I only have an option for my usb mic.
Thanks for your help!

macemoneta 10-29-2006 09:15 AM

It's seems like flaky/non-spec compatible hardware. You can try unloading and reloading until it works, Or just pick up a new sound card for $10 and disable your onboard sound in the BIOS.

natewlew 10-29-2006 12:11 PM

Its a sound blaster pci. I don't have any onboard sound. I understand what your saying but I have always got it to work before. On FC5 I used a ccrma kernel and it install an alsasound in the /etc/init.d. I don't think they make one for FC6.

pr0t0s 10-24-2009 10:48 PM

modprobe trick worked! thanks. accept a forloop in return:)
 
Quote:

Originally Posted by macemoneta (Post 2481398)
To reset a hardware device manually, you need to remove and re-install the driver. This can be done dynamically on the modular Fedora kernel. Take a look at /etc/modprobe.conf for the sound driver. There will usually be an entry like:

alias snd-card-0 snd-intel8x0

To reset the driver then:

modprobe -r snd-intel8x0
modprobe snd-intel8x0

Wonderful Idea! this worked for me. I had multiple aliases for sound on my Fedora Core 10 system. Some for alsa, some oss. So I just wrote a small for loop to reset all.

for i in `seq 13`; do modprobe -r sound-service-*-${i}; done
for i in `seq 13`; do modprobe sound-service-*-${i}; done

By the way, my origial issue was the my sound would go off after 1-2 days of system staying up (who shuts down a linux system:p). A reboot would get the sound back, it was really irritating to not get sound every now and then.


All times are GMT -5. The time now is 01:27 PM.