OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: bam on May 02, 2006, 04:42:24 pm

Title: Network Disconnect
Post by: bam on May 02, 2006, 04:42:24 pm
so when the network applet is clicked and "disconnect" pressed what scripts are executed? this is so I can insert a "cardctl reset 0" to take care of the little bug in cacko that doesnt let you reconnect after a disconnect.
Title: Network Disconnect
Post by: speculatrix on May 02, 2006, 06:46:17 pm
isn't everything in /etc/pcmcia
take a look at the wireless script?
Title: Network Disconnect
Post by: bam on May 02, 2006, 09:04:20 pm
I figured, but just needed some verification.
Title: Network Disconnect
Post by: oggie on May 15, 2006, 04:07:23 am
Just wondered if you got the script updated to work OK. If so, could you please post the place to put it as I haven't been able to get this to work.
Thanks
Title: Network Disconnect
Post by: bam on May 16, 2006, 10:12:27 pm
actually I will look at it this week, its on my todo list.
Title: Network Disconnect
Post by: fiferboy on May 17, 2006, 08:40:01 pm
Hey Bam,

Give this a try: in /etc/pcmcia/network.opts

Change CARDSUSPEND=y to CARDSUSPEND=n

This fixed it up for me!

Also, when you suspend with the network connected try this script in /etc/apm.d/wlan0

Code: [Select]
#!/bin/sh
 
PATH=$PATH:/usr/bin
 
case "$1" in
suspend)
    cardctl suspend
;;
resume)
    cardctl resume
;;
esac

then

Code: [Select]
ln -s /etc/apm.d/wlan0 /etc/apm.d/suspend.d/S20wlan0
Hopefully these instructions make sense.
Title: Network Disconnect
Post by: Snappy on January 24, 2007, 09:33:36 pm
old thread, but shouldn't there be another ln for resume?

Code: [Select]
sudo ln -s /etc/apm.d/wlan0 /etc/apm.d/resume.d/R20wlan0
Title: Network Disconnect
Post by: speculatrix on January 25, 2007, 05:25:40 am
with cacko1.23 on C3100, if I suspend when the network is active using power-off button, when I power back on the network comes back fine.

the only problem is that wifi won't work a second time until I eject the wifi card ("cardctl eject 0; sleep 1; cardctl insert 0"). Unless I do this, the qtopia applet connect function simply causes the LED on the wifi card to flash once, and then it hangs for 30 seconds before timing out. I've wondered is the simplest hack is to cardctl-eject on suspend and cardctl-insert on resume, so that I can simply suspend and resume to allow networking to work consistently.

this problem is a particular nuisance when I've run kismet to find a wifi point, and then have eject/insert before I can connect.
Title: Network Disconnect
Post by: Snappy on January 29, 2007, 11:28:53 am
Quote
with cacko1.23 on C3100, if I suspend when the network is active using power-off button, when I power back on the network comes back fine.

the only problem is that wifi won't work a second time until I eject the wifi card ("cardctl eject 0; sleep 1; cardctl insert 0"). Unless I do this, the qtopia applet connect function simply causes the LED on the wifi card to flash once, and then it hangs for 30 seconds before timing out. I've wondered is the simplest hack is to cardctl-eject on suspend and cardctl-insert on resume, so that I can simply suspend and resume to allow networking to work consistently.

this problem is a particular nuisance when I've run kismet to find a wifi point, and then have eject/insert before I can connect.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152349\"][{POST_SNAPBACK}][/a][/div]

hmmm ... did you try the mod mentioned above for apm.d? Also, I removed the one for resume.d as it was causing problems.
Title: Network Disconnect
Post by: speculatrix on January 29, 2007, 12:00:03 pm
ah, I suddenly understand... I never gave it a proper chance to work.. yes, if I use "cardctl reset 0" after disconnecting, I can then connect again.

I'm not playing with the /etc/pcmcia/network wireless wlan-ng scripts to add "cardctl reset 0" in the "stop" sections...