From 7659093598c593aafb3e3ecd6a1ea9e6e2023faf Mon Sep 17 00:00:00 2001 From: "M. Ian Graham" Date: Thu, 23 Jan 2025 12:06:09 +0900 Subject: [PATCH] gpd/pocket-4: default kernel version to 6.12 to fix amdgpu error --- gpd/pocket-4/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gpd/pocket-4/default.nix b/gpd/pocket-4/default.nix index d4c9624..36a6a0a 100644 --- a/gpd/pocket-4/default.nix +++ b/gpd/pocket-4/default.nix @@ -1,5 +1,5 @@ { lib, pkgs, ... }: -let inherit (lib) mkDefault; +let inherit (lib) mkIf mkDefault; in { imports = [ @@ -11,10 +11,15 @@ in ../../common/hidpi.nix ]; - boot.kernelParams = [ - # The GPD Pocket 4 uses a tablet LTPS display, that is mounted rotated 90° counter-clockwise - "fbcon=rotate:1" "video=eDP-1:panel_orientation=right_side_up" - ]; + boot = { + # As of kernel version 6.6.72, amdgpu throws a fatal error during init, resulting in a barely-working display + kernelPackages = mkIf (lib.versionOlder pkgs.linux.version "6.12") pkgs.linuxPackages_latest; + + kernelParams = [ + # The GPD Pocket 4 uses a tablet LTPS display, that is mounted rotated 90° counter-clockwise + "fbcon=rotate:1" "video=eDP-1:panel_orientation=right_side_up" + ]; + }; fonts.fontconfig = { subpixel.rgba = "vbgr"; # Pixel order for rotated screen