2019-01-08 23:54:53 +00:00
|
|
|
# Defined in /tmp/fish.mndBU3/cpugov.fish @ line 2
|
2018-11-15 01:01:37 +00:00
|
|
|
function cpugov
|
2019-01-08 23:54:53 +00:00
|
|
|
echo -e "The current state is "(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
|
|
|
|
if [ (cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) != "performance" ]
|
2018-11-15 01:01:37 +00:00
|
|
|
s -i cpupower frequency-set -g performance >/dev/null
|
|
|
|
else
|
|
|
|
s cpupower frequency-set -g powersave >/dev/null
|
|
|
|
end
|
2019-01-08 23:54:53 +00:00
|
|
|
echo -e "The current state is "(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor)
|
2018-11-15 01:01:37 +00:00
|
|
|
end
|