Nanopi R5C led lights not staying on

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | 9.7.1
  • Distro version | bookworm
  • Kernel version | 6.6.44-current-rockchip64l
  • Architecture | arm64
  • SBC model | NanoPi R5S/R5C (aarch64) or (EG: RPi3)
  • Power supply used | 5V3A
  • SD card used | emmc

Steps to reproduce

  1. LED lights don’t stay on after reboot.
  2. There is no LAN traffic indicstor option (or netdev doesn’t show)

Expected behaviour

Actual behaviour

Extra details

Added by DietPi:

This is saved in dietpi-led_control.rules, it works after setting, but on reboot, only the red heartbeat is on.


SUBSYSTEM=="leds", KERNEL=="green:lan", ACTION=="add", ATTR{trigger}="r8169-1-100:00:link"
SUBSYSTEM=="leds", KERNEL=="green:wlan", ACTION=="add", ATTR{trigger}="hci0-power"

this is the content of dietpi-eth-leds.rules



SUBSYSTEM=="leds", KERNEL=="wan_led", ACTION=="add", ATTR{trigger}="netdev", ATTR{device_name}="eth0", ATTR{link}="1", ATTR{rx}="1", ATTR{tx}="1", RUN+="/bin/ip l >
SUBSYSTEM=="leds", KERNEL=="lan1_led", ACTION=="add", ATTR{trigger}="netdev", ATTR{device_name}="eth1", ATTR{link}="1", ATTR{rx}="1", ATTR{tx}="1", RUN+="/bin/ip l>

probably something @MichaIng could help with

Oh, LED device names changed from vendor kernel to mainline kernel? Let me check on NanoPi R5S.

root@NanoPiR5S:~# l /sys/class/leds/
total 0
lrwxrwxrwx 1 root root 0 Jan  1  1970 green:lan-1 -> ../../devices/platform/gpio-leds/leds/green:lan-1
lrwxrwxrwx 1 root root 0 Jan  1  1970 green:lan-2 -> ../../devices/platform/gpio-leds/leds/green:lan-2
lrwxrwxrwx 1 root root 0 Jan  1  1970 green:wan -> ../../devices/platform/gpio-leds/leds/green:wan
lrwxrwxrwx 1 root root 0 Jan  1  1970 mmc1:: -> ../../devices/platform/fe310000.mmc/leds/mmc1::
lrwxrwxrwx 1 root root 0 Jan  1  1970 red:power -> ../../devices/platform/gpio-leds/leds/red:power

Okay fixed for next release: v9.8 · MichaIng/DietPi@e7131f8 · GitHub

You can apply this config:

cat << '_EOF_' > /etc/udev/rules.d/dietpi-eth-leds.rules
SUBSYSTEM=="leds", KERNEL=="green:lan", ACTION=="add", ATTR{trigger}="netdev", ATTR{device_name}="eth0", ATTR{link}="1", ATTR{rx}="1", ATTR{tx}="1", RUN+="/bin/ip l s up dev eth0", RUN+="/bin/ip l s down dev eth0"
SUBSYSTEM=="leds", KERNEL=="green:wan", ACTION=="add", ATTR{trigger}="netdev", ATTR{device_name}="eth1", ATTR{link}="1", ATTR{rx}="1", ATTR{tx}="1", RUN+="/bin/ip l s up dev eth1", RUN+="/bin/ip l s down dev eth1"
SUBSYSTEM=="leds", KERNEL=="green:wlan", ACTION=="add", ATTR{trigger}="netdev", ATTR{device_name}="wlan0", ATTR{link}="1", ATTR{rx}="1", ATTR{tx}="1", RUN+="/bin/ip l s up dev wlan0", RUN+="/bin/ip l s down dev wlan0"
_EOF_

It assigns the WiFi LED as well.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.