LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 01-05-2004, 02:52 PM   #1
jdolluc
Member
 
Registered: Jul 2003
Distribution: Debian
Posts: 31

Rep: Reputation: 15
pcmcia card freezes on suspend, and will not resume


I have a laptop that i have been running Debian on for a couple years, and just recently decided that i should actually use it as a laptop. So, I bought a wireless card, an Ambicom wl1100-pc, PCMCIA/cardbus card, which works wonderfully. Next I decided that it might be important to see what battery life I have left while roaming the house/office, so I turned on APM, which up until now I hadn't bothered with. That also works wonderfully. The only problem is when I shut the lid of my laptop it goes into power-save standby. The problem here is that my wireless card gets the suspend command, and suspends, but wont come back up. Every command just gives me a "Device busy or invalid" error. I've tried the following commands:

cardctl resume
ioctl(): Device or resource busy.

cardctl eject
ioctl(): Device or resource busy.

cardctl reset
doesnt do anything

/etc/init.d/pcmcia stop
Stopping PCMCIA: ioctl(): Device or resource busy.

/sbin/ifdown wlan0
Not configured.

Pull the card out, put it back in. Nothing

When this happens I have to reboot my computer. I wouldnt mind just disabling suspend to the card all together, this computer is usually plugged in anyway. Its just very frustrating, any help or suggestions would be much appreciated.


Jon
 
Old 01-06-2004, 08:01 PM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
That seems more like a pcmcia bug then having to do with the card... although since the device name for the ambicom is wlan0 that means 3rd party driver, which means non-kernel standard which means possibly beta and buggy. Do you get the same behavior out of another pcmcia card? Anything to test it really? Also, I don't know Debian's default APM config, but if it was conservative... which makes sense for debian, they might have left out some specific laptop options as well as some apm options that make for better suspend/resume. You mentioned also having this laptop for a couple years... what're the odds it has acpi support in the BIOS? '99 and the first few P3's were the first to have that, so its a longshot I guess, but it typically handles power events better then base apm.

Sorry that was a lot of mostly voodoo suggestions, but it might help

Cheers,

Finegan
 
Old 01-07-2004, 01:54 AM   #3
jdolluc
Member
 
Registered: Jul 2003
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: 15
thanks for the reply.

no apci.

my only other PCMCIA card is a linksys pcm200 ethernet card. when I insert this card, close the lid, open it back up everything comes up fine and dandy.

i will look into the APM configs, and see if there is anything in there that allows me to change things around.
 
Old 01-08-2004, 07:02 AM   #4
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Nah, if the pcm200... what's that, pcnet_cs? tulip_cb? its an old, stable and well coded driver so its 99% probably just the wireless card driver isn't built well and can't handle power events. Which evil bugger is it btw? realtek8180? linux-wlan.net?

Cheers,

Finegan
 
Old 01-08-2004, 06:16 PM   #5
jdolluc
Member
 
Registered: Jul 2003
Distribution: Debian
Posts: 31

Original Poster
Rep: Reputation: 15
the pcm200 is tulip_cb

the wireless is linux-wlan

i have followed your original idea and checked into the APM. I found in the kernel options for APM that "Ignore user suspend" was set at N, so I turned that bugger on, recompiled, rebooted, and now I can close the lid without the card dying, but I no longer have any power savings, oh well. This is kind of a crappy fix, but it works good enough for me.

Thanks for the help finegan.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suspend Fails to Resume dengel Linux - Laptop and Netbook 0 11-27-2005 09:58 AM
No resume from suspend mehlkelm Debian 3 11-22-2005 11:48 AM
ssh ->suspend and resume... alaios Linux - Networking 4 01-11-2005 12:57 AM
resume and suspend pthreads okhan Programming 3 07-30-2004 09:32 AM
pcmcia nic loses network after suspend/resume insomniac Linux - Networking 1 01-09-2002 02:55 PM


All times are GMT -5. The time now is 01:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration