LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   pcmcia nic loses network after suspend/resume (https://www.linuxquestions.org/questions/linux-networking-3/pcmcia-nic-loses-network-after-suspend-resume-11425/)

insomniac 01-09-2002 01:24 PM

pcmcia nic loses network after suspend/resume
 
I have tried this with different cards and different laptops and the same thing happens all the time.
I am currently running debian/testing on an IBM T20 with a built-in 3com NIC.
When I boot up, the network works fine. But when resume the machine after having it suspended for a while, the network just goes dead after about a minute. The dhcp-assigned IP address stays, but I can't connect to anything...

any clues? i'd be most grateful...

DMR 01-09-2002 01:55 PM

That seems to be a common problem for laptops, and the fix is usually to restart your network services.
I found the following tip by doing a Google search using the keywords
Code:

laptop network linux suspend
:
Quote:

To get the network device to come back after suspend, you need to reload the network driver. The Linux driver maintainer has not been provided information from 3COM to fix the problem in the driver. To get around the problem, edit /etc/sysconfig/apm-scripts. You want to unload the driver on suspend, and restore it on resume. Edit the two lines that contain $NET_RESTART to match the following:

[ "$NET_RESTART" = "yes" ] && /etc/rc.d/init.d/network stop &&
/sbin/rmmod 3c59x && logger "apmscript unloaded 3c59x network module"

[ "$NET_RESTART" = "yes" ] && modprobe 3c59x &&
logger "apmscript started 3c59x" && /etc/rc.d/init.d/network start
I can't guarantee that it will work for you, butr there are probably similar fixes for your specific distro and laptop.


All times are GMT -5. The time now is 06:32 AM.