You are looking at an old revision of the page LEDs. This revision was created by Nikolaus Schaller.
Table of Content
How to control the LEDs
LEDs on 2.6.32 kernel
are controlled through the TCA6507 driver.
LED numbers
The examples below all refer to LED 0. Substitute the correct LED number:
- 0: AUX - Red
- 1: AUX - Green
- 3: Power - Red
- 4: Power - Green
- 6: WLAN/Bluetooth Reset (active low - don't use blink or dimmed modes!)
LED on
echo "255" >/sys/class/leds/tca6507:0/brightness
LED permanently off
echo "0" >/sys/class/leds/tca6507:0/brightness
LED half brightness
echo "127" >/sys/class/leds/tca6507:0/brightness
LED dimming and blinking
- use $value between 1 and 15 for dimmed intensity
- use $value between 17 and 31 for blinking
Note: all LEDs share the same intensity value unless they are set to 0 or 255!
Example
make AUX button blink yellow (red+green)
echo 31 >/sys/class/leds/tca6507:0/brightness
echo 31 >/sys/class/leds/tca6507:1/brightness
make AUX button blink between red and yellow (red+green)
echo 255 >/sys/class/leds/tca6507:0/brightness
echo 31 >/sys/class/leds/tca6507:1/brightness
LEDs on 3.x kernel
are controlled through the TCA6507 driver.
LED numbers
tbd.
LED intensity
make LED blinking
modprobe ledtrig-timer
echo /sys/class/leds/gta04:whatever/
echo timer > trigger
echo 10000 > delay_off
echo 500 > delay_on
See also http://lists.goldelico.com/pipermail/gta04-owner/2011-December/001043.html