How to control LED color & brightness, how to set all LEDs low brightness, or off, and survive reboots

Short story: For all LEDs turn off, enter value 000000 for all LEDs Rainbow settings.

Long story:

  1. clean all content of /etc/config/rainbow (preferably use WinSCP, open the file, delete all content, save, so the file will show size 0 KB)

  2. from /etc/config/system delete all relevant entries (config led sections)
    It needs to be done via files instead of commandline or LUCI, because the config brought over from previous versions is not compatible, hence cannot be removed/fixed by LUCI and commandline.

  3. Reboot. Now you should see Power shining green, LAN and WAN (whatever you have connected) white, at max brightness, other LED including WIFI are off even when WIFI is working fine. If you see different setup, you have some other unknown configuration applied somewhere. In such case, you may want to perform factory reset https://docs.turris.cz/hw/omnia/rescue-modes/#re-flash-router to start with latest version from scratch.

  4. go to http://192.168.1.1/cgi-bin/luci/admin/system/leds and Add LED Action:

for Power LED:

Name: [blank, is not needed]
LED Name: rgb:power
Trigger: Always on

for WAN:

LED Name: rgb:wan
Trigger: Network device activity kernel netdev
Device: eth2
Trigger mode: Transmit Receive

for LAN:

LED Name: rgb:lan-0
Trigger: Network device activity kernel netdev
Device: lan0
Trigger mode: Transmit Receive

for LAN 1 to 4 accordingly, if you have it connected.

Now go to http://192.168.1.1/cgi-bin/luci/admin/system/rainbow
Add entries for Power, LAN0 (LAN 1 to 4 if you have it connected), WAN:

Color: custom - 010000

where the numbers represent RGB level in hex - as RRGGBB, from 00 to ff for respective color. Therefore 000000 means black = off, and 010000 is lowest red, 000100 lowest green, 000001 lowest blue.
I prefer the Power LED be off (value 000000), since Power light is not necesary because there are other LEDs shining that imply there must be power on.

Here is content of config files if you prefer editing them directly, using WinSCP:

/etc/config/rainbow

config led 'power'
	option status 'auto'
	option color '000000'

config led 'wan'
	option status 'auto'
	option color '010000'

config led 'lan_0'
	option status 'auto'
	option color '000100'

/etc/config/system

config led
	option sysfs 'rgb:power'
	option trigger 'default-on'

config led
	option sysfs 'rgb:wan'
	option trigger 'netdev'
	option dev 'eth2'
	list mode 'rx'
	list mode 'tx'

config led
	option sysfs 'rgb:lan-0'
	option trigger 'netdev'
	option dev 'lan0'
	list mode 'rx'
	list mode 'tx'
2 Likes