1
0
Fork 0

reduced FSB support on EEE PCs with Intel Atom

profile: laptop-battery-powersave
This commit is contained in:
Jan Vcelak 2010-11-29 19:05:35 +01:00
parent 58a2c0093d
commit 732e072dc0

View file

@ -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
}