If we wanted to (temporarily) assign a default-on trigger to the led, we would echo "default-on" > /sys/class/leds/tp-link:green:qss/trigger switch0 timer default-on netdev usbdev phy0rx phy0tx phy0assoc phy0radio phy0tpt cat /sys/class/leds/tp-link:green:qss/trigger Depending on the trigger, additional options must be specified.įirst of all, you need to know which triggers are available for a led, to do that simply look at the trigger file of that led. The LED can be controlled by various events in the system, which is selected by the trigger option. In this case, you will find one entry per ls /sys/class/leds/ The name of an entry typically consists of the name of the hardware providing the LED (the router model), the color of the LED, and it’s designation (usually the label on the case). ![]() ![]() You can check which LEDs are available in the /sys/class/leds directory. All LEDs are represented by entries in the sys filesystem.
0 Comments
Leave a Reply. |