From 732e072dc06306ac1c02713ade78a34a73da98dd Mon Sep 17 00:00:00 2001 From: Jan Vcelak Date: Mon, 29 Nov 2010 19:05:35 +0100 Subject: [PATCH] reduced FSB support on EEE PCs with Intel Atom profile: laptop-battery-powersave --- tune-profiles/laptop-battery-powersave/ktune.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tune-profiles/laptop-battery-powersave/ktune.sh b/tune-profiles/laptop-battery-powersave/ktune.sh index b0b2896..a71519f 100755 --- a/tune-profiles/laptop-battery-powersave/ktune.sh +++ b/tune-profiles/laptop-battery-powersave/ktune.sh @@ -72,6 +72,12 @@ start() { # Enable power saving mode for Wi-Fi cards for i in /sys/bus/pci/devices/*/power_level ; do echo 5 > $i ; done > /dev/null 2>&1 + # Set reduced FSB on EEE PCs with Inte Atom + if [ -e /sys/devices/platform/eeepc/she ]; then + echo 2 > /sys/devices/platform/eeepc/she + elif [ -e /sys/devices/platform/eeepc/cpufv ]; then + echo 2 > /sys/devices/platform/eeepc/cpufv + fi return 0 } @@ -125,6 +131,13 @@ stop() { # Reset power saving mode for Wi-Fi cards for i in /sys/bus/pci/devices/*/power_level ; do echo 0 > $i ; done > /dev/null 2>&1 + # Set normal FSB on EEE PCs with Inte Atom + if [ -e /sys/devices/platform/eeepc/she ]; then + echo 1 > /sys/devices/platform/eeepc/she + elif [ -e /sys/devices/platform/eeepc/cpufv ]; then + echo 1 > /sys/devices/platform/eeepc/cpufv + fi + return 0 }