From 4c904e51d662f9fc1be745c9df4e59d33aab6d5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= <me@rgoncalves.se>
Date: Wed, 12 Feb 2025 18:27:35 +0100
Subject: chore(roles/_workstation): strict policies for tlp

---
 roles/_workstation/tlp/templates/10-ansible.conf.j2 | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

(limited to 'roles/_workstation')

diff --git a/roles/_workstation/tlp/templates/10-ansible.conf.j2 b/roles/_workstation/tlp/templates/10-ansible.conf.j2
index 377bef0..0b4f810 100644
--- a/roles/_workstation/tlp/templates/10-ansible.conf.j2
+++ b/roles/_workstation/tlp/templates/10-ansible.conf.j2
@@ -2,3 +2,21 @@
 
 START_CHARGE_THRESH_BAT0={{ tlp__start_charge_threshold }}
 STOP_CHARGE_THRESH_BAT0={{ tlp__stop_charge_threshold }}
+
+# cpu policy
+CPU_ENERGY_PERF_POLICY_ON_AC=balance_performance
+CPU_ENERGY_PERF_POLICY_ON_BAT=power
+
+# platform profile
+PLATFORM_PROFILE_ON_AC=balanced
+PLATFORM_PROFILE_ON_BAT=low-power
+
+# turo boost
+CPU_BOOST_ON_AC=1
+CPU_BOOST_ON_BAT=0
+CPU_HWP_DYN_BOOST_ON_AC=1
+CPU_HWP_DYN_BOOST_ON_BAT=0
+
+# wifi
+WIFI_PWR_ON_AC=on
+WIFI_PWR_ON_BAT=on
-- 
cgit v1.2.3