Debian Led


This article describes, how to enable the leds:

 

First obtain the kernel sources

 

 ss4200:# apt-get install linux-source-2.6.26

 ss4200:# cd /usr/src

 ss4200:/usr/src/linux-source-2.6.26# tar xvjf linux-source-2.6.26.tar.bz2

 ss4200:/usr/src# wget http://merkel.debian.org/~jurij/2.6.26-2/i386/config-2.6.26-1-686.gz                    #obtain standart kernel config

 ss4200:/usr/src# gunzip config-2.6.26-1-686.gz

 ss4200:/usr/src# mv config-2.6.26-1-686 .config

 ss4200:/usr/src# cd

 ss4200:/usr/src/linux-source-2.6.26# cd linux-source-2.6.26

 ss4200:/usr/src/linux-source-2.6.26# mv ../.config .

 ss4200:/usr/src/linux-source-2.6.26# make oldconfig

 

Answer all questions with yes

 

apply the patch from here.  It will hopefully be in the mainline kernel soon.

 

Brigtness control:

 

Load the i2c dme1737 smbus driver if not already loaded or built in.

# modprobe dme1737
# lsmod | grep dme
dme1737                39501  0 
hwmon_vid               3082  1 dme1737
hwmon                   1936  2 coretemp,dme1737
i2c_core               23284  2 dme1737,i2c_i801
# cd /sys/bus/i2c/drivers/dme1737/0-002e/
# chmod o+w pwm5
# echo 10 > pwm5
# sleep 5
# echo 255 > pwm5

You'll see the lights get dim then bright again.  These pwm outputs are
normally used for fans, but I guess they commandeered it to control the
LEDs in this case.