diff options
author | Que Quotion | 2022-02-26 02:40:15 +0900 |
---|---|---|
committer | Que Quotion | 2022-02-26 02:40:15 +0900 |
commit | 51c0a8395e77260aea32317e584ca56a6c360f96 (patch) | |
tree | 07dc7b5dcf6c82b44191d263b6b93d0837963726 /throttlectl | |
parent | 0b9dbc19f8b0442ef446191daedf9ba6b6693d5e (diff) | |
download | aur-51c0a8395e77260aea32317e584ca56a6c360f96.tar.gz |
cover CPUFreq Boost as well as Intel PState Turbo
Diffstat (limited to 'throttlectl')
-rwxr-xr-x | throttlectl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/throttlectl b/throttlectl index 7537fcacb67f..924fcfd3c857 100755 --- a/throttlectl +++ b/throttlectl @@ -11,7 +11,7 @@ throttle_help() { "${0} {check} - inspect runtime powersaving\n"\ "\nPer-component power management:\n" \ "${0} sys {cut,full} - System devices\n"\ - "${0} turbo {on,off} - Intel P-State Turbo\n"\ + "${0} turbo {on,off} - {Intel P-State Turbo, CPUFreq Boost}\n"\ "${0} ht {on,off} - Hyperthreads\n"\ "${0} gov {cut,full} - CPU Governor\n"\ "${0} gpu {cut,full} - GPU runtime powersaving (only Nvidia ATM)\n"\ @@ -165,12 +165,18 @@ check_ht() { throttle_turbo() { [[ -f /sys/devices/system/cpu/intel_pstate/no_turbo ]] && \ printf "${XPSTURBO}" > /sys/devices/system/cpu/intel_pstate/no_turbo & + [[ -f /sys/devices/system/cpu/cpufreq/boost ]] && \ + printf "$((XPSTURBO ^= 1))" > /sys/devices/system/cpu/cpufreq/boost & } check_turbo() { [[ -f /sys/devices/system/cpu/intel_pstate/no_turbo ]] && \ echo -e "\nDisable Intel P-State Turbo\n/sys/devices/system/cpu/intel_pstate/\n"\ "no_turbo\t$(cat /sys/devices/system/cpu/intel_pstate/no_turbo)" + [[ -f /sys/devices/system/cpu/cpufreq/boost ]] && \ + echo -e "\nDisable CPUFreq Boost\n/sys/devices/system/cpu/cpufreq/\n"\ + "no_turbo\t$(cat /sys/devices/system/cpu/cpufreq/boost)" + } throttle_gov() { |