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