Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOOB question: Turn off Raspberry PI 2 status LEDs #184

Closed
Fourmyler opened this issue Feb 29, 2016 · 17 comments
Closed

NOOB question: Turn off Raspberry PI 2 status LEDs #184

Fourmyler opened this issue Feb 29, 2016 · 17 comments

Comments

@Fourmyler
Copy link

Hi, I've got MotionEyeOS working and I have turned the Raspberry PI camera red LED off. However, I can't figure out how to turn the onboard status LEDs off, which are making my homemade case glow red, when I would like it to be hidden/descreet. I found the following link but, as a NOOB, couldn't work out what to do:

https://blog.bartbania.com/raspberry_pi/disable-raspberry-pi-status-leds/

Thanks in advance for any help.

@JimPanski
Copy link

Hi ccrisan,
I tried out to disable the red power led by using the command mentioned in this guide http://stackoverflow.com/questions/19863723/turn-off-leds-of-raspberry-pi via ssh, but obviously the folder /sys/class/leds/ is empty, so the 'echo 1' command can't be executed.

It would be so nice if you could implement the option to disable/enable the leds by toggle a switch like the one for the CSI led :)
Or is there a workaround by running a command?

Many thanks for all the effort you already spent on this project - brilliant job!!!

@elliopitas
Copy link

useless feature first he will add rtsp support and other stuff more usfull

@giac0m0
Copy link

giac0m0 commented Aug 4, 2016

Adding a web gui control to implement controls to turn down or off the leds for the Pi in /boot/config.txtis a good idea.

http://raspberrypi.stackexchange.com/questions/40559/disable-leds-pi-zero?answertab=votes#tab-top

@shadowfxd
Copy link

shadowfxd commented Aug 14, 2016

SSH into your motioneyeos Pi2. Then enter these commands into terminal:

mount -o remount,rw /
mount -o remount,rw /boot
nano /boot/config.txt

at the bottom of /boot/config.txt add this:

# Disable the ACT LED.
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off

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

CTRL + X, then Y, then enter, reboot the pi through motioneyeos. No more LEDs.

@gorgonops
Copy link

@shadowfxd Thx - did c&p your lines into the config.txt. Lights are both still on. I am on 20160705 with PI2. What am I missing?

@shadowfxd
Copy link

make sure none of the lines are indented and that they are all on the very bottom of /boot/config.txt.

@gorgonops
Copy link

@shadowfxd : Thx a lot. config.txt looks as follows:
start_file=start.elf
fixup_file=fixup.elf
arm_freq=700
core_freq=250
sdram_freq=400
over_voltage=0
gpu_mem=128
gpu_mem_256=128
gpu_mem_512=128
disable_camera_led=1
gpu_freq=250
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off

What am I missing? Mind is blocked.

@shadowfxd
Copy link

shadowfxd commented Sep 5, 2016

this is exactly what my /boot/config.txt looks like on pi2 motioneyeos 20160705:

gpu_mem=320
arm_freq=950
gpu_freq=250
sdram_freq=450
over_voltage=0
disable_camera_led=1

# Disable the ACT LED.
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off

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

maybe comment out the .elf lines and see if the led off codes work?

@gorgonops
Copy link

C&P of your full config.txt worked fine. Somehow I was lost with my german keyboard. Many thanks for yr help.

@shadowfxd
Copy link

no problem!

@bortek
Copy link
Collaborator

bortek commented Mar 1, 2017

@pimuser
Copy link

pimuser commented Mar 12, 2017

I have tried this with my Raspberry Pi 3. But the LED's are still on. Here is my C&P from the config.txt:
gpu_mem=128
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
dtparam=audio=on
disable_camera_led=1

Disable the ACT LED.

dtparam=act_led_trigger=none
dtparam=act_led_activelow=off

Disable the PWR LED.

dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off

@roycie1282
Copy link

roycie1282 commented Mar 17, 2017

@pimuser the RPI3 uses the LEDs through the GPIO (well the power LED actually) there is a way to turn them off using Raspbian that @6by9 has shown on this issue here raspberrypi/linux#1332
I am currently trying to find a way around this in MotionEyeos but have yet to get it done. Hopefully my buddy is gonna come help me out soon and see if it's possible. If anyone has any ideas please let us know.

@roycie1282
Copy link

roycie1282 commented Mar 17, 2017

Also @bortek can you please label the wiki that code is only good for RPI AND RPI2, but not the RPI3

@6by9
Copy link

6by9 commented Mar 17, 2017

Please try updating via rpi-update to the latest 4.9 kernel (usual warnings of course).
I wasn't aware of those particular dtparams, but the power LED is now using the normal device tree nodes, so changes may well work. If not then please raise an issue on raspberrypi/linux and we can look into it. I don't believe there is anything fundamentally stopping this behaving in the same way as the other platforms now.

@bob-lee
Copy link

bob-lee commented Nov 29, 2018

Has anyone managed to turn off PWR led of old RPI model B (BCM2835 Revision 000e)?
Above instruction doesn't seem to control it at all, bright red PWR led is always turn on..

@jasaw
Copy link
Collaborator

jasaw commented Nov 29, 2018

From memory, I don't think PWR LED can be turned off on the original RPi B.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests