Author Topic: Network Disconnect  (Read 3945 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Network Disconnect
« 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.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Network Disconnect
« Reply #1 on: May 02, 2006, 06:46:17 pm »
isn't everything in /etc/pcmcia
take a look at the wireless script?
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Network Disconnect
« Reply #2 on: May 02, 2006, 09:04:20 pm »
I figured, but just needed some verification.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

oggie

  • Newbie
  • *
  • Posts: 2
    • View Profile
Network Disconnect
« Reply #3 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

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Network Disconnect
« Reply #4 on: May 16, 2006, 10:12:27 pm »
actually I will look at it this week, its on my todo list.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

fiferboy

  • Newbie
  • *
  • Posts: 38
    • View Profile
Network Disconnect
« Reply #5 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.

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
Network Disconnect
« Reply #6 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
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Network Disconnect
« Reply #7 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.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
Network Disconnect
« Reply #8 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.
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Network Disconnect
« Reply #9 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...
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.