throttled: add a patch

This commit is contained in:
Motiejus Jakštys 2024-03-27 19:58:55 +02:00 committed by Motiejus Jakštys
parent 0b17f4cbc0
commit eb6b7bc000
3 changed files with 31 additions and 0 deletions

View File

@ -114,6 +114,10 @@
# TODO: copied from 24.05 # TODO: copied from 24.05
turbo = super.callPackage ./pkgs/turbo.nix {}; turbo = super.callPackage ./pkgs/turbo.nix {};
throttled = super.throttled.overrideAttrs (_: _: {
patches = [./pkgs/throttled.patch];
});
pkgs-unstable = import nixpkgs-unstable { pkgs-unstable = import nixpkgs-unstable {
inherit (super) system; inherit (super) system;
}; };

View File

@ -125,6 +125,8 @@ in {
}; };
services = { services = {
throttled.enable = true;
autorandr.profiles = { autorandr.profiles = {
default = { default = {
fingerprint = {inherit (randr) eDP-1;}; fingerprint = {inherit (randr) eDP-1;};

25
pkgs/throttled.patch Normal file
View File

@ -0,0 +1,25 @@
From 185879489c015a730830a09481f496a126d8a7f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= <motiejus.jakstys@chronosphere.io>
Date: Wed, 27 Mar 2024 19:50:12 +0200
Subject: [PATCH] enable i7-1355U
https://github.com/erpalma/throttled/issues/346
---
throttled.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/throttled.py b/throttled.py
index b9f4c41..0e2b5f7 100755
--- a/throttled.py
+++ b/throttled.py
@@ -170,6 +170,7 @@ supported_cpus = {
(6, 165, 5): 'Comet Lake-S',
(6, 166, 0): 'CometLake',
(6, 167, 1): 'RocketLake',
+ (6, 186, 3): 'RaptorLake-U',
}
TESTMSR = False
--
2.42.0