Returning from hibernate doesn't start the INTERFACES (network) on Feisty.

Bug #89149 reported by Peter Antoniac
4
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: acpi-support

Well, the problem is that the script: /etc/acpi/resume.d/62-ifup.sh that is supposed to start the interfaces, doesn't get the $INTEFACES variable.
The script should look like this:
#!/bin/sh
# Bring up the interfaces (this should probably be left up to some policy
# manager, but at the moment we just bring back whatever we ifdowned)
# Find the currently running network interfaces...
INTERFACES=`/sbin/ifconfig | awk '/^[^ ]+/ {print $1}'`
# And bring them up
for x in $INTERFACES; do
    ifup $x &
done

If you put it like this, it works.
This was in latest feisty package: Version: 0.91 for acpi-support.

Peter Antoniac (pan1nx)
description: updated
Revision history for this message
Paul Sladen (sladen) wrote :

Hello Peter,

Can you attach a diff showing how the file was before, and what the solution is? This makes it easier to see exactly what needs uploading to fix the issue.

Changed in acpi-support:
status: Unconfirmed → Needs Info
Revision history for this message
Peter Antoniac (pan1nx) wrote :

Here is the patch with diff -Naur

Revision history for this message
Peter Whittaker (pwwnow) wrote :

Two quick comments: 1) the attached diff doesn't have the necessary ` , so INTERFACES won't get set properly, but more importantly,

2) INTERFACES is set in exactly this way in /etc/acpi/suspend.d/55-down-interfaces.sh

All scripts in suspend.d should be being called on the way down; if they are not, then that is the source of the bug: As part of going down, sufficient state is saved to restore the system properly on the way back up (at least that's the theory). In general, the resume scripts should not be setting variables, they should be using those set during suspend.

Peter, if you can, please track down why INTERFACES isn't being set on the way down. Thanks!

Revision history for this message
Peter Antoniac (pan1nx) wrote :

You are right and right. I forgot the ` when I cut-and-paste in joe. I should have used scp, as I was using a remote machine for the diff. The second point also is correct. I removed the setting in the resume.d for the INTERFACES and I asked the scripts to save the state of INTERFACES (simple placed an echo $INTERFACES >/tmp/ifdown respective ifup) and it looks like you said. Now, I don't know anymore what caused the problem with restarting the interfaces for resume? Complete puzzled. I will close the bug and if I get some more data, I will return with the results. I also did an upgrade to other modules, including the restricted-modules (I am using an intel ipw3945 network card that might have had some issues).

Anyway, thanks for the help...

Cheers,
Peter

Revision history for this message
Peter Antoniac (pan1nx) wrote :

Seems like it is working, in fact...maybe the bug is somewhere else...

Changed in acpi-support:
status: Needs Info → Rejected
Revision history for this message
Peter Antoniac (pan1nx) wrote : Re: [Bug 89149] Re: Returning from hibernate doesn't start the INTERFACES (network) on Feisty.

On Monday 05 March 2007 23:04:23 Peter Whittaker wrote:
> Peter, if you can, please track down why INTERFACES isn't being set on
> the way down. Thanks!

I've been looking more into this issue and found out some things that you
might consider into the acpi-support package. What I found is that the dbus
is not reset after return from hibernate. This is quite an important thing
and can be done easily by just adding a script in resume.d
like: /etc/init.d/dbus restart. If you don't do this restart, for example, if
the user changes from using eth0 (wired) and returns into using eth1
(wireless), it might be that the NetworkManager will not be able to detect
the interfaces. Are you aware of this issue with the NetworkManager? I can
explain more the issue if you need...but what are your thoughts on this
topic?

Thanks,
Peter

--
                                  o
 Dr. Peter Antoniac (theSeinfeld) I~./
 http://antoniac.info/ Z\ T

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.