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

Bug 213438

Summary: sys-power/hibernate-script-1.97-r4 fails to unload ipw3945 in hibernate
Product: Gentoo Linux Reporter: Kazankov Alexander <johnrdoe63>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major CC: m.debruijne
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kazankov Alexander 2008-03-14 20:15:11 UTC
I have installed:
sys-power/hibernate-scrip-1.97-r4
sys-apps/module-init-tools-3.4
net-wireless/ipw3945-1.2.2-r1
net-wireless/ipw3945-ucode-1.14.2
net-wireless/ipw3945d-1.7.22-r

and I have the wireless network connection. When I go back from suspend-to-disk I do not have connection to a network and in top process ipw3945 from 100 % loading of the processor.

But if I execute modprobe -r ipw3945 and modprobe ipw3945, аll starts to work.

Reproducible: Always

Steps to Reproduce:




In the file /usr/share/hibernate/scriptlets.d into function xrmmod:
xrmmod() {
    if [ -n "$NON_RECURSIVE_MODPROBE" ] ; then
        $NON_RECURSIVE_MODPROBE "$@" > /dev/null 2>&1
        return $?
    fi

    if modprobe -r -N > /dev/null 2>&1 ; then
        NON_RECURSIVE_MODPROBE="modprobe -r -N"
    else
        NON_RECURSIVE_MODPROBE="rmmod"
    fi
    vecho 3 "Removing modules with $NON_RECURSIVE_MODPROBE."
    $NON_RECURSIVE_MODPROBE "$@" > /dev/null 2>&1
}

replace:

if modprobe -r -N > /dev/null 2>&1 ; then
        NON_RECURSIVE_MODPROBE="modprobe -r -N"

to


if modprobe -r > /dev/null 2>&1 ; then
        NON_RECURSIVE_MODPROBE="modprobe -r"

all starts to work too.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-15 08:10:00 UTC

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