Page 1 of 1

Turn off leds

Posted: 2026-04-17 12:51
by prohdr
In Settings --> hardware , there is no option to turn off leds , both from network activity.
The only way to do use CLI or terminal and turn off using

Code: Select all

echo none > /sys/class/leds/led:g/trigger
echo 0 > /sys/class/leds/led:g/brightness

echo none > /sys/class/leds/led:y/trigger
echo 0 > /sys/class/leds/led:y/brightness
Maybe you can add this feature in GUI.

If you need a workaraound to persist you can write some scripts:
- `/root/disable_leds.sh` — this script turn off leds
- `/etc/init.d/S99disable_leds` — startup script

Create disable_leds.sh script

Code: Select all

cat >/root/disable_leds.sh <<'EOF'
#!/bin/sh

echo none > /sys/class/leds/led:g/trigger
echo 0 > /sys/class/leds/led:g/brightness

echo none > /sys/class/leds/led:y/trigger
echo 0 > /sys/class/leds/led:y/brightness
EOF
Create S99disable_leds startup script

Code: Select all

cat >/etc/init.d/S99disable_leds <<'EOF'
#!/bin/sh

[ -f /etc/profile.d/RkEnv.sh ] && . /etc/profile.d/RkEnv.sh

LOG=/root/disable_leds_boot.log

case "$1" in
  start)
    (
      echo "===== START $(date) =====" >> "$LOG"
      sleep 10
      /root/disable_leds.sh >> "$LOG" 2>&1

      echo "--- after script ---" >> "$LOG"
      cat /sys/class/leds/led:g/trigger >> "$LOG" 2>&1
      cat /sys/class/leds/led:g/brightness >> "$LOG" 2>&1
      cat /sys/class/leds/led:y/trigger >> "$LOG" 2>&1
      cat /sys/class/leds/led:y/brightness >> "$LOG" 2>&1
    ) &
    ;;
  stop)
    ;;
  restart)
    $0 start
    ;;
  *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
    ;;
esac

exit 0
EOF
Allow run them to be executed by system

Code: Select all

chmod +x /root/disable_leds.sh
chmod +x /etc/init.d/S99disable_leds
Now you can reboot, and leds will turn off.

Re: Turn off leds

Posted: 2026-04-27 3:58
by Crocodile
Thank you for your feedback. We will add this feature in the next release.