Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321383 - IWL5300 - iwlagn dies on suspend/resume
Summary: IWL5300 - iwlagn dies on suspend/resume
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 01:29 UTC by warren coleman
Modified: 2010-11-03 21:59 UTC (History)
2 users (show)

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


Attachments
dmesg output (dmesg.log,47.53 KB, text/plain)
2010-05-25 09:50 UTC, warren coleman
Details
Output of emerge --info (emerge.info,3.55 KB, text/plain)
2010-05-25 09:54 UTC, warren coleman
Details
dmidecode output (dmidecode.out,15.94 KB, text/plain)
2010-05-25 10:00 UTC, warren coleman
Details
DMIDECODE showing latest bios (dmidecode.out,15.94 KB, text/plain)
2010-05-25 22:41 UTC, warren coleman
Details
dmesg with SUSPEND_MODULES=iwlagn removed (dmesg.out,47.66 KB, text/plain)
2010-05-26 09:57 UTC, warren coleman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description warren coleman 2010-05-25 01:29:10 UTC
I cannot get the IWL5300 wireless card to suspend/resume properly either to RAM or to disk.  I have tried a variety of kernels:  vanilla-sources-2.6.32 and 2.6.34 and use the latest iwl5000-ucode.  

I can get the driver to work if I unload and reload the module after resuming.  I have tried adding a SUSPEND_MODULES=iwlagn to /etc/pm/sleep.d/o1iwlagn

Reproducible: Always

Steps to Reproduce:
1.Suspend either to disk or RAM
2.resume
3.wireless card is hung and you have to reload the module
Comment 1 warren coleman 2010-05-25 01:30:51 UTC
Problem occurs on Lenovo T400 ThinkPad 
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-05-25 08:10:14 UTC
Please provide us a full dmesg output when you resume your computer

Plus I would like to know which script/program you use to suspend your computer

Thank you
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2010-05-25 09:47:32 UTC
emerge --info is missing, as well as dmesg output. I can only support you on 2.6.34, not anything older. I also need your dmidecode output for the ThinkPad. Until such information is provided, this bug report is not useful to me. Thanks.
Comment 4 warren coleman 2010-05-25 09:50:47 UTC
Created attachment 232859 [details]
dmesg output
Comment 5 warren coleman 2010-05-25 09:54:08 UTC
Created attachment 232861 [details]
Output of emerge --info

Emerge --info output in file emerge.info
Comment 6 warren coleman 2010-05-25 10:00:06 UTC
Created attachment 232867 [details]
dmidecode output
Comment 7 Tony Vroon (RETIRED) gentoo-dev 2010-05-25 10:28:08 UTC
You are not on the newest available BIOS, which is 7UUJ42US dated 2010/04/20 (you are on 7UET81WW dated 2009/11/26). I have linked the relevant update in the URL field of this bug. Should you want to retrace my steps, your machine is: ThinkPad T400 2764-CTO

You have an IEEE1394-equipped model and by my calculations, you are 3 BIOS versions behind. This is not a supportable situation.
Comment 8 warren coleman 2010-05-25 22:41:30 UTC
Created attachment 232925 [details]
DMIDECODE showing latest bios

