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 | |
parent | 0b9dbc19f8b0442ef446191daedf9ba6b6693d5e (diff) | |
download | aur-51c0a8395e77260aea32317e584ca56a6c360f96.tar.gz |
cover CPUFreq Boost as well as Intel PState Turbo
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rwxr-xr-x | throttlectl | 8 |
3 files changed, 11 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = throttlectl pkgdesc = Command-line user discretion power managment utility - pkgver = 10 + pkgver = 11 pkgrel = 1 url = https://bbs.archlinux.org/viewtopic.php?id=180762 arch = any @@ -20,7 +20,7 @@ pkgbase = throttlectl source = performance source = systemstate source = powermizer - sha512sums = 753dac177006079a8269728375999a16d139aa4cd7ba67702675e7b76f7c84ffd630832750a26f7f0539b6f881d67403f77585e65d795bf0f2daf52e85178087 + sha512sums = 454afc229e60c64e74280c0eea64e5dd838f5c428c0aa13dd47e12c6b58d4477f7b2318a085bffc0b3df6550a80fc95d11f2b45aa64235b8fbb766c31d1a88d7 sha512sums = 6254e73446a91ea7945b9e4db1a1047eb2055d93aee315006857711ab21cba140da3badcf5834d2628e4799494a069647d11aa378a9bac67691df8d8b3adc12f sha512sums = 926f7c787aea8c1027f331fe2e9417ba8e4f15a79f51610baafeed5d0de86d8f41da92f4460c29a5ce251e7cc110e26c2c344931af91949dc529595cc18c0f0e sha512sums = 0d90ae4c0b9600f50ffd3e2c1a03b49d2fbdb9a2d14c8211e86463787549ada156498f68989d851952fe34660daaacc11242f5ee9e9e318f3d2a3eba0971eb53 @@ -1,7 +1,7 @@ # Maintainer: Que Quotion <quequotion@mailinator.com> pkgname=throttlectl -pkgver=10 +pkgver=11 pkgrel=1 pkgdesc="Command-line user discretion power managment utility" arch=('any') @@ -16,7 +16,7 @@ source=('throttlectl' 'performance' 'systemstate' 'powermizer') -sha512sums=('753dac177006079a8269728375999a16d139aa4cd7ba67702675e7b76f7c84ffd630832750a26f7f0539b6f881d67403f77585e65d795bf0f2daf52e85178087' +sha512sums=('454afc229e60c64e74280c0eea64e5dd838f5c428c0aa13dd47e12c6b58d4477f7b2318a085bffc0b3df6550a80fc95d11f2b45aa64235b8fbb766c31d1a88d7' '6254e73446a91ea7945b9e4db1a1047eb2055d93aee315006857711ab21cba140da3badcf5834d2628e4799494a069647d11aa378a9bac67691df8d8b3adc12f' '926f7c787aea8c1027f331fe2e9417ba8e4f15a79f51610baafeed5d0de86d8f41da92f4460c29a5ce251e7cc110e26c2c344931af91949dc529595cc18c0f0e' '0d90ae4c0b9600f50ffd3e2c1a03b49d2fbdb9a2d14c8211e86463787549ada156498f68989d851952fe34660daaacc11242f5ee9e9e318f3d2a3eba0971eb53' 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() { |