(05-09-2018, 08:05 PM)mr.travo Wrote:(04-19-2018, 05:25 AM)pfeerick Wrote: As t4_4t commented above, the green led is coupled directly to the 5v input to indicate power is present, so you can't control that!
If you do a ...
Code:sudo sh -c "echo 'mmc0' > /sys/devices/platform/leds/leds/standby-led/trigger"
... that should make the red led flash when there is activity on the eMMC. Change standby-led to power-led if you want the white one to flash. Replace mmc0 with mmc1 if you are using a SD card. Note that it only flash when there is activity on the specified device, not when there is activity on other devices (i.e. it will only flash when there is activity on the microSD if set to mmc1, and will not flash if it was set to mmc0).
I'll leave it to someone else to explain how to make it stick... as this setting will be lost on reboot. DTS overlay? Or just shove it in rc.local?
Thank you for this! I have been playing around with this trying to figure a way out to getting the sda1 drive to trigger the red stand-by light. I went ahead and put sda and sda1 in the trigger file but the save won't hold. I go through the motions of savings and then when I am done, I pull another cat on trigger and it shows it as unchanged. Any idea what I am doing wrong? Is it pulling that data from somewhere else?
Thanks!
~T
SDA? Is that in the list of valid triggers? It certainly wasn't on my system, as shown further up this thread. If it's not in that list, you can push it all you like, it'll probably be ignored as an invalid option.
Code:
cat /sys/devices/platform/leds/leds/{standby-led,power-led}/trigger