diff --git a/asus/zephyrus/gu605my/default.nix b/asus/zephyrus/gu605my/default.nix index 003dbf13..d1ce68bb 100644 --- a/asus/zephyrus/gu605my/default.nix +++ b/asus/zephyrus/gu605my/default.nix @@ -7,6 +7,7 @@ ../../../common/gpu/nvidia/ada-lovelace ../../../common/pc/laptop ../../../common/pc/laptop/ssd + ../shared/backlight.nix ]; hardware.nvidia = { diff --git a/asus/zephyrus/shared/backlight.nix b/asus/zephyrus/shared/backlight.nix new file mode 100644 index 00000000..938ce4ac --- /dev/null +++ b/asus/zephyrus/shared/backlight.nix @@ -0,0 +1,9 @@ +{ ... }: +{ + # These flags are used to enable backlight control when the dGPU is working in hybrid mode + boot.kernelParams = [ + "i915.enable_dpcd_backlight=1" + "nvidia.NVreg_EnableBacklightHandler=0" + "nvidia.NVReg_RegistryDwords=EnableBrightnessControl=0" + ]; +}