This is an old revision of the document!
Onboard LED indicators usage under Linux . You will learn how to control the LEDs.
| Device Node | |
|---|---|
| VIM1/2 | /sys/class/leds/sys_led |
| VIM3/3L | /sys/class/leds/red_led |
| /sys/class/leds/sys_led | |
| VIM4 | /sys/class/leds/pwmled |
| Edge1 | /sys/class/leds/red_led |
| /sys/class/leds/sys_led |
We will take sys_led (white) as an example.
Turn off
Set the LED node parameter to none to turn off the LED:
$ echo none | sudo tee /sys/class/leds/sys_led/trigger
Turn on
Set the LED node parameter to default-on to keep the LED permanently on:
$ echo default-on | sudo tee /sys/class/leds/sys_led/trigger
Set LED heartbeat
Set the LED node parameter to heartbeat, to make the LED flash with a heartbeat blink:
$ echo heartbeat > /sys/class/leds/sys_led/trigger
You can also try other parameters.
We will take pwmled (white) as an example.
Turn off
Set the LED node parameter to none to turn off the LED:
$ echo none | sudo tee /sys/class/leds/pwmled/trigger
Turn on
Set the LED node parameter to default-on, to make the LED permanently on:
$ echo default-on | sudo tee /sys/class/leds/pwmled/trigger
Set LED heartbeat
Set the LED node parameter to heartbeat, to make the LED flash with a heartbeat blink:
$ echo heartbeat > /sys/class/leds/pwmled/trigger
You can also experiment with other parameters.
We will use sys_led as an example:
Turn off
Set the LED node parameter to none to turn off the LED:
$ echo none | sudo tee /sys/class/leds/sys_led/trigger
Turn on
Set the LED node parameter to default-on to keep the LED permanently on:
$ echo default-on | sudo tee /sys/class/leds/sys_led/trigger
Set LED heartbeat
Set the LED node parameter to heartbeat, to make the LED flash with a heartbeat blink:
$ echo heartbeat > /sys/class/leds/sys_led/trigger
You can also experiment with other parameters.