LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 01-25-2006, 04:24 PM   #1
Ashrack
Member
 
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
Code:
/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:
Code:
FATAL: Module snd_cs46xx is in use.
Is there a way to force the module to unload?
ps. I also tried
Code:
rmmod -f snd-cs46xx
but then the terminal just hangs.

Last edited by Ashrack; 01-25-2006 at 04:31 PM.
 
Old 01-25-2006, 07:59 PM   #2
macemoneta
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: 328Reputation: 328Reputation: 328Reputation: 328
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.
 
  


Reply


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 01:02 PM
Unload a module without rebooting? Phaethar Linux - Software 4 04-27-2005 01:42 PM
unload ub-module at boot? Urkburk Slackware 10 03-25-2005 06:35 AM
What module would I unload to disable pcmcia? elempoimen Linux - Laptop and Netbook 10 12-22-2004 10:51 AM
Unload wireless module (orinoco_cs)? coujeaux Linux - Wireless Networking 1 10-15-2003 12:48 PM


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

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