You are not logged in.
Pages: 1
Topic closed
Is it possible to unload soundcore without rebooting? I have tried using modprobe -f -r soundcore but it tells me soundcore is in use. The only way I've been able to do it is to add it to my modules array with a bang (!soundcore) and reboot. There must be an easier way...
# modprobe -r -f soundcore
FATAL: Module soundcore is in use.
Last edited by graysky (2010-02-11 00:09:09)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I don't seem to have this problem. I'm able to load/unload without forcing (on ZEN kernel). If you don't want it then why don't you keep the !soundcore in your rc.conf? You can also compile soundcore and pcspkr out of the kernel to completely remove it- this is what I did for one of my kernels and it works fine for OSS.
Offline
The module you need to unload is the driver for your sound card - snd_<whatever>, in other words. That driver depends on snd, which depends on soundcore, so as long as they are loaded, soundcore will always be in use.
Offline
I could unload soundcore but only before unloading everything snd related first
Offline
The module you need to unload is the driver for your sound card - snd_<whatever>, in other words. That driver depends on snd, which depends on soundcore, so as long as they are loaded, soundcore will always be in use.
Thanks for the info. lsmod shows quite a few of these loaded, but I can't unload them just like soundcore.
# lsmod | grep snd
snd_seq_dummy 1439 0
snd_seq_oss 29023 0
snd_seq_midi_event 5316 1 snd_seq_oss
snd_seq 50558 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 5181 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 39011 0
snd_mixer_oss 17299 1 snd_pcm_oss
snd_hda_codec_realtek 250180 1
snd_hda_intel 21682 1
snd_hda_codec 63659 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 6340 1 snd_hda_codec
snd_pcm 70318 3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer 18799 2 snd_seq,snd_pcm
snd 57408 13 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore 6095 1 snd
snd_page_alloc 7033 2 snd_hda_intel,snd_pcm
# modprobe -r snd
FATAL: Module snd is in use.
# modprobe -r snd_hda_intel
FATAL: Module snd_hda_intel is in use.
There must be a way to do this without a reboot.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
You may want to try "modprobe -r $(lsmod | grep 'snd' | grep -v codec | awk '{print $1}') soundcore". A dry run here shows that it should work.
Offline
I've not had any luck with any combination of `modprobe -r`.
However, I've found this to be very effective:
lsmod | grep snd | awk '{print $1}' | xargs sudo rmmod -f
Afterwards, I loaded my sound again:
sudo modprobe snd_hda_intel
And my playback is back.
Offline
You were told previously (https://bbs.archlinux.org/viewtopic.php … 1#p1883361) not to necrobump, and here you are with a thread that's been dead for over 11 YEARS.
Offline
Using this opportunity to close this ancient thread.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed