From e5ac4c6608b95a7e08c219d415484ebae744342c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 3 Apr 2011 20:47:01 +0200 Subject: Add ondemand/powersave functions --- etc/.zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/.zshrc b/etc/.zshrc index 2661061..07bf402 100644 --- a/etc/.zshrc +++ b/etc/.zshrc @@ -181,6 +181,12 @@ function Status Start Stop Restart Reload { } } +function ondemand powersave { + for cpu (/sys/devices/system/cpu/cpu?); do + sudo cpufreq-set -c ${${cpu:t}#cpu} -g ${0} + done +} + # }}} # {{{ ZLE -- cgit v1.2.3