1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2025-01-30 12:45:02 +01:00

gpd/pocket-4: default kernel version to 6.12 to fix amdgpu error

This commit is contained in:
M. Ian Graham 2025-01-23 12:06:09 +09:00 committed by mergify[bot]
parent c2aa5756c0
commit 7659093598

View file

@ -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