Bios now latest version all symptoms persist
Comment 9 Tony Vroon (RETIRED) gentoo-dev 2010-05-26 08:23:00 UTC
(In reply to comment #8)
> Created an attachment (id=232925) [details]
> DMIDECODE showing latest bios

Confirmed, thank you.
Comment 10 Tony Vroon (RETIRED) gentoo-dev 2010-05-26 08:24:07 UTC
(In reply to comment #4)
> Created an attachment (id=232859) [details]
> dmesg output

The odd thing here is that no "iwlagn" device is touched. So it is neither turned off nor back on. Perhaps you already unloaded the driver here? To see any failure to suspend or resume, it is best if you leave the driver loaded for your dmesg trace.

Comment 11 warren coleman 2010-05-26 09:57:49 UTC
Created attachment 232971 [details]
dmesg with SUSPEND_MODULES=iwlagn removed

I have tried it with the iwlagn module suspended in /etc/pm/sleep.d Now see dmesg with the module left in place.  The behavior is slightly different in that the iwlagn LED now blinks but still no Internet via a browser without a reload. 
Strangely you CAN ping an ip address on the Internet via console and also ping using a domainname via a console but no Internet access via a browser until reload of module
Comment 12 Tony Vroon (RETIRED) gentoo-dev 2010-05-26 10:06:16 UTC
(In reply to comment #11)
> Strangely you CAN ping an ip address on the Internet via console and also ping
> using a domainname via a console but no Internet access via a browser until
> reload of module

That seems like a userland problem, particularly it seems like NetworkManager gets confused about state. Do your browsers & mail clients fall into "off-line mode" and refuse to load any content by chance?
This would fit the "console works fine, GUI problematic" behaviour that you describe. 

Comment 13 warren coleman 2010-05-26 10:12:45 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > Strangely you CAN ping an ip address on the Internet via console and also ping
> > using a domainname via a console but no Internet access via a browser until
> > reload of module
> 
> That seems like a userland problem, particularly it seems like NetworkManager
> gets confused about state. Do your browsers & mail clients fall into "off-line
> mode" and refuse to load any content by chance?
> This would fit the "console works fine, GUI problematic" behaviour that you
> describe. 
> 

Yes, I would agree a GUI problem if the basic network function runs in console mode properly. How to diagnose problem with KDE and iwlagn?
Comment 14 Tony Vroon (RETIRED) gentoo-dev 2010-05-26 10:22:13 UTC
(In reply to comment #13)
> Yes, I would agree a GUI problem if the basic network function runs in console
> mode properly. How to diagnose problem with KDE and iwlagn?

I believe there is a knetworkmanager applet that sits in the tray, or can be accessed through the menus. It would be worth knowing what that reports.

Failing that, you could try nm-tool in a terminal before & after suspending and diff the two outputs.

Comment 15 warren coleman 2010-05-27 02:00:04 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > Yes, I would agree a GUI problem if the basic network function runs in console
> > mode properly. How to diagnose problem with KDE and iwlagn?
> 
> I believe there is a knetworkmanager applet that sits in the tray, or can be
> accessed through the menus. It would be worth knowing what that reports.
> 
> Failing that, you could try nm-tool in a terminal before & after suspending and
> diff the two outputs.
> 

(In reply to comment #14)
> (In reply to comment #13)
> > Yes, I would agree a GUI problem if the basic network function runs in console
> > mode properly. How to diagnose problem with KDE and iwlagn?
> 
> I believe there is a knetworkmanager applet that sits in the tray, or can be
> accessed through the menus. It would be worth knowing what that reports.
> 
> Failing that, you could try nm-tool in a terminal before & after suspending and
> diff the two outputs.
> 

OK so I thought it was a GUI-land problem EXCEPT ssh fails in console mode after I suspend/resume. I reload the module and voila ssh works again in console.  I could do a hack to the suspend/resume script I think to reload the module after resume but that is not the right way.
Comment 16 warren coleman 2010-05-27 02:13:31 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > (In reply to comment #13)
> > > Yes, I would agree a GUI problem if the basic network function runs in console
> > > mode properly. How to diagnose problem with KDE and iwlagn?
> > 
> > I believe there is a knetworkmanager applet that sits in the tray, or can be
> > accessed through the menus. It would be worth knowing what that reports.
> > 
> > Failing that, you could try nm-tool in a terminal before & after suspending and
> > diff the two outputs.
> > 
> 
> (In reply to comment #14)
> > (In reply to comment #13)
> > > Yes, I would agree a GUI problem if the basic network function runs in console
> > > mode properly. How to diagnose problem with KDE and iwlagn?
> > 
> > I believe there is a knetworkmanager applet that sits in the tray, or can be
> > accessed through the menus. It would be worth knowing what that reports.
> > 
> > Failing that, you could try nm-tool in a terminal before & after suspending and
> > diff the two outputs.
> > 
> 
> OK so I thought it was a GUI-land problem EXCEPT ssh fails in console mode
> after I suspend/resume. I reload the module and voila ssh works again in
> console.  I could do a hack to the suspend/resume script I think to reload the
> module after resume but that is not the right way.
> 

One more tidbit, ntpdate -b command DOES work after suspend/resume even though ssh does not, so apparently some low level network functions do work while more complex functions like ssh do not.
Comment 17 Mike Pagano gentoo-dev 2010-05-27 19:39:04 UTC
related?
https://bugzilla.kernel.org/show_bug.cgi?id=15164
Comment 18 George Kadianakis (RETIRED) gentoo-dev 2010-11-03 21:59:01 UTC
Just putting this in NEEDINFO state for managerial reasons, poke us when you
have news on this.