Motioneyeos: NOOB question: Turn off Raspberry PI 2 status LEDs

Created on 29 Feb 2016  路  17Comments  路  Source: ccrisan/motioneyeos

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.

help wanted

All 17 comments

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!!!

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

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

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.

@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?

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

@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.

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?

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

no problem!

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

@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 https://github.com/raspberrypi/linux/issues/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.

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

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.

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..

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SuneBielefeldt picture SuneBielefeldt  路  4Comments

leehonan picture leehonan  路  7Comments

jangix picture jangix  路  5Comments

dimgod59 picture dimgod59  路  4Comments

tehXor picture tehXor  路  3Comments