From 7e0c830d5e81734e5b7065a4782c8f57339b1988 Mon Sep 17 00:00:00 2001 From: hackwa Date: Tue, 2 Feb 2016 21:34:05 -0700 Subject: [PATCH] add cpu frequency scaling --- zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index ecb7c1e..44bf4f3 100644 --- a/zshrc +++ b/zshrc @@ -169,7 +169,8 @@ alias super='sudo sudo su -' alias gomu='sudo /sbin/ip a' alias luff='ssh root@95.85.45.177 -D 9999' alias tmux="TERM=screen-256color-bce tmux" - +alias powerdown="echo 700000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;echo 1000000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq" +alias powerup="echo 2400000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;echo 2400000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq" #if [[ $TERM == screen]; then #function precmd() {