Letux Kernel

LEDs

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

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