Difference between revisions of "LED"

From FriendlyELEC WiKi
Jump to: navigation, search
(Created page with "查看中文")
 
(updated by API)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
[[LED/zh|查看中文]]
 
[[LED/zh|查看中文]]
 +
 +
==H3/H5==
 +
The onboard status LEDs are all heartbeat status by default, and you can check the relevant settings with the following command:
 +
<syntaxhighlight lang="bash">
 +
$ cat /sys/class/leds/status_led/trigger
 +
none rc-feedback rfkill-any kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalockk
 +
kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrll
 +
ock kbd-ctrlllock kbd-ctrlrlock usbport usb-gadget usb-host mmc1 mmc2 mmc0 timerr
 +
oneshot disk-activity ide-disk mtd nand-disk [heartbeat] backlight gpio cpu cpuu
 +
0 cpu1 cpu2 cpu3 default-on transient flash torch panic netdev rfkill0 stmmac-0::
 +
00:1Gbps stmmac-0:00:100Mbps stmmac-0:00:10Mbps
 +
</syntaxhighlight>
 +
 +
[heartbeat]means that the default triggering mode of the LED is heartbeat.<br>
 +
Example: Execute the following command to keep the LED always on:
 +
<syntaxhighlight lang="bash">
 +
echo default-on > /sys/class/leds/status_led/trigger
 +
</syntaxhighlight>

Latest revision as of 11:05, 9 September 2021

查看中文

H3/H5

The onboard status LEDs are all heartbeat status by default, and you can check the relevant settings with the following command:

$ cat /sys/class/leds/status_led/trigger
none rc-feedback rfkill-any kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalockk
 kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrll
ock kbd-ctrlllock kbd-ctrlrlock usbport usb-gadget usb-host mmc1 mmc2 mmc0 timerr
 oneshot disk-activity ide-disk mtd nand-disk [heartbeat] backlight gpio cpu cpuu
0 cpu1 cpu2 cpu3 default-on transient flash torch panic netdev rfkill0 stmmac-0::
00:1Gbps stmmac-0:00:100Mbps stmmac-0:00:10Mbps

[heartbeat]means that the default triggering mode of the LED is heartbeat.
Example: Execute the following command to keep the LED always on:

echo default-on > /sys/class/leds/status_led/trigger