reduced FSB support on EEE PCs with Intel Atom
profile: laptop-battery-powersave
This commit is contained in:
parent
58a2c0093d
commit
732e072dc0
1 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue