[systemd-devel] slow systemd-networkd DHCP client on wlan0 with systemd v217
Patrik Flykt
Patrik.Flykt at linux.intel.com
Wed Feb 4 05:41:08 PST 2015
Hi,
On Tue, 2015-02-03 at 17:27 +0100, Lennart Poettering wrote:
> > Is the resume event detected somehow in systemd?
>
> The kernel unfortunately provides no API for this right now. However,
> if logind is the one suspending the machine, then it sends out a
> PrepareForSleep() signal before doing so. systemd-resolved already
> hooks into that:
>
> http://cgit.freedesktop.org/systemd/systemd/tree/src/resolve/resolved-bus.c#n684
>
> Tom mentioned he's already looking into adding similar code to
> networkd to handle this properly.
Latest upstream works fine for me. Links break at suspend and are
enabled at restore with PrepareForSleep() handled. Both versions of DHCP
properly stop and start at these events.
Cheers,
Patrik
More information about the systemd-devel
mailing list