Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213438 - sys-power/hibernate-script-1.97-r4 fails to unload ipw3945 in hibernate
Summary: sys-power/hibernate-script-1.97-r4 fails to unload ipw3945 in hibernate
Status: RESOLVED DUPLICATE of bug 174835
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-14 20:15 UTC by Kazankov Alexander
Modified: 2008-03-15 08:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***