Ticket #5990 (new defect)

Opened 8 months ago

Last modified 4 days ago

lost eth0 on suspend/resume

Reported by: mikus Owned by: dcbw
Priority: high Milestone: Future Release
Component: network manager Version: Development build as of this date
Keywords: wired suspend Cc: mikus@…
Action Needed: never set Verified: no
Blocked By: Blocking:

Description

This may be a duplicate - but here is another "suspend" problem:

Am using an USB-ethernet adapter. With Q2D08 the XO starts up fine, seeing the ethernet (via 'eth0'). At this time the radio interfaces are 'eth1' and 'msh0-something'. When I don't have any input for a long time, the system suspends. After being awakened, 'eth0' is gone. The radio interfaces are 'eth1', 'eth2', and 'msh0-something'. [If I try '/sbin/ifconfig eth0', it tells me there is no *device* for eth0.] [Using build 681]

Attachments

logs.CSN74801834.2008-07-22.09-48-52.tar.bz2 (23.3 kB) - added by mikus 7 weeks ago.
before closing lid - eth1 is wired
logs.CSN74801834.2008-07-22.09-49-49.tar.bz2 (24.7 kB) - added by mikus 7 weeks ago.
after re-opening lid - eth1 is radio
logs.CSN74801834.2008-08-07.17-22-06.tar.bz2 (28.6 kB) - added by mikus 4 weeks ago.
Joyride 2264. log taken before suspend
logs.CSN74801834.2008-08-07.17-22-54.tar.bz2 (31.9 kB) - added by mikus 4 weeks ago.
Joyride 2264. log taken after suspend
logs.CSN74801834.2008-08-07.18-22-11.tar.bz2 (43.0 kB) - added by mikus 4 weeks ago.
Joyride 2264. log taken long time after ctl-alt-escape (to restart Sugar)
logs.CSN74801834.2008-09-01.08-12-48.tar.bz2 (54.2 kB) - added by mikus 4 days ago.
olpc-log dump taken after lid reopened (Joyride 2368+), can't use ethernet

Change History

Changed 8 months ago by mikus

  • cc mikus@… added

Changed 8 months ago by mikus

Just thought of something -- when the XO suspends, it drops power on my USB-ethernet adapter. Could that have a bearing on the device_for_'eth0' not being found by resume ?

Changed 8 months ago by jg

  • owner changed from jg to dcbw
  • priority changed from blocker to high
  • component changed from distro to network manager
  • milestone changed from Update.1 to Future Release

Mikus, please don't set the milestone on the bug; otherwise bugs get lost.

It seems likely your USB/ethernet adaptor became eth2.

Could you please check?

Also, was your ethernet interface plugged in before the machine was booted?

Changed 8 months ago by mikus

My wired ethernet adapter was plugged in before the machine was booted. [That was how 'eth0' was assigned to it.]

[br]

It seems likely your USB/ethernet adaptor became eth2.

See my ticket description. My experience with the XO is that, when at boot there is no wired connection, there are TWO 'eth' interfaces set up (for the radio - might they be one for the school, and one for outside?) in addition to the mesh interface. Both 'eth' interfaces have canned (XO given) IP addresses.

When at boot there is a wired connnection which supplies an IP address, it gets set up as 'eth0' (with that IP address). The radio (as I said) is left with ONE 'eth' interface ('eth1', with a XO assigned IP address) in addition to the mesh interface.

After the suspend/resume (when originally booted as in the paragraph above), the radio as I said in the ticket description appears to have again been given TWO 'eth' interfaces (now 'eth1' and 'eth2') in addition to the mesh interface (similar to what the radio is given at boot without a wired connection). Both 'eth' interfaces have canned (XO given) IP addresses.

Changed 7 weeks ago by mikus

before closing lid - eth1 is wired

Changed 7 weeks ago by mikus

after re-opening lid - eth1 is radio

Changed 7 weeks ago by mikus

  • next_action set to never set

Repeated this on Joyride 2181.

Because 'suspend' drops USB power from the XO, these days I have a self-powered USB hub plugged into the XO. The ethernet adapter is then plugged into the USB hub.

When I boot the XO, it turns the ethernet adapter 'on' - the lights on the adapter are lit. I 'suspended' the XO by closing the lid. The lights on the ethernet adapter stayed 'on'.

As soon as I 'resumed' (that is, opened the XO lid), the lights on the ethernet adapter were turned 'off' (and stayed 'off' until I rebooted).

I took one 'olpc-log' dump before I closed the lid, and took another 'olpc-log' dump after I had re-opened the lid.

The XO never "restored" my ethernet connection. [Before closing the lid, I had made sure the ethernet connection did work.]


Note: these days the ethernet connection seems to be on 'eth1', not on 'eth0' as it was when I originally wrote this ticket.

Changed 4 weeks ago by mikus

Repeated this, using Joyride 2264. Same result.

Changed 4 weeks ago by mikus

Joyride 2264. log taken before suspend

Changed 4 weeks ago by mikus

Joyride 2264. log taken after suspend

Changed 4 weeks ago by mikus

Joyride 2264. log taken long time after ctl-alt-escape (to restart Sugar)

Changed 4 days ago by mikus

With 0.82 heading towards release, it was time to revisit this problem. It is preventing me from using 'suspend' at home (where I connect through wired ethernet).


Booted Joyride 2368 (manually upgraded to 2371). Verified that internet connectivity worked. Shut lid and waited two minutes.

Opened lid. 'ifconfig' showed the same resources as before the suspend. '/etc/resolv.conf' showed the correct nameserver. 'netstat -rn' showed the CORRECT values for eth1 (where the ethernet happened to have been allocated at boot), but omitted the msh0 entry in the routing table.

BUT, while ping 192.168.1.8 (own ID) worked, ping 192.168.1.1 (gateway) returned 'Destination Host Unreachable'.

For me, this is a serious problem.

Changed 4 days ago by mikus

olpc-log dump taken after lid reopened (Joyride 2368+), can't use ethernet

Note: See TracTickets for help on using tickets.