From b96d30edd7cab443b5b112d87d198f1eeff9bab4 Mon Sep 17 00:00:00 2001 From: "finn.markwitz" Date: Thu, 3 Sep 2026 08:19:07 +0200 Subject: [PATCH] config: Futher Poweroptions to deny hibernate --- machines/jupiter/configuration.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/machines/jupiter/configuration.nix b/machines/jupiter/configuration.nix index d494393..9a54eaa 100644 --- a/machines/jupiter/configuration.nix +++ b/machines/jupiter/configuration.nix @@ -49,11 +49,22 @@ # Try fix wifi disconnect networking.networkmanager.wifi.powersave = false; - # Disable hibernate completely + # Disable hibernate and suspend completely - this is a headless server. + # The board exposes a phantom ACPI lid switch (PNP0C0D) that fires a + # "closed" event when the HDMI cable is unplugged, which used to trigger + # a real suspend via logind's default HandleLidSwitch=suspend. powerManagement.enable = true; systemd.targets."hibernate".enable = false; systemd.targets."hybrid-sleep".enable = false; systemd.targets."suspend-then-hibernate".enable = false; + systemd.targets."suspend".enable = false; + systemd.targets."sleep".enable = false; + + services.logind.settings.Login = { + HandleLidSwitch = "ignore"; + HandleLidSwitchExternalPower = "ignore"; + HandleLidSwitchDocked = "ignore"; + }; # Optional: kernel parameter to fully disable hibernation boot.kernelParams = [ "nohibernate" ];