trumpet205
Posts: 2
Joined: Mon May 02, 2016 6:49 pm

Any way to turn off LED on Pi 3?

Mon May 23, 2016 7:28 am

As titled. I see various guide on how to turn off the LEDs on Pi and Pi 2, but not Pi 3 though.

Tried the echo command and it returned with no such file or directory error. I'm running on Ubuntu Mate 16.04 LTS.

broe23
Posts: 903
Joined: Thu Jan 28, 2016 9:35 pm
Location: Central IL
Contact: Website

Re: Any way to turn off LED on Pi 3?

Mon May 23, 2016 7:48 am

You can get the darkening dots and strips on Amazon, to help dim them. It may take two or three to get them down where they are not so bright, but you are still able to see them.
Ren: Now listen, Cadet. I've got a job for you. See this button? Ren: Don't touch it! It's the History Eraser button, you fool! Stimpy: So what'll happen? Ren: That's just it. We don't know. Maybe something bad, maybe something good.

User avatar
DougieLawson
Posts: 33360
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Any way to turn off LED on Pi 3?

Mon May 23, 2016 7:51 am

broe23 wrote:You can get the darkening dots and strips on Amazon, to help dim them. It may take two or three to get them down where they are not so bright, but you are still able to see them.
A thin strip of gaffer tape is as good as anything. I did that for the stupid blue standby LED on the TV in our bedroom. Blue LEDs should be outlawed.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

jbudd
Posts: 651
Joined: Mon Dec 16, 2013 10:23 am

Re: Any way to turn off LED on Pi 3?

Mon May 23, 2016 10:15 am

I don't know about Ubuntu but on the Pi3 running Raspbian you can turn off the green ACT led by adding two lines to /boot/config.txt:

Code: Select all

dtoverlay=pi3-act-led
dtparam=act-led-trigger="none"
According to /boot/overlays/README the first line reverts to the old style control of the Activity LED, the second line disables all trigger events.

Unfortunately, there is no equivalent for the PWR led.
It might be possible though because the red LED does sometimes go off without the Pi halting (eg a weak USB power supply).

DirkS
Posts: 8497
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Any way to turn off LED on Pi 3?

Mon May 23, 2016 10:53 am

jbudd wrote:

Code: Select all

dtoverlay=pi3-act-led
dtparam=act-led-trigger="none"
According to /boot/overlays/README the first line reverts to the old style control of the Activity LED, the second line disables all trigger events.
According to the docs configuring a GPIO is required. Since you have to dedicate one GPIO pin the second line is not adding anything if you want to switch off the ACT led.

Code: Select all

dtoverlay=pi3-act-led,gpio=17
BTW: parameter values don't need quotes around them

jahboater
Posts: 2783
Joined: Wed Feb 04, 2015 6:38 pm

Re: Any way to turn off LED on Pi 3?

Mon May 23, 2016 2:52 pm

Or, perhaps more simply:-

Code: Select all

echo none > /sys/class/leds/led0/trigger
You can do other things:-
[email protected]:/sys/class/leds $ cd led0
[email protected]:/sys/class/leds/led0 $ ls
brightness device max_brightness power subsystem trigger uevent
[email protected]:/sys/class/leds/led0 $ cat trigger
none kbd-scrollock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock [mmc0] mmc1 timer oneshot heartbeat backlight gpio cpu0 cpu1 cpu2 cpu3 default-on input rfkill0 rfkill1
[email protected]:/sys/class/leds/led0 $

trumpet205
Posts: 2
Joined: Mon May 02, 2016 6:49 pm

Re: Any way to turn off LED on Pi 3?

Mon May 23, 2016 5:18 pm

led0 is for Activity LED right? I'm looking to turn off Power LED (led1).

There is no led1 folder under /sys/class/leds/

occupied
Posts: 42
Joined: Mon Apr 25, 2016 3:50 pm

Re: Any way to turn off LED on Pi 3?

Mon May 23, 2016 5:25 pm

trumpet205 wrote:led0 is for Activity LED right? I'm looking to turn off Power LED (led1).

There is no led1 folder under /sys/class/leds/
I'm happy to be proven wrong, but I was unable to turn off the Power LED on Pi 3.
(Pi 2 no problems)

jbudd
Posts: 651
Joined: Mon Dec 16, 2013 10:23 am

Re: Any way to turn off LED on Pi 3?

Mon May 23, 2016 6:03 pm

This extract from https://github.com/raspberrypi/linux/issues/1332 suggests that you cannot currently turn off the power LED
The PWR LED on RPis since the B+ has doubled as an under-voltage indication. Since GPIOs are in short supply, as well as being an indicator it is also the under-voltage detector - there is some external circuitry that can detect the GPIO direction so that it is either an input with an automatic LED or an output. This circuitry is only present on the red LED. The ability to change the "PWR" LED pin to an output, as you must do to make it the ACT LED, bypasses the under-voltage detection, which is permitted but not recommended.

As @popcornmix says these LEDs are now on a GPIO expander, and controlled from the VPU. These GPIOs may never be available as fully featured GPIOs because they are too slow to use in many circumstances. There is a simple GPIO driver that can efficiently control the ACT LED, but more effort is needed to make it work with the PWR LED and change its direction to an output. This is something we may address, but it isn't high on the list of priorities at the moment.

tmowbray
Posts: 2
Joined: Mon May 09, 2016 8:15 pm

Re: Any way to turn off LED on Pi 3?

Mon Jun 13, 2016 4:00 pm

broe23 wrote:You can get the darkening dots and strips on Amazon, to help dim them. It may take two or three to get them down where they are not so bright, but you are still able to see them.
A dab of nail polish will get the job done quickly and easily as well....

bbaumg
Posts: 1
Joined: Sun Jan 07, 2018 3:43 pm

Re: Any way to turn off LED on Pi 3?

Sun Jan 07, 2018 3:45 pm

Take a look at this page... He does not call out the Pi 3, but it worked on mine.

https://www.jeffgeerling.com/blogs/jeff ... spberry-pi

CEO
Posts: 1
Joined: Sun Apr 22, 2018 6:22 am
Contact: Website

Re: Any way to turn off LED on Pi 3?

Sun Apr 22, 2018 6:27 am

Yes, you can turn off the LEDs on the raspberry pi model 3.
This was tested on the raspberry pi model 3 B+

The line below is used to turn off the power LED
sudo sh -c 'echo 0 > /sys/class/leds/led1/brightness'

The line below is used to turn off the action LED
sudo sh -c 'echo 0 > /sys/class/leds/led0/brightness'

boyoh
Posts: 1145
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: Any way to turn off LED on Pi 3?

Mon Apr 23, 2018 10:23 pm

The time to bother about the Pi indicator lights , Is when they won't turn on.

Just a little bit of BlueTack will do the job.

Regards BoyOh
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

EdwardBean
Posts: 2
Joined: Mon Jul 11, 2016 7:11 pm

Re: Any way to turn off LED on Pi 3?

Sun Aug 12, 2018 9:27 pm

https://www.jeffgeerling.com/blogs/jeff ... spberry-pi

On My RaspPi 3B+ I just disabled the red power LED by...

# Disable the PWR LED.
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off

Return to “Beginners”

Who is online

Users browsing this forum: darkbibble and 67 guests