UGREEN LEDs (node10, node11)¶
node10 and node11 are UGREEN NASync DXP2800 GT boxes (AMD Ryzen Embedded R2514) running Proxmox VE in the home-cluster.
Unlike the Intel UGREEN models, the GT has no I2C LED controller: LEDs, fans and temperature
sensors are behind a CS201x Super-I/O EC (ports 0x2e/0x2f, chip ID 0x2011). The I2C tools
(led-ugreen, ugreen-led-complete) do not work on it; see
miskcoo/ugreen_leds_controller#123.
| Hosts | group ugreen_nas in inventory/00-static.yml |
| Deployed by | ansible-playbook playbooks/ugreen_leds.yml (role ugreen_leds), or the deploy workflow with ugreen_leds.yml |
| Driver | ug201x (DKMS), UGREEN's GPL ug_201x.c + leds-sio-201x.c, sources in roles/ugreen_leds/files/ug201x/ |
| LED logic | ugreen-ledd.service (/usr/local/sbin/ugreen-ledd, config /etc/ugreen-ledd.json) |
What the LEDs show¶
| LED | Meaning |
|---|---|
| power | on (white) |
| disk1, disk2 | green while a disk is in the bay, blinking on I/O; red = SMART health failed; off = bay empty |
| network_stat | blue while the uplink (physical port under vmbr0) has a link, blinking on traffic |
Colours and slots: roles/ugreen_leds/defaults/main.yml (colour index 1 white, 2 orange,
3 red, 4 green, 5 blue).
Driver¶
- Sources: UGREEN's kernel-6.12
release, with the
hwmonpatch from ste69008/ugreen_dxp2800gt-truenas. Provenance infiles/ug201x/README.md. - Watchdog off. The driver also has the EC's hardware watchdog. Here it is only registered
with
ugreen_led_register_watchdog: true, because Proxmox HA (watchdog-mux) opens/dev/watchdog0and must keep using softdog. - Fans and temperatures show up as hwmon chip
ug201x(fan1CPU,fan2system,temp1CPU,temp2board), so node_exporter picks them up. The role does not touch the fan duty: the BIOS sets 60 % at boot and the EC has no automatic curve. - Kernel upgrades:
proxmox-default-headerspulls in the new headers and DKMS rebuilds (AUTOINSTALL=yes). - Secure Boot: if it is on, the DKMS module must be signed with an enrolled MOK, or it will not load.
Operations¶
systemctl status ugreen-ledd
journalctl -u ugreen-ledd # shows which disk is in which slot
ls /sys/class/leds/ # power, network_stat, disk1, disk2
dkms status -m ug201x # must show the running kernel as installed
dmesg | grep -i 201x # "Found chip 201x"
cat /proc/it86/temp /proc/it86/fan
sensors ug201x-* # if lm-sensors is installed
Do not run ugreen_leds_cli or other tools that write the EC directly next to the
driver: they bypass its cached state and its lock.
Disk mapping¶
Default disk1: ata1, disk2: ata2. Check once per box: journalctl -u ugreen-ledd lists the
disk per slot; read from one disk (dd if=/dev/sdX of=/dev/null bs=1M count=2000) and watch which
LED blinks. If swapped, change it per host:
# inventory/host_vars/node10.yml
ugreen_led_slots:
disk1: ata2
disk2: ata1
# or by serial: {disk1: "serial:WD-ABC123", disk2: "serial:WD-DEF456"}
Removing¶
systemctl disable --now ugreen-ledd
modprobe -r ug201x
dkms remove -m ug201x -v 1.0 --all
rm -r /usr/src/ug201x-1.0 /etc/modules-load.d/ug201x.conf /etc/modprobe.d/ug201x.conf \
/etc/systemd/system/ugreen-ledd.service /usr/local/sbin/ugreen-ledd /etc/ugreen-ledd.json
After removal the EC takes the LEDs back at the next boot (boot animation).