Skip to content

Instantly share code, notes, and snippets.

@emmaly
Created November 24, 2016 08:30
Show Gist options
  • Save emmaly/c5e97efcd49468930dcbf9371a85ad86 to your computer and use it in GitHub Desktop.
Save emmaly/c5e97efcd49468930dcbf9371a85ad86 to your computer and use it in GitHub Desktop.
Turris Omnia LED Notes
# to make the LED attributes writable by all users (for example, if writing to them via LXC container non-root users)
chmod 666 /sys/class/leds/omnia-led\:*/{autonomous,brightness,color}
# to make the LEDs controlled via attributes directly:
echo 0 > /sys/class/leds/omnia-led\:user1/autonomous
# replace "user1" with whatever specific LED you're wanting to control
# to set the color: (it's RGB in decimal, not hex)
echo "0 255 0" > /sys/class/leds/omnia-led\:user1/color
# to set the brightness:
echo 255 > /sys/class/leds/omnia-led\:user1/brightness
# Yes, you can override all of the LEDs, even the power LED. It does not appear that doing so interferes with the usual operation of the router.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment