Switch to root user
Only the root user has the authority to control and modify the node status of the LEDs.
1 | khadas@Khadas:~$ su |
Check LED Node
VIM1 has only one node.
1 | root@Khadas:/home/khadas# cd /sys/class/leds/ |
VIM2 has only one node.
1 | root@Khadas:/home/khadas# cd /sys/class/leds/ |
VIM3/VIM3L has two nodes.
1 | root@Khadas:/home/khadas# cd /sys/class/leds/ |
How To Use
Here takes sys_led
as an example:
1 | root@Khadas:/sys/class/leds# cd sys_led |
Check the parameters:
1 | root@Khadas:/sys/class/leds/sys_led# cat trigger |
- Turn off
Set none
parameter to turn off the LED:
1 | root@Khadas:/sys/class/leds/sys_led# echo none > trigger |
- Turn on
Set default-on
parameter to turn off the LED:
1 | root@Khadas:/sys/class/leds/sys_led# echo default-on > trigger |
Set heartbeat
to make the LED heartbeat flash:
1 | root@Khadas:/sys/class/leds/sys_led# echo heartbeat > trigger |
You can also try other parameters.