mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-30 06:49:43 +01:00
Add settings for AMD Raphael iGPU
This commit is contained in:
parent
f38f9a4c9b
commit
70a8ff0a25
1 changed files with 15 additions and 0 deletions
15
common/cpu/amd/raphael/igpu.nix
Normal file
15
common/cpu/amd/raphael/igpu.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# 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 = lib.mkMerge [["amdgpu.sg_display=0"]];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue