summarylogtreecommitdiffstats
path: root/throttlectl
diff options
context:
space:
mode:
authorQue Quotion2022-02-20 11:15:34 +0900
committerQue Quotion2022-02-20 11:38:23 +0900
commit96fea140b59489838a17b0d0dbcf81ec5953f77c (patch)
tree11a5f44971f7df05bbb6fd971e859deae5e59e17 /throttlectl
parentded4bdf7f398a1d65bc733d9e235848327dcf2d7 (diff)
downloadaur-96fea140b59489838a17b0d0dbcf81ec5953f77c.tar.gz
Add 'systemstate' to track system-wide runtime pm state (technically a cheat, but how else?)
Diffstat (limited to 'throttlectl')
-rwxr-xr-xthrottlectl2
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