From f0b864738dad352be659abd5e486dbb0b64cb3e9 Mon Sep 17 00:00:00 2001 From: Robert Ricci Date: Mon, 12 Sep 2022 19:22:04 -0600 Subject: [PATCH] Set options specific to the 12th gen Framework It requires a newer kernel than the 11th gen, and has some 'media keys' that require different handling --- framework/12th-gen-intel/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/framework/12th-gen-intel/default.nix b/framework/12th-gen-intel/default.nix index a67a70d..63adb48 100644 --- a/framework/12th-gen-intel/default.nix +++ b/framework/12th-gen-intel/default.nix @@ -14,9 +14,13 @@ "nvme.noacpi=1" ]; - # Requires at least 5.16 for working wi-fi and bluetooth. - # https://community.frame.work/t/using-the-ax210-with-linux-on-the-framework-laptop/1844/89 - boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.16") (lib.mkDefault pkgs.linuxPackages_latest); + # This enables the brightness keys to work + # https://community.frame.work/t/12th-gen-not-sending-xf86monbrightnessup-down/20605/11 + boot.blacklistedKernelModules = [ "hid-sensor-hub" ]; + + # Alder Lake CPUs benefit from kernel 5.18 for ThreadDirector + # https://www.tomshardware.com/news/intel-thread-director-coming-to-linux-5-18 + boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.18") (lib.mkDefault pkgs.linuxPackages_latest); # Fix TRRS headphones missing a mic # https://community.frame.work/t/headset-microphone-on-linux/12387/3