Skip to content

Commit

Permalink
Merge NixOS#598
Browse files Browse the repository at this point in the history
598: Add settings for AMD Raphael iGPU r=Mic92 a=stffffn



Co-authored-by: Steffen Weitz <[email protected]>
  • Loading branch information
bors[bot] and stffffn authored Apr 7, 2023
2 parents e810467 + 9dbe8de commit 3006d28
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions common/cpu/amd/raphael/igpu.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ lib, pkgs, ... }:

{
# Sets the kernel version to the latest kernel to make the usage of the iGPU possible if your kernel version is too old
# Disables scatter/gather which was introduced with kernel version 6.2
# It produces completely white or flashing screens when enabled while using the iGPU of Ryzen 7000-series CPUs (Raphael)

imports = [ ../. ];

boot = lib.mkMerge [
(lib.mkIf (lib.versionOlder pkgs.linux.version "6.1") {
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = ["amdgpu.sg_display=0"];
})

(lib.mkIf (lib.versionAtLeast pkgs.linux.version "6.2") {
kernelParams = ["amdgpu.sg_display=0"];
})
];
}
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@

common-cpu-amd = import ./common/cpu/amd;
common-cpu-amd-pstate = import ./common/cpu/amd/pstate.nix;
common-cpu-amd-raphael-igpu = import ./common/cpu/amd/raphael/igpu.nix;
common-cpu-intel = import ./common/cpu/intel;
common-cpu-intel-cpu-only = import ./common/cpu/intel/cpu-only.nix;
common-cpu-intel-kaby-lake = import ./common/cpu/intel/kaby-lake;
Expand Down

0 comments on commit 3006d28

Please sign in to comment.