Can I disable the yellow (PWR?) LED on the Pi Zero?
I've tried setting the brightness to
led1 (it starts life as
led0 is already
0 but I still get the LED glow.
Out of interest, I only managed to set the brightness file to zero by running the following from
echo 0 > /sys/class/leds/led1/brightness
Verified after booting with the following.
$ cat /sys/class/leds/led1/brightness 0
If I try as the
pi user or even via
sudo, I get the following error. Even after
chmod. Any ideas why?
-bash: /sys/class/leds/led0/brightness: Permission denied
ACTnext to it :)
/sys/class/leds/led1/brigthnessfile) occurs before the sudo command is run so it does not get the sought for privileged elevation. There is a (somewhat funky) way around it with a
teecommand but I do not have the details to hand...!
bash -c 'echo 0 > ...with the same affect (it doesn't work). I can't quiet remember but I think there's a difference between true
root(which will be the user for
sudo. Anyway... I'd have to do some reading to remind myself :D