[ltp] Question on ifplugd and ACPI suspend

Lenz Grimmer linux-thinkpad@linux-thinkpad.org
Wed, 28 Sep 2005 14:29:27 +0200


-----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)

Hope that helps!

Bye,
	LenZ
- --
- ------------------------------------------------------------------
 Lenz Grimmer <lenz@grimmer.com>                             -o)
 [ICQ: 160767607 | Jabber: LenZGr@jabber.org]                /\\
 http://www.lenzg.org/                                       V_V
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDOoykSVDhKrJykfIRAjwDAJ92ToDeS0lqtb3y3kmjlfLC6U6HCgCeIHjA
Oni079hOX2COgZ5ue9itRyk=
=874Z
-----END PGP SIGNATURE-----