Power led

I know I can turn off the power and activity leds with echo 0 >/sys/class/leds/led0/brightness and echo 0 >/sys/class/leds/led1/brightness

Anyway to do this at each boot. I’m looking for a /etc/rc.local to write the command to, but can’t find it, and the system won’t let me write to that location

Have you looked in /storage/.config

Regards

No - I’ll try and put the rc.local file there. Cheers @NedtheNerd

I’m a complete linux dummy, so I need some help.

I created an rc.local file and dropped it in /storage/.config
In the rc.local file, I added the line echo 0 >/sys/class/leds/led1/brightness

I rebooted the Pi and the LED is still on. What am I doing wrong?

Hi I’m having the exactly same problem. I added the file on /storage/.config/etc/ but after a reboot it still on. Can anyone give me a hint ?

@andrema2 said:
Hi I’m having the exactly same problem. I added the file on /storage/.config/etc/ but after a reboot it still on. Can anyone give me a hint ?

@cbjerg said:
I know I can turn off the power and activity leds with echo 0 >/sys/class/leds/led0/brightness and echo 0 >/sys/class/leds/led1/brightness

Anyway to do this at each boot. I’m looking for a /etc/rc.local to write the command to, but can’t find it, and the system won’t let me write to that location

You do not want rc.local, don’t know where that came from!

However, I’ve done some research for you both and this is the way to do it.

SSH in to the RPi and use nano to create a file in /storage/.config named autostart.sh and add the following line:

 #!/bin/bash
 (echo 0 >/sys/class/leds/led1/brightness)&

Reboot, power led will be off.

Regards

thanks NedtheNerd