mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	Merge pull request #1580 from NixOS/private-flake
Refactor tests to load flake inputs with flake-compat
This commit is contained in:
		@@ -6,19 +6,18 @@
 | 
			
		||||
    ../../../common/gpu/amd
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  boot.kernelParams =
 | 
			
		||||
    [
 | 
			
		||||
      # There seems to be an issue with panel self-refresh (PSR) that
 | 
			
		||||
      # causes hangs for users.
 | 
			
		||||
      #
 | 
			
		||||
      # https://community.frame.work/t/fedora-kde-becomes-suddenly-slow/58459
 | 
			
		||||
      # https://gitlab.freedesktop.org/drm/amd/-/issues/3647
 | 
			
		||||
      "amdgpu.dcdebugmask=0x10"
 | 
			
		||||
    ]
 | 
			
		||||
    # Workaround for SuspendThenHibernate: https://lore.kernel.org/linux-kernel/20231106162310.85711-1-mario.limonciello@amd.com/
 | 
			
		||||
    ++ lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") [
 | 
			
		||||
      "rtc_cmos.use_acpi_alarm=1"
 | 
			
		||||
    ];
 | 
			
		||||
  boot.kernelParams = [
 | 
			
		||||
    # There seems to be an issue with panel self-refresh (PSR) that
 | 
			
		||||
    # causes hangs for users.
 | 
			
		||||
    #
 | 
			
		||||
    # https://community.frame.work/t/fedora-kde-becomes-suddenly-slow/58459
 | 
			
		||||
    # https://gitlab.freedesktop.org/drm/amd/-/issues/3647
 | 
			
		||||
    "amdgpu.dcdebugmask=0x10"
 | 
			
		||||
  ]
 | 
			
		||||
  # Workaround for SuspendThenHibernate: https://lore.kernel.org/linux-kernel/20231106162310.85711-1-mario.limonciello@amd.com/
 | 
			
		||||
  ++ lib.optionals (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") [
 | 
			
		||||
    "rtc_cmos.use_acpi_alarm=1"
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # AMD has better battery life with PPD over TLP:
 | 
			
		||||
  # https://community.frame.work/t/responded-amd-7040-sleep-states/38101/13
 | 
			
		||||
 
 | 
			
		||||
@@ -9,16 +9,15 @@
 | 
			
		||||
    ../../../common/cpu/intel
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  boot.kernelParams =
 | 
			
		||||
    [
 | 
			
		||||
      # For Power consumption
 | 
			
		||||
      # https://community.frame.work/t/linux-battery-life-tuning/6665/156
 | 
			
		||||
      "nvme.noacpi=1"
 | 
			
		||||
    ]
 | 
			
		||||
    # Fixes a regression in s2idle, making it more power efficient than deep sleep
 | 
			
		||||
    # Update 04/2024: It appears that s2idle-regression got fixed in newer kernel-versions (SebTM)
 | 
			
		||||
    # (see: https://github.com/NixOS/nixos-hardware/pull/903#discussion_r1556096657)
 | 
			
		||||
    ++ lib.lists.optional (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") "acpi_osi=\"!Windows 2020\"";
 | 
			
		||||
  boot.kernelParams = [
 | 
			
		||||
    # For Power consumption
 | 
			
		||||
    # https://community.frame.work/t/linux-battery-life-tuning/6665/156
 | 
			
		||||
    "nvme.noacpi=1"
 | 
			
		||||
  ]
 | 
			
		||||
  # Fixes a regression in s2idle, making it more power efficient than deep sleep
 | 
			
		||||
  # Update 04/2024: It appears that s2idle-regression got fixed in newer kernel-versions (SebTM)
 | 
			
		||||
  # (see: https://github.com/NixOS/nixos-hardware/pull/903#discussion_r1556096657)
 | 
			
		||||
  ++ lib.lists.optional (lib.versionOlder config.boot.kernelPackages.kernel.version "6.8") "acpi_osi=\"!Windows 2020\"";
 | 
			
		||||
 | 
			
		||||
  # Requires at least 5.16 for working wi-fi and bluetooth.
 | 
			
		||||
  # https://community.frame.work/t/using-the-ax210-with-linux-on-the-framework-laptop/1844/89
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user