LED

LED Nodes

VIM1/VIM2 has only one node.

1
2
$ ls /sys/class/leds
sys_led

VIM3/VIM3L has two nodes.

1
2
ls /sys/class/leds
red_led sys_led

VIM4 has only one node pwmled.

1
2
ls /sys/class/leds
pwmled

Setup LED

Lets use sys_led (white) as an example:

  • Turn off

Set the LED node parameter to none to turn off the LED:

1
$ 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:

1
$ 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:

1
$ echo heartbeat > /sys/class/leds/sys_led/trigger

You can also experiment with other parameters.

Lets use pwmled (white) as an example:

  • Turn off

Set the LED node parameter to none to turn off the LED:

1
$ echo none | sudo tee > /sys/class/leds/pwmled/trigger
  • Turn on

Set the LED node parameter to heartbeat, to make the LED flash with a heartbeat rhythm:

1
$ echo heartbeat | 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:

1
$ echo heartbeat > /sys/class/leds/pwmled/trigger

You can also experiment with other parameters.