[2.6.27] zd1211rw prevent the computer to suspend

Bug #274734 reported by Id2ndR
This bug report is a duplicate of:  Bug #350941: [zd1211rw] suspend/resume failure. Edit Remove
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I'm running Intrepid alpha6 64bits (2.6.27-4).

When I use my wifi dongle (module zd1211rw) and I suspend the computer, the disk spin down but the screen and the computer don't go to sleep. If I do the same without the dongle connected, it goes and then I can resume normally.

Revision history for this message
Id2ndR (id2ndr) wrote :

I noticed that removing zd1211rw module prior to suspend allows the computer to suspend. Then I can reload the module to get the network connexion.

I found a workaround based on this : http://wiki.archlinux.org/index.php/Pm-utils#Advanced_Configuration
$ echo 'SUSPEND_MODULES="zd1211rw"' | sudo tee /etc/pm/config.d/zd1211rw

It works for me.

Revision history for this message
Id2ndR (id-2ndr) wrote : Re: [Bug 274734] Re: [2.6.27] zd1211rw prevent the computer to suspend

> $ echo 'SUSPEND_MODULES="zd1211rw"' | sudo tee /etc/pm/config.d/zd1211rw
Doesn't work all the time.

I saw [events/0] consume 100% CPU when it doesn't work. nm-applet show
that Network-manager tried to reconnect but without success. When trying
to restart NM backend, it didn't complete. Then I was not able to remove
zd1211rw module. Then I unpluged the wifi dongle and a kernel panic
occured. I was obliged to reset.

Revision history for this message
Id2ndR (id2ndr) wrote :

I found a better workaround which work perfectly. The idea is to stop NetworkManager before removing zd1211rw module, and to restart it after the module is loaded again. Otherwise NM probably tried to disconnected the wireless network whereas the module tried to become inactive.

To use it, just put attached file in /etc/pm/sleep.d/ and give it the execution permission.

Revision history for this message
Id2ndR (id2ndr) wrote :
Revision history for this message
rebegin (hgi) wrote :

hello,

i can confirm this bug on my laptop running xubuntu 8.10 64bit.
and i also can confirm that the attached script in the prevoius comment solves the problem so thanks for the solution :D

have a nice day

Revision history for this message
zippidy_josh (redstone) wrote :

I have a similar problem on my Ubuntu Intrepid with 2.6.27-9-generic and a rt73usb module, and a similar workaround fixes the issue (modifying the script to remove/add rt73usb instead of zd1211rw).
Is anyone planning on committing a fix to Ubuntu, to help all those with this issue that didn't manage to find this bug report?

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi ld2ndR,

Since you are the original bug reporter, care to test the latest pre-release of Jaunty 9.04 (currently Alpha3) - http://cdimage.ubuntu.com/releases/jaunty/ . It contains a 2.6.28 based kernel and it would be good to know if this issue remains. You should be able to test suspend via a LiveCD. Please let us know your results. Thanks.

Changed in linux:
status: New → Incomplete
Revision history for this message
Id2ndR (id2ndr) wrote :

It's still an issue with Jaunty alpha3. After removing the module, I'm able to put the computer in standby and resume. Without removing the module, it fail to suspend.

Please also look at bug #267401 which is the same trouble with rt73usb module. The trouble appears before 2.6.27-4 which prevent the computer from suspending or, when this randomly work, from resuming.
I think bug #267401 is a duplicate of this one.

Changed in linux:
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
Jeffrey Magder (jeff-magder) wrote :

I too was experiencing a hibernation hang running Ubuntu 8.10 - Intrepid Ibex with the 2.6.27-11-generic kernel. I did not have a problem hibernating in 8.04, so I figured there could be a new kernel module conflict. I experimented with removing different kernel modules before hibernating and noticed that hibernate worked after removing the zd1211rw module. I ran the experiment several times to confirm the fix, then did some google searching and came across this bug.

I tried ld2ndR's script, and can confirm that his script works.

So I thought I'd write and help push the bug along!

Cheers! :-)

Revision history for this message
Id2ndR (id2ndr) wrote :

The same bug repported with apport (and files that it's provide) : Bug #333503 (I'm not marking this as duplicate to get the informations of both this and the other bug report).

Revision history for this message
Id2ndR (id2ndr) wrote :

I created bug #350941. In the description you'll find a better workaround and relevant information I got from different sources. I'm marking this bug as duplicate of the other.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.