1

I know very little about Raspberry Pi and Python. I've been able to turn off the LEDs in the terminal using the following command:

sudo su -
echo none > /sys/class/leds/led0/trigger

However, I would like to incorporate that into a Python program that can be executed on start-up. How can I approach this?

goldilocks
  • 60,325
  • 17
  • 117
  • 234
WhiskyJack
  • 49
  • 1
  • 5

1 Answers1

3

I found a work around that simply allows me to add a few lines to the boot config file /boot/config.txt

To disable ACT LED, add

dtparam=act_led_trigger=none
dtparam=act_led_activelow=off

To disable PWR LED, add

dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off
Jaromanda X
  • 2,481
  • 1
  • 15
  • 15
WhiskyJack
  • 49
  • 1
  • 5