Originally Posted by
fmarcia
Could you share your parameters, Miegiel?
I struggled with laptop-mode and parameters from Riskable and
there but could not get my laptop under 8-9W (powertop measurement)!
And everytime I reboot, almost everything is gone
Thanks.
Hmmm, it's messy, but when I go off the power grid I run 2 scripts I found somewhere in the forums. I really need figure out what they exactly do to put them in 1 script.
edit :
I should add that I use conky to
Code:
cat /proc/acpi/battery/BAT0/state | grep rate: | awk '{print $3}'
the mA drawn from my battery onto my desktop. But that's only when running on the battery, plugged in it displays the battery charging rate. I'm not sure how powertop ant cating /proc/acpi/battery/BAT0/state compare.
Oh, and I have the 3810T with the SU9400 core duo without the ATI graphics.
Anyway, here they are :
Code:
#!/bin/sh
sudo su -c "echo 5 > /proc/sys/vm/laptop_mode"
sudo su -c "echo min_power > /sys/class/scsi_host/host0/link_power_management_policy"
sudo su -c "echo min_power > /sys/class/scsi_host/host1/link_power_management_policy"
sudo su -c "echo min_power > /sys/class/scsi_host/host2/link_power_management_policy"
sudo su -c "echo min_power > /sys/class/scsi_host/host3/link_power_management_policy"
sudo su -c "echo min_power > /sys/class/scsi_host/host4/link_power_management_policy"
sudo su -c "echo min_power > /sys/class/scsi_host/host5/link_power_management_policy"
sudo su -c "echo 500 > /proc/sys/vm/dirty_writeback_centisecs"
sudo laptop_mode start
# sudo hdparm -S 4 /dev/sda
sudo iwconfig wlan0 power on
run with sudo
Code:
#!/bin/bash
# Author: Riskable
# http://ubuntuforums.org/showthread.php?p=8736103#post8736103
#
# Description: Enables every power saving feature I know of
#
# Enable Intel HD Audio power saving
echo 10 > /sys/module/snd_hda_intel/parameters/power_save
echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller
echo 1 > /dev/dsp # Gotta make a sound to turn it on
# Enable various kernel power saving features
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
# Enable SATA power management
for i in /sys/class/scsi_host/*; do echo "min_power" > $i/link_power_management_policy; cat $i/link_power_management_policy; done
# Enable Wifi power management
/sbin/iwconfig wlan0 power on
# Enable the most aggressive hard drive power savings
hdparm -B 1 -S 12 /dev/sda # Note: May not work on the Acer Timeline's hard drive
# Use tmpfs (RAM disk) for /tmp
echo "tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0" >> /etc/fstab
And yeah, need to run them again after a reboot.
Bookmarks