r2753 - configs/daniel/desktop/config/chroot_local-includes/usr/local/bin
daniel at alioth.debian.org
daniel at alioth.debian.org
Mon Aug 13 11:34:57 UTC 2007
Author: daniel
Date: 2007-08-13 11:34:57 +0000 (Mon, 13 Aug 2007)
New Revision: 2753
Modified:
configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/cpufreqs
Log:
Modified: configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/cpufreqs
===================================================================
--- configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/cpufreqs 2007-08-13 10:33:01 UTC (rev 2752)
+++ configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/cpufreqs 2007-08-13 11:34:57 UTC (rev 2753)
@@ -12,8 +12,8 @@
then
echo "cpufreqs.sh - Setting cpu frequencies"
echo
- echo "Usage: `basename ${0}` {gov|per|use|ava|cur|man|max|min}"
- echo "Usage: `basename ${0}` {governor|performance|userspace|available|current|manual|maximal|minimal}"
+ echo "Usage: `basename ${0}` {gov|per|ond|use|ava|cur|man|max|min}"
+ echo "Usage: `basename ${0}` {governor|performance|ondemand|userspace|available|current|manual|maximal|minimal}"
exit 1
fi
@@ -61,6 +61,31 @@
done
;;
+ ond|ondemand)
+ for CPU in cpu*
+ do
+ cd /sys/devices/system/cpu/"${CPU}"/cpufreq
+
+ echo "${CPU}: current governor `cat scaling_governor`."
+
+ if [ "`cat scaling_governor`" = "ondemand" ]
+ then
+ echo "${CPU}: governor already set to `cat scaling_governor`."
+ else
+ cat scaling_available_governors | grep -q "ondemand"
+
+ if [ "${?}" = "0" ]
+ then
+ echo "ondemand" > scaling_governor
+ echo "${CPU}: governor set to `cat scaling_governor`."
+ else
+ echo "E: unavailable governor ondemand."
+ exit 1
+ fi
+ fi
+ done
+ ;;
+
use|userspace)
for CPU in cpu*
do
More information about the debian-live-changes
mailing list