Bug 15226 - network modules need to be unloaded during suspend
Summary: network modules need to be unloaded during suspend
Status: RESOLVED WONTFIX
Alias: None
Product: pm-utils
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Richard Hughes
QA Contact:
URL: https://bugs.launchpad.net/+bugs/162654
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-27 08:25 UTC by Martin Pitt
Modified: 2008-04-30 19:46 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
ubuntu patch (738 bytes, patch)
2008-03-27 08:25 UTC, Martin Pitt
Details | Splinter Review
ubuntu patch (799 bytes, patch)
2008-03-27 08:39 UTC, Martin Pitt
Details | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Pitt 2008-03-27 08:25:59 UTC
Created attachment 15505 [details] [review]
ubuntu patch

We got several reports that during suspend, network modules like e1000 or ipw3945 need to be unloaded/reloaded during suspend. Otherwise you get effects like network-manager not re-detecting Wifis (iwl3945 or ath_hal) or laptop not going to sleep at all (e1000), see the referenced Ubuntu bug report and its duplicates.

The attached patch (by Matthew Garrett) solves this in a generic way.
Comment 1 Richard Hughes 2008-03-27 08:33:12 UTC
I don't think this is the way to do it - we should just fix the network drivers if they are broken. Most of them seem to suspend and resume just fine on fedora rawhide.

Ohh, and ipw3945 is not going to work well for suspend resume - I'm suprised it works at all. iwl3945 suspends and resumes very well.

Richard.
Comment 2 Martin Pitt 2008-03-27 08:39:18 UTC
Created attachment 15506 [details] [review]
ubuntu patch

Ergh, this time without syntax errors, sorry.
Comment 3 Martin Pitt 2008-03-27 08:40:36 UTC
Hm, I am using iwl3945 (Dell Latitude D430), and until now I kept an rmmod/modprobe iwl3945 in /etc/pm/sleep.d. Otherwise that thing could never detect any ESSIDs again and it never automatically reconnects to the wifi.
Comment 4 Martin Pitt 2008-03-27 08:42:23 UTC
I agree that "just fix the network drivers" is a great long-term goal, of course, but it does not help a lot with pending releases (Fedora will release in a few weeks as well, right?)

If that were the preferred and only way, the entire quirks set in hal-info would be "not the way to do it". :-)

What would you recommend as a better workaround instead?

Thank you for your input!

Martin
Comment 5 Victor Lowther 2008-03-30 09:49:45 UTC
The best way to handle this for Ubuntu is to make it its own hook instead of modifying the 50modules hook.

For what it is worth, I have been running Hardy since early December and have never encountered the iwl3945 bug this report mentions -- on my box, at least, iwl3945 works fine across a suspend/resume without needing to be removed/readded.
Comment 6 Victor Lowther 2008-04-30 19:46:50 UTC
Proper workaround for kernels with drivers that need special care over suspend/resume is for the kernel package to provide a suspend hook that does whatever is needed until the driver is updated to work correctly across suspend/hibernate with as little userspace help as possible.

For this patch in particular, writing a tiny little hook that is part of the appropriate kernel module package would be the way to go, and I am willing to help write that hook.  Patching pm-utils directly to cover this case is not something I am willing to do.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct.