summary refs log tree commit diff
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-09-08 05:07:03 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-09-08 07:02:58 -0400
commit16083defb5aff18f70e938c6ecad1c9b11c3054a (patch)
treefe8fe391acd8600a84f47e2139cd9c98d1176e5c
parent92740dd4a81e0f2ef3c185e66809e3fca5132f0d (diff)
downloadnixpkgs-16083defb5aff18f70e938c6ecad1c9b11c3054a.tar
nixpkgs-16083defb5aff18f70e938c6ecad1c9b11c3054a.tar.gz
nixpkgs-16083defb5aff18f70e938c6ecad1c9b11c3054a.tar.bz2
nixpkgs-16083defb5aff18f70e938c6ecad1c9b11c3054a.tar.lz
nixpkgs-16083defb5aff18f70e938c6ecad1c9b11c3054a.tar.xz
nixpkgs-16083defb5aff18f70e938c6ecad1c9b11c3054a.tar.zst
nixpkgs-16083defb5aff18f70e938c6ecad1c9b11c3054a.zip
nixos/upower: drop resumeCommands hack
Introduced 7 years ago, it's likely the issue has
been fixed. Even possible this could cause issues
with recent upower.
-rw-r--r--nixos/modules/services/hardware/upower.nix9
1 files changed, 0 insertions, 9 deletions
diff --git a/nixos/modules/services/hardware/upower.nix b/nixos/modules/services/hardware/upower.nix
index f6ce1101d54..5e7ac7a6e65 100644
--- a/nixos/modules/services/hardware/upower.nix
+++ b/nixos/modules/services/hardware/upower.nix
@@ -54,15 +54,6 @@ in
 
     systemd.packages = [ cfg.package ];
 
-    # The upower daemon seems to get stuck after doing a suspend
-    # (i.e. subsequent suspend requests will say "Sleep has already
-    # been requested and is pending").  So as a workaround, restart
-    # the daemon.
-    powerManagement.resumeCommands =
-      ''
-        ${config.systemd.package}/bin/systemctl try-restart upower
-      '';
-
   };
 
 }