<div dir="ltr"><div dir="ltr">On Mon, Jan 31, 2022 at 2:01 PM Lennart Poettering <<a href="mailto:mzerqung@0pointer.de">mzerqung@0pointer.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On So, 23.01.22 22:13, Tomáš Hnyk (<a href="mailto:tomashnyk@gmail.com" target="_blank">tomashnyk@gmail.com</a>) wrote:<br>
<br>
> Hello,<br>
> I have my computer hooked up to an AVR that runs my home cinema and ideally<br>
> I would like the computer to turn off the AVR when I turn it off or suspend<br>
> it. The only way to do this is over network and I wrote a simple script that<br>
> does just that. Hooking it to shutdown was quite easy using network.target<br>
> that is defined when shutting down.<br>
><br>
><br>
> I am struggling to make it work with suspend though. When I look at the<br>
> logs, terminating network seems to be the first thing that happens when<br>
> suspend is invoked.<br>
<br>
That shouldn't happen. Normally networking shouldn't be shut down<br>
during suspend. If your network management solution does this<br>
explicitly, I am puzzled, why it would do that.<br></blockquote><div><br></div><div>NetworkManager does that, especially for Wi-Fi; I don't remember the rationale though. (It uses systemd's delay inhibitors.)</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>