From e79d0fc1849c271d8398816748ba38a892f2e488 Mon Sep 17 00:00:00 2001 From: Archit Gupta Date: Sat, 29 Oct 2022 23:22:25 -0700 Subject: [PATCH] framework: Add iio in order to enable brightness control Enabling iio makes the framework's brightness controls available to desktop environments like Gnome. --- framework/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/default.nix b/framework/default.nix index 431d23b..4ce0f58 100644 --- a/framework/default.nix +++ b/framework/default.nix @@ -38,6 +38,9 @@ # https://wiki.archlinux.org/title/Framework_Laptop#Changing_the_brightness_of_the_monitor_does_not_work hardware.acpilight.enable = lib.mkDefault true; + # Needed for desktop environments to detect/manage display brightness + hardware.sensor.iio.enable = lib.mkDefault true; + # HiDPI # Leaving here for documentation # hardware.video.hidpi.enable = lib.mkDefault true;