From 3d3b0f50bf2dfa5fdb0616ed40dab4a875dbeed2 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Tue, 19 Nov 2024 14:42:43 -0800 Subject: [PATCH] lenovo/thinkpad/t480s: Automatically downgrade kernel to 6.10 --- lenovo/thinkpad/t480s/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lenovo/thinkpad/t480s/default.nix b/lenovo/thinkpad/t480s/default.nix index bfca912..df0b728 100644 --- a/lenovo/thinkpad/t480s/default.nix +++ b/lenovo/thinkpad/t480s/default.nix @@ -1,4 +1,9 @@ -{ lib, ... }: +{ + pkgs, + lib, + config, + ... +}: { imports = [ @@ -9,4 +14,10 @@ ]; services.throttled.enable = lib.mkDefault true; + + # There is currently a kernel regression with the psmouse driver. As such, the kernel version is held back to 6.10. + # See https://bugzilla.kernel.org/show_bug.cgi?id=219352 + boot.kernelPackages = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages "6.11") ( + lib.warn "Linux kernel held back to 6.10 due to regression: https://bugzilla.kernel.org/show_bug.cgi?id=219352" pkgs.linuxPackages_6_10 + ); }