Vanilla kernel and fancontrol

Post Reply
Mijzelf
Posts: 6204
Joined: Mon Jun 16, 2008 10:45 am

Vanilla kernel and fancontrol

Post by Mijzelf » Sat May 28, 2011 12:04 pm

The 2Big2 is supported by the newer vanilla kernels (2.6.37+), and I'm running Debian Squeeze on an 2.6.39 kernel. Works fine.
However, the vanilla kernel doesn't support the fancontroller. The fan speed is regulated by an i2c attached chip. The driver is included in the Lacie GPL sources, and I adapted it to create a kernel module for the 2.6.39 kernel.

The fan speed can be adopted by echoing a value in a /sys/bus/... variable. As far as I could find, the Lacie fancontroller reads the temperature of the disk(s) to regularize the fan speed. Unfortunately reading this temperature also prevents the disk from entering sleep mode.
I wrote a script which can be used to regularize the fan speed, and put the disks in sleep mode, after some adjustable idle (=no read/write activity) time.

The module, script, build and activation instructions can be found here.

Post Reply