Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 275421

Summary: System stalls when unloading ALSA modules
Product: Gentoo Linux Reporter: M Cordingley <goldenmouse>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description M Cordingley 2009-06-25 18:48:04 UTC
When I shut down my system, the normal shutdown process hangs on unloaded the ALSA modules.  There appears to be no failure or errors, per se, only an indefinite wait for the modules to unload

Reproducible: Always

Steps to Reproduce:
1.Shutdown, either from Gnome or the console
2.
3.

Actual Results:  
System begins shutdown, then freezes.

Expected Results:  
System shuts down fully and powers off

I asked around for help, which led to some digging into the alsasound init script and a manual unloading of the modules.  It was found that manually unloading the modules in the order of dependencies listed by lsmod enabled the system to shutdown properly.  Digging into the init script revealed that "alsasound stop" does not unload the modules in any particular order, leading to the system trying to unload a given module that is still in use elsewhere.
Comment 1 Daniel Pielmeier gentoo-dev 2009-06-25 19:20:28 UTC
Setting UNLOAD_ON_STOP to "no" in /etc/conf.d/alsasound should do the trick.

*** This bug has been marked as a duplicate of bug 253535 ***