-
-
- Posts: 11
- Joined: 2025-10-20 21:27
Hey I am guessing that I can manually modify the device tree in order to disable the LED, but I was wondering if there is a way from userspace?
I figure that if nothing else, it could be a good upgrade to `luckfox-config` if it is overlay-only.
Any instructions would be appreciated, and I can make manual modifications to luckfox-config in my copy if needed
Best,
-
- Posts: 120
- Joined: 2025-07-18 8:22
Hello, the user space shutdown indicator can be controlled through the sysfs interface or the gpiod tool.
-
- Posts: 11
- Joined: 2025-10-20 21:27
Hi yangxj121,
I do not fully understand sorry! I want to turn off the red system LED, but cannot see how to?
Thank you kindly
-
- Posts: 120
- Joined: 2025-07-18 8:22
Hello,If you want to turn off the red indicator light on the board, you can directly modify the "sys/class/led" directory to disable it, or disable the "led" node in the device tree.
-
- Posts: 11
- Joined: 2025-10-20 21:27
Thank you. Is there no /etc/luckfox.cfg option or /etc/init.d/ file that can be easily changed so that it does not turn on after reboot?
I can modify the device tree if need be, but I rather use factory image, hence I thought adding it to `luckfox-config` could be good (which modifies device tree anyway)
-P
-
- Posts: 3
- Joined: 2026-05-25 20:08
To disable the LED using sysfs as suggested previously:
Code: Select all
echo 'none' > /sys/devices/platform/leds/leds/work-led/trigger
There appear to be other modes of LED operation, i.e. caps lock/num lock/etc. The available options can be found by running:
Code: Select all
cat /sys/devices/platform/leds/leds/work-led/trigger
Only one option can be used at a time.
-
- Posts: 3
- Joined: 2026-05-25 20:08
Sorry I missed the previous responses. You can muck around with the device tree and set the LED behavior "none" instead of disabling it entirely. I found in <sdk_loc>/kernel-6.1/arch/arm/boot/dts/rk3506-luckfox-lyra.dtsi, there's a section that says
Code: Select all
leds: leds {
compatible = "gpio-leds";
work_led: work-led {
gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};
};
I'd imagine if you change "heartbeat" to "none" that would solve your problem.