rachel wrote:I've written a simple daemon to automatically control the fan according to temperature.
GREAT Rachel!!
I did put it in /etc/rc.local (Ubuntu) but is not taking effect at boot time

-- however If I run that script it starts running and I can see it If I do:
- Code: Select all
pstree | grep acer
|-acerfand---sleep
I didn't create the conf file for the script as I think that default values are ok

I am very happy to see that our problem were resolved with our efforts

-- now the wiki page is a bit disorganized, Rachel, If you can, you can go ahead to clean it - just put as principal this daemon!!!
Eee pc have a great community (I have one) because we discuss on forums and finally we resume on wiki, but for AA1 is really bad because info is all disorganized

- principal links on main site is for forum messages which are a pain to read and conclude something

My rc.local file is:
- Code: Select all
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Economize the SSD
sysctl -w vm.swappiness=1 # Strongly discourage swapping
sysctl -w vm.vfs_cache_pressure=50 # Don't shrink the inode cache aggressively
# As in the rc.last.ctrl of Linpus
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
echo 3000 > /proc/sys/vm/dirty_writeback_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 1 > /sys/devices/system/cpu/sched_smt_power_savings
echo 10 > /sys/module/snd_hda_intel/parameters/power_save
echo 5 > /proc/sys/vm/laptop_mode
#Decrease power usage of USB while idle
[ -L /sys/bus/usb/devices/1-5/power/level ] && echo auto > /sys/bus/usb/devices/1-5/power/level
[ -L /sys/bus/usb/devices/5-5/power/level ] && echo auto > /sys/bus/usb/devices/5-5/power/level
#Automatic contro of the noisy fan
/usr/local/bin/acerfand
exit 0