mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-03 16:29:43 +01:00
framework AMD 7040: work around white screen / flickering issue on newer kernels
Fixes #817. Updating the kernel if it is too old is already done by `common/cpu/amd/raphael/igpu.nix`, so I removed the redundant code.
This commit is contained in:
parent
a377fb23dc
commit
106d3fec43
1 changed files with 1 additions and 5 deletions
|
@ -7,6 +7,7 @@ in
|
||||||
imports = [
|
imports = [
|
||||||
../common
|
../common
|
||||||
../common/amd.nix
|
../common/amd.nix
|
||||||
|
../../../common/cpu/amd/raphael/igpu.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
@ -24,11 +25,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
# Newer kernel is better for amdgpu driver updates
|
|
||||||
# Requires at least 5.16 for working wi-fi and bluetooth (RZ616, kmod mt7922):
|
|
||||||
# https://wireless.wiki.kernel.org/en/users/drivers/mediatek
|
|
||||||
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.1") (lib.mkDefault pkgs.linuxPackages_latest);
|
|
||||||
|
|
||||||
# Workaround applied upstream in Linux >=6.7 (on BIOS 03.03)
|
# Workaround applied upstream in Linux >=6.7 (on BIOS 03.03)
|
||||||
# https://github.com/torvalds/linux/commit/a55bdad5dfd1efd4ed9ffe518897a21ca8e4e193
|
# https://github.com/torvalds/linux/commit/a55bdad5dfd1efd4ed9ffe518897a21ca8e4e193
|
||||||
services.udev.extraRules = lib.mkIf (lib.versionOlder pkgs.linux.version "6.7" && cfg.preventWakeOnAC) ''
|
services.udev.extraRules = lib.mkIf (lib.versionOlder pkgs.linux.version "6.7" && cfg.preventWakeOnAC) ''
|
||||||
|
|
Loading…
Reference in a new issue