diff options
author | Que Quotion | 2022-02-20 11:15:34 +0900 |
---|---|---|
committer | Que Quotion | 2022-02-20 11:38:23 +0900 |
commit | 96fea140b59489838a17b0d0dbcf81ec5953f77c (patch) | |
tree | 11a5f44971f7df05bbb6fd971e859deae5e59e17 /throttlectl | |
parent | ded4bdf7f398a1d65bc733d9e235848327dcf2d7 (diff) | |
download | aur-96fea140b59489838a17b0d0dbcf81ec5953f77c.tar.gz |
Add 'systemstate' to track system-wide runtime pm state (technically a cheat, but how else?)
Diffstat (limited to 'throttlectl')
-rwxr-xr-x | throttlectl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/throttlectl b/throttlectl index 1bd613f8fdc8..420373c882fd 100755 --- a/throttlectl +++ b/throttlectl @@ -278,9 +278,11 @@ while (( "$#" )); do case "${1}" in cut|powersave|start) [[ -f /etc/throttle.d/powersave ]] && . /etc/throttle.d/powersave || config_help + printf "0" > /etc/throttle.d/systemstate ;; full|performance|stop) [[ -f /etc/throttle.d/performance ]] && . /etc/throttle.d/performance || config_help + printf "1" > /etc/throttle.d/systemstate ;; esac |