At Sat, 09 Jan 2010 16:55:08 +0000, Richard Lewis wrote:
Hi ALUG,
I'm just trying to replace acerfand http://www.electronpusher.org/~rachel/acerfand with acerhdf http://www.piie.net/index.php?section=acerhdf on my Acer Aspire One.
The module comes with my kernel (Debian 2.6.31-1-686), is loaded, and reports the current temperature correctly. However, I can't enable the automatic fan control because, when I try and write "enabled" to /sys/class/thermal/thermal_zone0/mode it says "Permission denied":
$ sudo echo "enabled" -n >/sys/class/thermal/thermal_zone0/mode bash: /sys/class/thermal/thermal_zone0/mode: Permission denied
Or,
# echo "enabled" -n > /sys/class/thermal/thermal_zone0/mode bash: echo: write error: Invalid argument
I even tried switching to runlevel 1 and I still get the "Invalid argument" error.
Any ideas why I can't write to this file? Or how to make it work?
OK forget that, I copied the echo command directly from the README and didn't notice that the -n switch was in the wrong place.
School boy.