| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Debian Led

Page history last edited by Wesha 13 years, 10 months ago

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.  

Comments (3)

andrey said

at 4:09 am on Dec 14, 2009

Hello,
sorry, but the instruction is not clear for me.
what are an exact steps needs to be done after 'make oldconfig'?
I successfully installed Debian 5.0.3 on my ss4200 and would like to disable power led blinking and to control leds brightness. It is possible?

andrey said

at 4:37 am on Dec 14, 2009

oops, I already found this one http://groups.google.com/group/ss4200/browse_thread/thread/bf46358c52b02f70#

But the questions are:
- what steps needs after 'make oldconfig'?
- And regarding to brightness control. My lsmod output
bigbox:/usr/src# lsmod |grep dme
dme1737 28988 0
hwmon_vid 2720 1 dme1737
i2c_core 19828 2 dme1737,i2c_i801
and I don't have cd /sys/bus/i2c/drivers/dme1737/0-002e/pwm5 file.
ls -la /sys/bus/i2c/drivers/dme1737/
total 0
drwxr-xr-x 2 root root 0 2009-12-13 23:18 .
drwxr-xr-x 4 root root 0 2009-12-13 23:18 ..
--w------- 1 root root 4096 2009-12-13 23:18 bind
lrwxrwxrwx 1 root root 0 2009-12-13 23:18 module -> ../../../../module/dme1737
--w------- 1 root root 4096 2009-12-13 23:18 uevent
--w------- 1 root root 4096 2009-12-13 23:18 unbind
What I do wrong?

Thank you in advance!

Ronald Pottol said

at 10:08 am on Jan 27, 2010

There is no brightness control, at least that's what http://lkml.org/lkml/2009/9/15/425 says in the notes for the driver. Ask the author nicely? Learn C and do it yourself?

Hey, at least they work. Brightness would be nifty though (say, load, or iostat, or something for input?).

You don't have permission to comment on this page.