Can I disable the yellow (PWR?) LED on the Pi Zero?
I've tried setting the brightness to 0
of led1
(it starts life as 255
) and 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 /etc/rc.local
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
ACT
next to it :)stdout
to the/sys/class/leds/led1/brigthness
file) 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 atee
command 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 trueroot
(which will be the user forrc.local
no?) andsudo
. Anyway... I'd have to do some reading to remind myself :D