Bug 34632 - pcmcia eth0 gone after resume from suspend
Summary: pcmcia eth0 gone after resume from suspend
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: apmd
Version: 7.3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Aaron Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2001-04-04 07:59 UTC by Gerald Teschl
Modified: 2007-04-18 16:32 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2002-02-26 17:26:26 UTC

Attachments (Terms of Use)

Description Gerald Teschl 2001-04-04 07:59:25 UTC
If I suspend my laptop (beta hw list #12) and resume, my pcmcia network
interface eth0 is gone. Card will work again if I say "service pcmcia
on the command line.

If I use "cardclt suspend/resume" from the command line everything works
Also had no problems under RH7.0 (without PCMCIARESTART="yes"). I tried to


in /etc/sysconfig/apmd but it makes no difference. 

For the records:
[root@soliton /root]# cat /etc/sysconfig/pcmcia
[root@soliton /root]# cardctl ident
Socket 0:
  product info: "TAMARACK", "Ethernet", "A", "004743118001"
  function: 6 (network)

Comment 1 Matthew Miller 2001-04-06 13:42:04 UTC
Same on my Toshiba Libretto 50CT with all three network cards I tried -- two
Linksys ones and a Cisco Aeronet card. With the linksys cards, popping them out
and putting them back in again causes them to be recognized. (With the cisco
one, that causes a kernel panic -- that's probably a separate issue, though -- I
need to investigate that further.)

Comment 2 Gerald Teschl 2001-04-27 17:33:23 UTC
Still present in 7.1. It even suffices to say "ifup eth0" to bring the if up.
However, the
NET_RESTART="yes" option doesn't seem to help. Pretty annoying!

Comment 3 Bernhard Rosenkraenzer 2001-05-12 19:20:48 UTC
Fixed in -31

Comment 4 Gerald Teschl 2001-05-15 08:13:19 UTC
Nope. Not fixed. In fact, now it is even worse since I cannot use ifup anymore

[root@soliton gerald]# ifup eth0
SIOCSIFFLAGS: No such device
SIOCADDRT: Network is down
SIOCADDRT: Network is unreachable

and I have to do a full "service pcmcia restart".

Comment 5 Gerald Teschl 2001-05-15 08:32:02 UTC
Please ignor the above "ifup" problem, it works now.

I just did some further investigations and located the problem:

I once suggested a clean solution for the "failed" message when a pcmcia network
is started before pcmcia is started (which is the case during boot). However,
redhat turned my
patch down since it is "much better" to set ONBOOT="no" for such devices. But if
do this, the command "service network start" in the apm script has no effect on
this interface
and it is not brought up. So much about "quick and easy" solutions.

So if I set ONBOOT="yes" everything is fine again.

Comment 6 Gerald Teschl 2001-05-15 08:38:53 UTC
See bug #22979

Comment 7 Gerald Teschl 2001-05-16 16:27:23 UTC
Unfortunately the

[root@soliton gerald]# ifup eth0
 SIOCSIFFLAGS: No such device
 SIOCADDRT: Network is down
 SIOCADDRT: Network is unreachable

problem is still here. However, it only happens sometimes.
If I do a "cardctl reset 0" it does not help. But if I say
"cardctl eject 0; cardctl insert 0" it works.

Not sure if this is an apmd or pcmcia problem. 

Comment 8 Gerald Teschl 2001-06-19 18:30:25 UTC
I just did some further investigations and observed that the card is "ejected"
by the apm script upon suspend. However, upon resume the card is already active
when the apm scripts "inserts" the card again. As a temorary work around I use

--- apmscript.orig   Sat May 12 19:19:09 2001
+++ apmscript   Sat Jun 16 09:13:34 2001
@@ -217,6 +217,7 @@
        if [ "$PCMCIARESTART" = "yes" ] ; then
                if [ "$PCMCIABIOSBUG" = "yes" ]; then
+                       /sbin/cardctl eject
                        /sbin/cardctl insert
                        /sbin/cardctl resume

Comment 9 Gerald Teschl 2001-08-06 20:10:52 UTC
Still broken in beta3

Comment 10 Bernhard Rosenkraenzer 2002-02-26 17:26:21 UTC
Please check if this is still a problem in 3.0.2-6 - my PCMCIA cards (and chipsets) are 
apparnetly much more tolerant to being inserted a couple of times in a row than yours.

Comment 11 Gerald Teschl 2002-02-28 16:21:14 UTC
Seems to work in 7.2. Sometimes the interface does not come up after
wakeup from sleep

Note You need to log in before you can comment on or make changes to this bug.