mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	Replace ad hoc throttling fix with throttled
`throttled` is a service designed to fix the same CPU throttling bug, but it's an actively maintainted upstream project that we can use.
This commit is contained in:
		@@ -5,15 +5,16 @@
 | 
			
		||||
#
 | 
			
		||||
# Enable the lower-power S3 suspend state by upgrading the BIOS to version >= 1.30,
 | 
			
		||||
# then manually selecting Linux in the power management section.
 | 
			
		||||
{ config, pkgs, ... }:
 | 
			
		||||
{ config, pkgs, lib, ... }:
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../.
 | 
			
		||||
    ../../../../common/pc/laptop/acpi_call.nix
 | 
			
		||||
    ../../../../common/pc/laptop/cpu-throttling-bug.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # New ThinkPads have a different TrackPoint manufacturer/name.
 | 
			
		||||
  # See also https://certification.ubuntu.com/catalog/component/input/5313/input%3ATPPS/2ElanTrackPoint/
 | 
			
		||||
  hardware.trackpoint.device = "TPPS/2 Elan TrackPoint";
 | 
			
		||||
 | 
			
		||||
  services.throttled.enable = lib.mkDefault true;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user