Difference between revisions of "LED"
From FriendlyELEC WiKi
Line 3: | Line 3: | ||
==H3/H5== | ==H3/H5== | ||
板载status LED默认都是心跳灯状态,通过下面的命令可以查看相关的设置: | 板载status LED默认都是心跳灯状态,通过下面的命令可以查看相关的设置: | ||
+ | <syntaxhighlight lang="bash"> | ||
$ cat /sys/class/leds/status_led/trigger | $ cat /sys/class/leds/status_led/trigger | ||
none rc-feedback rfkill-any kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalockk | none rc-feedback rfkill-any kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalockk | ||
Line 10: | Line 11: | ||
0 cpu1 cpu2 cpu3 default-on transient flash torch panic netdev rfkill0 stmmac-0:: | 0 cpu1 cpu2 cpu3 default-on transient flash torch panic netdev rfkill0 stmmac-0:: | ||
00:1Gbps stmmac-0:00:100Mbps stmmac-0:00:10Mbps | 00:1Gbps stmmac-0:00:100Mbps stmmac-0:00:10Mbps | ||
+ | <syntaxhighlight> | ||
+ | |||
[heartbeat]表示该 LED 的默认触发方式为心跳状态,通过改变trigger节点的值就可以改变LED的触发方式。<br> | [heartbeat]表示该 LED 的默认触发方式为心跳状态,通过改变trigger节点的值就可以改变LED的触发方式。<br> | ||
举例执行下面的命令可以让LED 保持常亮: | 举例执行下面的命令可以让LED 保持常亮: | ||
+ | <syntaxhighlight lang="bash"> | ||
echo default-on > /sys/class/leds/status_led/trigger | echo default-on > /sys/class/leds/status_led/trigger | ||
+ | <syntaxhighlight> |
Revision as of 03:33, 30 October 2019
H3/H5
板载status LED默认都是心跳灯状态,通过下面的命令可以查看相关的设置:
$ 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]表示该 LED 的默认触发方式为心跳状态,通过改变trigger节点的值就可以改变LED的触发方式。<br> 举例执行下面的命令可以让LED 保持常亮: <syntaxhighlight lang="bash"> echo default-on > /sys/class/leds/status_led/trigger <syntaxhighlight>