I have the RGB LED changing colour using the guide however when I supply brightness 0 to all leds the LED goes red and doesn’t turn off. Is this correct behavior?
Also the commands to disable the status leds is not working. Any ideas on this one too?
I have a raspbian image with the balena-fin overlay added.
@rickster thanks for that! I’ll set up a test device and try to reproduce. It’s important to share the commands though as there are different versions of the documentation. I assume that since you said a Fin v1.1 and the colour is changing you’re using something like echo $BRIGHTNESS > /sys/class/leds/pca963x\:$COLOR/brightness?
What about for disabling the status LEDs? What have you tried there?
Thanks Rick. I set up some test devices here and I was able to reproduce the issue where I cannot switch the status LEDs on and off. For that we have an open issue that we’re working on here: add PCA953X support · Issue #6 · balena-os/pi-gen · GitHub
As for the red part of the RGB led though, one of my colleagues suggested that perhaps you may have added a trigger to the LED (intentionally or not), as that would definitely do it. One clarification point though, is the red part of the RGB staying on full brightness or is it lit very dimly?
Thanks for all the info. I’m going to ask someone from the Fin team to look into this for you, hopefully they’ll have some ideas on how to resolve the issues you’ve come across.
The issue is by no means abandoned and work is being put to solve it. To give you some context, the pi-gen tool we forked from the rpi foundation does only userspace manipulation, so we had to figure out on our own how to handle kernel modules manipulation (and our own pipeline for balenaOS is so architecturally different that atm is of no use for raspbian, althought there are plans to investigate how to share more of that pipeline for the fin raspbian releases in the future). While I can’t share a precise ETA, I can assure you we are actively working on this and we expect to have at least draft release images in the upcoming couple of weeks.
the dimmed red light on the RGB led is a separate issue that is related to the specific driver configuration and is shared between balenaOS and raspbian. It looks like a regression and I’m personally the team member that is investigating it atm. I will make sure to keep this thread up to date on both topics.
We’ve been investigating this (not being able to turn the status LEDs off) and turns out the way the kernel enumerates the IO expander changed in version 2.38. We’ve updated our docs here with the latest instructions on how to do it properly regardless of the OS version.