vanadium/display: it seems like removing the delay works

This commit is contained in:
Primrose 2025-11-03 09:23:37 +08:00
parent d22bd9ae28
commit 4d4363ced1
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -61,11 +61,7 @@
device, # obtain with `xrandr` device, # obtain with `xrandr`
brightness, # [0..1] 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" '' singleton "10_xrandr_brightness" ''
sleep 10
${lib.getExe pkgs.xorg.xrandr} --output ${device} --brightness ${toString brightness} ${lib.getExe pkgs.xorg.xrandr} --output ${device} --brightness ${toString brightness}
''; '';