Turn off leds
Posted: 2026-04-17 12:51
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
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
Create S99disable_leds startup script
Allow run them to be executed by system
Now you can reboot, and leds will turn off.
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/brightnessIf 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
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
Code: Select all
chmod +x /root/disable_leds.sh
chmod +x /etc/init.d/S99disable_leds