Hi all
I am using Coreelec 9.0.3 stable on a SD card and the hardware is a Mecool KIII Pro S912 3GB. I have used the gxm_q200_k3_pro.dtb and everything is working fine for me.
I have a requirement where I need to enable/disable the system LED or change the color from BLUE to RED to indicate a custom status.
By default, you do not have access to the led class in this release as /sys/class/leds folder is empty.
I then load the default led_sys kernel module included in the Coreelec release:
insmod /var/lib/modules/3.14.29/kernel/drivers/amlogic/led/led_sys.ko
And now I can see the class:
#ls /sys/class/leds/led-sys/
brightness device/ max_brightness power/ subsystem/ trigger uevent
But I am unable to control the LED and the LED always stay BLUE, for example from past experience:
echo 0 > /sys/class/leds/led-sys/brightness
echo 1 > /sys/class/leds/led-sys/brightness
should disable or enable the LED, but on the KIII Pro, it always stays BLUE.
echo heartbeat > /sys/class/leds/diy-led/trigger
should make the LED flash on and off, but it also does not work.
Has anyone managed to control the LED on the KIII Pro? I am using the wrong kernel module?
When you shut down the device, the LED turns RED so there must be a way to control it.
Thanks.