Skip to content

Commit

Permalink
framework AMD 7040: work around white screen / flickering issue on ne…
Browse files Browse the repository at this point in the history
…wer 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.
  • Loading branch information
Luflosi authored and mergify[bot] committed Feb 16, 2024
1 parent a377fb2 commit 106d3fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions framework/13-inch/7040-amd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ in
imports = [
../common
../common/amd.nix
../../../common/cpu/amd/raphael/igpu.nix
];

options = {
Expand All @@ -24,11 +25,6 @@ in
};

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)
# https://github.com/torvalds/linux/commit/a55bdad5dfd1efd4ed9ffe518897a21ca8e4e193
services.udev.extraRules = lib.mkIf (lib.versionOlder pkgs.linux.version "6.7" && cfg.preventWakeOnAC) ''
Expand Down

0 comments on commit 106d3fe

Please sign in to comment.