This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[GENERAL] | |
# Enable or disable the script execution | |
Enabled: True | |
# SYSFS path for checking if the system is running on AC power | |
Sysfs_Power_Path: /sys/class/power_supply/AC*/online | |
## Settings to apply while connected to Battery power | |
[BATTERY] | |
# Update the registers every this many seconds | |
Update_Rate_s: 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import csv | |
import logging | |
import math | |
import os | |
import subprocess | |
import sys | |
import time | |
import dbus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
RUN_CYCLE_LENGTH_IN_SECONDS = 1.0 | |
FAN_CONTROL_ENABLED = True | |
SAFE_TEMPERATURE = 75 | |
TARGET_TEMPERATURE = 90 | |
CRITICAL_TEMPERATURE = 95 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
targettemp=90 | |
clockpct=70 | |
while true | |
do | |
currenttemp=$(sensors -u | awk '/temp1_input/ {print $2; exit}' ) | |
compare=$(echo $currenttemp'>'$targettemp | bc -l) | |
turbo=`cat /sys/devices/system/cpu/intel_pstate/no_turbo` | |
if [ "$turbo" -eq 0 ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ThermalConfiguration> | |
<Platform> | |
<Name>T430</Name> | |
<ProductName>*</ProductName> | |
<Preference>QUIET</Preference> | |
<ThermalSensors> | |
<ThermalSensor> | |
<Type>pkg-temp-0</Type> | |
<Path>/sys/class/thermal/thermal_zone0/temp</Path> |