Skip to content

Instantly share code, notes, and snippets.

View danielolsson100's full-sized avatar

Daniel Olsson danielolsson100

View GitHub Profile
@danielolsson100
danielolsson100 / disable_leds_rpi3.sh
Last active March 27, 2022 10:44 — forked from andrewssobral/disable_leds_rpi3.sh
Disable leds on Raspberry Pi 3 Model B Rev 1.2
# https://raspberrypi.stackexchange.com/questions/117632/turn-off-external-leds-on-raspberry-pi-3
# check model
cat /sys/firmware/devicetree/base/model
# Raspberry Pi 3 Model B Rev 1.2
# Disable Power (red) and Activity (yellow) leds
sudo nano /etc/rc.local
# Add the following lines before `exit 0`:
sudo sh -c 'echo none > /sys/class/leds/led0/trigger'