From 8ed6e277cf57369f59e3b192eef72ce40fc7cd02 Mon Sep 17 00:00:00 2001 From: Nick Douma Date: Fri, 5 Nov 2021 13:28:12 +0100 Subject: [PATCH 1/2] Ignore error if old lenovo_fix file is not present --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index fea2509..4833e1f 100755 --- a/install.sh +++ b/install.sh @@ -35,7 +35,7 @@ fi if pidof systemd 2>&1 1>/dev/null; then echo "Copying systemd service file" cp systemd/throttled.service /etc/systemd/system - rm /etc/systemd/system/lenovo_fix.service >/dev/null 2>&1 + rm -f /etc/systemd/system/lenovo_fix.service >/dev/null 2>&1 elif pidof runit 2>&1 1>/dev/null; then echo "Copying runit service file" cp -R runit/throttled /etc/sv/ @@ -43,7 +43,7 @@ elif pidof runit 2>&1 1>/dev/null; then elif pidof openrc-init 2>&1 1>/dev/null; then echo "Copying OpenRC service file" cp -R openrc/throttled /etc/init.d/throttled - rm /etc/init.d/lenovo_fix >/dev/null 2>&1 + rm -f /etc/init.d/lenovo_fix >/dev/null 2>&1 chmod 755 /etc/init.d/throttled fi From 21e842cefc6c432aeb8a89c3c38dca45e2633445 Mon Sep 17 00:00:00 2001 From: Nick Douma Date: Fri, 5 Nov 2021 13:28:47 +0100 Subject: [PATCH 2/2] Add CPUID for Tiger Lake CPU in Dell Latitude 5421 Identified in /proc/cpuinfo as: 11th Gen Intel(R) Core(TM) i7-11850H --- throttled.py | 1 + 1 file changed, 1 insertion(+) diff --git a/throttled.py b/throttled.py index 021b928..02a637c 100755 --- a/throttled.py +++ b/throttled.py @@ -148,6 +148,7 @@ supported_cpus = { (6, 126, 5): 'IceLakeY', (6, 138, 1): 'Lakefield', (6, 140, 1): 'TigerLake', + (6, 141, 1): 'TigerLake', (6, 142, 9): 'Kabylake', (6, 142, 10): 'Kabylake', (6, 142, 11): 'WhiskeyLake',