From db8a928c4421145d0df8ca99c2e6875cba7d8cab Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 4 Apr 2024 22:15:10 +0200 Subject: [PATCH] hosts/TITAN: fix ddcci-backlight --- hosts/TITAN/hardware-configuration.nix | 2 ++ patches/kmods/ddcci-driver/global-control-device.patch | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/TITAN/hardware-configuration.nix b/hosts/TITAN/hardware-configuration.nix index 1674d20..614442d 100644 --- a/hosts/TITAN/hardware-configuration.nix +++ b/hosts/TITAN/hardware-configuration.nix @@ -17,6 +17,8 @@ "dm_persistent_data" "dm_bio_prison" "dm_bufio" + "amdgpu" + "ddcci_backlight" ]; boot.initrd.kernelModules = [ "dm_cache" ]; boot.kernelModules = [ "kvm-amd" ]; diff --git a/patches/kmods/ddcci-driver/global-control-device.patch b/patches/kmods/ddcci-driver/global-control-device.patch index 27dcf66..45d3f59 100644 --- a/patches/kmods/ddcci-driver/global-control-device.patch +++ b/patches/kmods/ddcci-driver/global-control-device.patch @@ -68,7 +68,7 @@ index 7a98522..e518bfc 100644 + if (ddcci_bl_global_control == NULL) { + printk(KERN_INFO "ddcci-backlight: registering global controller with brightness=%d, max_brightness=%d\n", + brightness, max_brightness); -+ cprops.type = BACKLIGHT_RAW; ++ cprops.type = BACKLIGHT_FIRMWARE; + cprops.max_brightness = max_brightness; + cprops.brightness = brightness; + ddcci_bl_global_control = devm_backlight_device_register(&dev->dev, "0000-ddcci_backlight_global_control",