Temat: Co macie na laptopach
Łukasz S.:
Kolego a możesz się ze mną podzielić swoją konfiguracją Laptop-Mode?
Jasne. Dolacze do watku w wolnej chwili.
Ponizsze skrypty wynalazlem w Internecie i troche dotuningowalem do konkretnego sprzetu i oczekiwan ;)
W /etc/pm/power.d/
99-power.sh
if on_ac_power; then
# Set the drive to mostly stay awake
hdparm -B 255 -S 240 -M 254 /dev/sda
# Remount ext3 filesystems so the journal commit only happens every 15s
mount -o remount,commit=15 /
# Turn off the laptop mode disk optimization
echo 0 > /proc/sys/vm/laptop_mode
# Manually set the wifi driver to no power savings.
echo 6 > /sys/bus/pci/drivers/iwlagn/0000\:04\:00.0/power_level
# Set kernel dirty page value back to default
echo 10 > /proc/sys/vm/dirty_ratio
echo 5 > /proc/sys/vm/dirty_background_ratio
# Only wakeup every 15 seconds to see if we need to write dirty pages
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
# Turn off sound card power savings
echo 0 > /sys/module/snd_hda_intel/parameters/power_save
# Set the SATA to max performance
echo max_performance > /sys/class/scsi_host/host0/link_power_management_policy
echo max_performance > /sys/class/scsi_host/host1/link_power_management_policy
# Setup CPU governor
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
# Enable CD polling
hal-disable-polling --device /dev/scd0 --enable-polling
# Re-enable ethernet link autonegotiation
ethtool -s eth0 autoneg on
else # Save power
# Set the disks to aggressively save power and use the lowest acoustic level
hdparm -B 1 -S 36 -M 128 /dev/sda
# Change the ext3 commit times to 5 minutes. This reduces disk
# activity
mount -o remount,commit=300 /
# Set laptop disk write mode
echo 5 > /proc/sys/vm/laptop_mode
# Manually set the iwl3945 driver to power savings.
echo 5 > /sys/bus/pci/drivers/iwlagn/0000\:04\:00.0/power_level
# Reduce disk activity by waiting up to 15 minutes before doing writes
echo 90 > /proc/sys/vm/dirty_ratio
echo 1 > /proc/sys/vm/dirty_background_ratio
echo 15000 > /proc/sys/vm/dirty_writeback_centisecs
# Set sound card power savings
echo 10 > /sys/module/snd_hda_intel/parameters/power_save
# Set SATA to minimum power
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
echo min_power > /sys/class/scsi_host/host1/link_power_management_policy
# Setup CPU governor
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo powersave > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
# Disable CD polling
hal-disable-polling --device /dev/scd0
# Set wired network card to 100Mbps, full-duplex
ethtool -s eth0 autoneg off speed 100 duplex full
fi
99-nvidia.sh
XUSER=username
if on_ac_power; then
DISPLAY=:0.0 su ${XUSER} -c "gconftool-2 --type boolean --set /apps/compiz/general/screen0/options/sync_to_vblank 1"
DISPLAY=:0.0 su ${XUSER} -c "gconftool-2 --type float --set /apps/compiz/plugins/wall/allscreens/options/slide_duration 0.3"
DISPLAY=:0.0 su ${XUSER} -c "nvidia-settings -q all > /dev/null"
else
DISPLAY=:0.0 su ${XUSER} -c "gconftool-2 --type boolean --set /apps/compiz/general/screen0/options/sync_to_vblank 0"
DISPLAY=:0.0 su ${XUSER} -c "gconftool-2 --type float --set /apps/compiz/plugins/wall/allscreens/options/slide_duration 0.1"
fi
Do tego jeszcze kernel z PHC i obnizone napiecie zasilania procesora (T7300):
/sys/devices/system/cpu/cpu*/cpufreq/phc_controls
11:26 10:22 8:18 6:16 136:11
Domyslnie Intel T7300 jest zasilany napieciem 0.85V do 1.30V miedzy 600MHz a 2GHz. Moj system dziala stabilnie na zakresie (jesli dobrze przeliczam powyzsze) 0.85V (600MHz) do 1.035V (2GHz).