Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-25-2006, 03:24 PM   #1
Registered: Oct 2005
Distribution: Ubuntu - Edgy Eft
Posts: 173

Rep: Reputation: 30
forcing a module to unload

GOt hibernation with SWSUP2 working flawlesly on my desktop.
Since am using a SND-CS46XX for alsa which doesn't properly support suspending, I had set the hibernate.conf to reload alsa when restoring from hibernation
/etc/init.d/alsa force-reload
which is kinda medssy
Now onto my questions:
when I do modprobe -r snd-cs46xx I always get the following error:
FATAL: Module snd_cs46xx is in use.
Is there a way to force the module to unload?
ps. I also tried
rmmod -f snd-cs46xx
but then the terminal just hangs.

Last edited by Ashrack; 01-25-2006 at 03:31 PM.
Old 01-25-2006, 06:59 PM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You can only remove a module when the use count is zero. If you do an lsmod, you'll see the use count and a chain of dependent modules that have to be removed. Likely, even after you remove them, the count will be non-zero. You then need to kill all processes that use sound (like the mixer applet / volume control). Once the usage count is zero, you can "modprobe -r" or "rmmod" the module.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
howto unload rivafb module? pingvina Linux - Software 3 01-19-2006 12:02 PM
Unload a module without rebooting? Phaethar Linux - Software 4 04-27-2005 12:42 PM
unload ub-module at boot? Urkburk Slackware 10 03-25-2005 05:35 AM
What module would I unload to disable pcmcia? elempoimen Linux - Laptop and Netbook 10 12-22-2004 09:51 AM
Unload wireless module (orinoco_cs)? coujeaux Linux - Wireless Networking 1 10-15-2003 11:48 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration