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, ... }: { lib, pkgs, ... }:
let inherit (lib) mkDefault; let inherit (lib) mkIf mkDefault;
in in
{ {
imports = [ imports = [
@ -11,10 +11,15 @@ in
../../common/hidpi.nix ../../common/hidpi.nix
]; ];
boot.kernelParams = [ boot = {
# The GPD Pocket 4 uses a tablet LTPS display, that is mounted rotated 90° counter-clockwise # As of kernel version 6.6.72, amdgpu throws a fatal error during init, resulting in a barely-working display
"fbcon=rotate:1" "video=eDP-1:panel_orientation=right_side_up" 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 = { fonts.fontconfig = {
subpixel.rgba = "vbgr"; # Pixel order for rotated screen subpixel.rgba = "vbgr"; # Pixel order for rotated screen