How do I reload sound drivers automatically?
When I first installed my FC6, my sound works perfectly, without any problems whatsoever. Then I shut down my computer. The next day, KDE gave me an error that says something like: Can't find sound card, device /dev/dsp does not exist, starting audio server using null output device. So I try to use the system-config-soundcard prog... My sound card was detected though:
Vendor: ALi Corporation Model: M5455 PCI Ac-Link Controller Audio Device Module: snd-intel8x0 but the PCM device drop-down was empty, and I coudln't hear the test sound, so I tried to reload the driver, then I tested it. It works! But then I have to do this manually every time I boot-up, how can I make Linux do this automatically? |
not sure how FC6 is layed out, but in slackware there is a file (which you make executable: chmod +x <fileName>) '/etc/rc.d/rc.local' that is run each time when the system done booting. in here you add commands (one per line) that you want to be executed.
you will probably have to specify the full path to the command, though, ie: /sbin/modprobe snd-intel8x0 look for this file. if the file isnt there, but at least the folder is, then create the file and it should work. im sure FC6 has a different way of managing startup scripts, though... search around. edit: check out this link:http://www.linux.com/article.pl?sid=06/01/03/1728227 Quote:
Code:
#!/bin/bash |
Quote:
[<c0xxxxxx>] something something... the x's are changing numbers and the text was constantly changing too... I had to run the rescue disk and take the line out of rc.local and it went back to normal... did I do something wrong? |
Quote:
[<c0xxxxxx>] something something... the x's are changing numbers and the text was constantly changing too... I had to run the rescue disk and take the line out of rc.local and it went back to normal... did I do something wrong? |
There is a run level editor in FC6 just for this type of thing. It's in the main menu somewhere, near the top. Sound should be in there. Just enable it. It should stay. You might also try switching sound to ALSA. The other things is, sometimes the sound is not on DSP, and it will work even if the device isn't there.
|
Quote:
Quote:
Thanks for the help guys :) |
Finally made it work!!
I used nadroj's advice and created a script and linked it to /etc/rc.d/rc.local, since I couldn't find anything in systemconf to do it automatically. What I did wrong the first time is that before I reload the drivers in system-config-soundcard is that the drivers were already loaded. so what I did first was to find out which drivers exactly are reloaded:
Code:
[nico@localhost ~]$ /sbin/lsmod Code:
#!/bin/bash Finally, I don't have to do any of that crappy manual reloading... Hope this helps! Thanks again! :D |
All times are GMT -5. The time now is 05:41 AM. |