From 002045ab1756237593fd55d7e966c41c6b0ae40d Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Thu, 16 Jan 2020 20:16:01 -0500 Subject: [PATCH] Force s2idle until suspend is fixed. --- pinebook_pro.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pinebook_pro.nix b/pinebook_pro.nix index 8a27e9d..e5d8a16 100644 --- a/pinebook_pro.nix +++ b/pinebook_pro.nix @@ -54,6 +54,13 @@ pkgs.pinebookpro-firmware ]; + # Until suspend is fixed, this at least prevents the user from shooting + # themselves in the foot by suspending accidentally, then forced to restart + # the system forcibly.. + systemd.tmpfiles.rules = [ + "w /sys/power/mem_sleep - - - - s2idle" + ]; + # The default powersave makes the wireless connection unusable. networking.networkmanager.wifi.powersave = lib.mkDefault false; }