From c8a596aa39ef60794a40a04339cb9d98a43d9549 Mon Sep 17 00:00:00 2001 From: alexion Date: Sat, 10 Oct 2026 08:29:01 -0400 Subject: [PATCH] fix(hyprland): stop idle dpms poweroff --- .../modules/desktop/session/hyprland/hypridle.nix | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/configs/nixos/modules/desktop/session/hyprland/hypridle.nix b/configs/nixos/modules/desktop/session/hyprland/hypridle.nix index a77e501..aab4bc0 100644 --- a/configs/nixos/modules/desktop/session/hyprland/hypridle.nix +++ b/configs/nixos/modules/desktop/session/hyprland/hypridle.nix @@ -27,11 +27,6 @@ in description = "Seconds of inactivity before the screen locks."; }; - screenOffTimeout = lib.mkOption { - type = lib.types.ints.positive; - default = 360; - description = "Seconds of inactivity before the displays are powered off."; - }; }; config = lib.mkIf cfg.enable { @@ -46,7 +41,7 @@ in general = { lock_cmd = lockCmd; before_sleep_cmd = "loginctl lock-session"; - # Waking restores the displays the screen-off listener may have cut. + # Waking pokes the compositor in case firmware leaves displays dark. after_sleep_cmd = "${hyprctl} dispatch dpms on"; }; @@ -56,12 +51,6 @@ in timeout = cfg.lockTimeout; on-timeout = "loginctl lock-session"; } - # Power the displays off a little later, restoring them on any activity. - { - timeout = cfg.screenOffTimeout; - on-timeout = "${hyprctl} dispatch dpms off"; - on-resume = "${hyprctl} dispatch dpms on"; - } ]; }; };