From 104de603cba1b499984ec268bb782c7147e91d7a Mon Sep 17 00:00:00 2001 From: Andreas Rammhold <andreas@rammhold.de> Date: Fri, 1 Dec 2017 14:58:06 +0100 Subject: [PATCH] networkmanager: remove restart after suspend from resume MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In commit ec9dc73 restarting NetworkManager after resume from suspend/hibernate was introduced. When I initially switch to NixOS I started noticing a high delay between wakeup and re-connecting to WiFi & wired networks. The delay increased from a few seconds (on my previous distro, same software stack) to almost half a minute with NixOS. I (locally) applied the change in this commit a few weeks ago and tested since then. The notebook/mobile device experience has improved a lot. Reconnects are as before switching to NixOS. Issue #24401 could be related to this. Since I am not using KDE/plasma5 I can only guess… --- nixos/modules/services/networking/networkmanager.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix index 6bdae32f72bb..d9ac4b0f274e 100644 --- a/nixos/modules/services/networking/networkmanager.nix +++ b/nixos/modules/services/networking/networkmanager.nix @@ -333,10 +333,6 @@ in { wireless.enable = lib.mkDefault false; }; - powerManagement.resumeCommands = '' - ${config.systemd.package}/bin/systemctl restart network-manager - ''; - security.polkit.extraConfig = polkitConf; services.dbus.packages = cfg.packages;