From 1635fdc3a3efe574cee978ce74f995a7ab1ddad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Tue, 21 Oct 2025 21:44:34 +0800 Subject: [PATCH] vanadium/autorandr: delay software brightness setting --- nix/configurations/vanadium/nixos/display.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/configurations/vanadium/nixos/display.nix b/nix/configurations/vanadium/nixos/display.nix index 01003036..b309b82f 100644 --- a/nix/configurations/vanadium/nixos/display.nix +++ b/nix/configurations/vanadium/nixos/display.nix @@ -61,7 +61,11 @@ device, # obtain with `xrandr` brightness, # [0..1] }: + # Hack: + # xrandr would consider the display being connected before we can change its brightness + # For that reason, we can't base our delay on its output, sadly. singleton "10_xrandr_brightness" '' + sleep 10 xrandr --output ${device} --brightness ${toString brightness} '';