[ltp] Question on ifplugd and ACPI suspend

Tino Keitel linux-thinkpad@linux-thinkpad.org
Wed, 28 Sep 2005 14:44:10 +0200


On Wed, Sep 28, 2005 at 14:29:27 +0200, Lenz Grimmer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> Bob Alexander wrote:
> 
> > I like ifplugd which monitors my eth0 and brings up/down the interface
> > if its plugged/unplugged.
> > 
> > There is one case which is not working though.
> > 
> > 1) Interface is up and running at home with address A
> > 2) I suspend
> > 3) Plug into my office LAN
> > 4) Address remains A
> 
> Correct, as ifplugd never notices the link went down.
> 
> > At this point if I manually unplug the cable and then plug back in
> > ifplugd correctly intervenes and assigns address B to eth0.
> >
> > Can I force ifplugd to check things after a suspend (using swsusp2).
> 
> An easy workaround would be to unplug the LAN cable supending the
> Laptop. You may also be able to send the daemon a signal upon
> suspend/resume. According to the man page:
> 
> SIGNALS
>        SIGUSR1 ifplugd will go to suspend mode. (-S)
> 
>        SIGUSR2 ifplugd will resume from suspend mode. (-R)

This just tells ifplugd not to react on link status changes anymore and
has nothing todo with suspending a notebook, so I doubt that this will
help.

Regards,
Tino