Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Suspend and Wireless PCMCIA problem< Next Oldest | Next Newest >
Joat_Mone Offline





Group: Members
Posts: 36
Joined: Oct. 2004
Posted: July 23 2005,00:05 QUOTE

I have a Compaq Armada E500, and a D-Link DWL-G650.  Everything works fine, but when I go into suspend mode either because it is not pluged in for a while, or I push the suspend button, when I turn it back on, the wireless card is not recogonized, and will not work until I reboot.

 Any thoughts?
Back to top
Profile PM 
kopsis Offline





Group: Members
Posts: 65
Joined: July 2005
Posted: July 23 2005,10:00 QUOTE

This is pretty common for PCMCIA wireless cards. It's likely that if you eject the card before suspending (which unloads the kernel module) and then plug it back in after resume, it will be ok.

If that works, you may be able to use an apmd script to do a "cardctl eject" on suspend and "cardctl insert" on resume to handle the timed sleep cases.
Back to top
Profile PM WEB YIM 
Joat_Mone Offline





Group: Members
Posts: 36
Joined: Oct. 2004
Posted: July 24 2005,14:56 QUOTE

And what would this script look like?  I'm not a newbie, but I'm also not that knowledgeable in Linux ( as csn be shown by the question).  If the script is all that is needed, maybe it could find it's way into DSL.....?
Back to top
Profile PM 
Joat_Mone Offline





Group: Members
Posts: 36
Joined: Oct. 2004
Posted: July 24 2005,15:03 QUOTE

To answer my own question....

The commands are :

cardctl eject 0
(which stops using the PCMCIA card)

cardctl insert 0
(You can start using the card again)

I have to go through and setup the Iwconfig again but that is minor.

 Thanks for the help
 Matt

Another thought.  What if I dont have the card inserted when I boot up?  Will cardctl start up anyway?  I dont think I saw it starting when nothing was in the slot.
Back to top
Profile PM 
kopsis Offline





Group: Members
Posts: 65
Joined: July 2005
Posted: July 24 2005,19:36 QUOTE

cardctl should always start up if DSL detects PCMCIA slot(s). However if there are no cards inserted, cardctl doesn't print much (if anything) at startup.

As for iwconfig, you should be able to automate all of that by editing /etc/network/interfaces and adding the appropriate entry for your wireless card. For example, mine contains:
Code Sample

iface atml0 inet dhcp
       wireless-mode managed
       wireless-essid myappname

Which associates my wireless card with my AP and assigns an IP via DHCP. Your settings may vary (most likely your wireless card has a different device name) but the basic idea is the same.

Make sure that /etc/network/interfaces is listed in /home/dsl/.filetool.lst so it gets backed up and restored on restarts.
Back to top
Profile PM WEB YIM 
5 replies since July 23 2005,00:05 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Suspend and Wireless PCMCIA problem

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code