Page 1 of 1

Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Wed Sep 18, 2019 12:16 pm
by Pilaced
You can’t on the pi 3 right?

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Wed Sep 18, 2019 12:40 pm
by jahboater
I turn the power led off by adding this to /etc/crontab

Code: Select all

@reboot root echo 0 > /sys/class/leds/led1/brightness
works on the Pi3 and the Pi4.
There must be a better way .....

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Wed Sep 18, 2019 12:52 pm
by trejan
No known way of turning off the Pi 4 Ethernet socket LEDs. The LEDs are wired to the Broadcom Ethernet PHY and there is no public documentation on it AFAIK. The config.txt options to turn off the LED is only for the 3B+ and the utility is for the older Pi boards.

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Sat Dec 21, 2019 7:21 pm
by stuart72
have you seen https://www.raspberrypi.org/forums/view ... p?t=252057 which contains a link to https://github.com/raspberrypi/linux/co ... a8575ee06b which appears to be the code that we need to change to disable the Ethernet LED on a Pi4?

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Thu Aug 27, 2020 6:59 pm
by kokosmolch
adding these lines to the /boot/config.txt works like a charm for me on a RPi 4 (PI OS 2020-08-20)

#disable ACT and PWR LEDs
dtparam=act_led_trigger=none
dtparam=pwr_led_trigger=none

#disable ethernet port LEDs
dtparam=eth0_led=4
dtparam=eth1_led=4

Cheers

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Thu Sep 10, 2020 10:31 am
by djace
this is not working for me on RPi4

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Thu Sep 10, 2020 1:37 pm
by jahboater
This works for me:

Code: Select all

[pi4]
# Disable the PWR LED
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off
# Disable the Activity LED
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
# Disable ethernet port LEDs
dtparam=eth_led0=4
dtparam=eth_led1=4

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Thu Sep 10, 2020 3:27 pm
by ejolson
jahboater wrote:
Thu Sep 10, 2020 1:37 pm
This works for me:

Code: Select all

[pi4]
# Disable the PWR LED
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off
# Disable the Activity LED
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
# Disable ethernet port LEDs
dtparam=eth_led0=4
dtparam=eth_led1=4
Once you do this is there anyway to turn the lights on and off programmatically through the /sys interface?

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Fri Sep 11, 2020 12:41 am
by jahboater
ejolson wrote:
Thu Sep 10, 2020 3:27 pm
Once you do this is there anyway to turn the lights on and off programmatically through the /sys interface?
Sorry, never tried to, hopefully someone else knows.

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Tue Oct 13, 2020 2:06 pm
by Libin
djace wrote:
Thu Sep 10, 2020 10:31 am
this is not working for me on RPi4
Note that you must add these lines under the tag [pi4]. If you just add these in the end of the file (my config shows the last tag is [all]), it won't work. My rasp version is 4B.

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Thu Oct 29, 2020 11:24 am
by basmeyer
Thanks jahboater,

That worked out great!
After adding this to /boot/config.txt and rebooting the Pi it takes a little while before they go out but in a while all nice and dark (with only the green LED of the soundboard but that is OK). No more upknockcious lights, especially the ethernet ones.

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Sun Nov 08, 2020 1:56 am
by lamba92
Any solution for Ubuntu Server as OS? I own a Pi4 and a Pi2 and for both none of the above solutions works. Btw Ubuntu 20.04.

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Sun Nov 08, 2020 2:27 pm
by timg236
jahboater wrote:
Fri Sep 11, 2020 12:41 am
ejolson wrote:
Thu Sep 10, 2020 3:27 pm
Once you do this is there anyway to turn the lights on and off programmatically through the /sys interface?
Sorry, never tried to, hopefully someone else knows.
Not a /sys interface but mdiotool https://github.com/PieVo/mdio-tool can be used to poke the MDIO interface directly. The following commands will turn off the LEDs, if you look at the DTBs + Ethernet MAC driver then the other values for link speed / always on are should be the there

Code: Select all

# Select expansion register 4
mdiotool w eth0 0x17 0xf04 
# Forced off LED2 7:3 0x4 LED1 3:0 0x4
mdiotool w eth0 0x15 0x044

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Sun Nov 08, 2020 3:20 pm
by ejolson
timg236 wrote:
Sun Nov 08, 2020 2:27 pm
jahboater wrote:
Fri Sep 11, 2020 12:41 am
ejolson wrote:
Thu Sep 10, 2020 3:27 pm
Once you do this is there anyway to turn the lights on and off programmatically through the /sys interface?
Sorry, never tried to, hopefully someone else knows.
Not a /sys interface but mdiotool https://github.com/PieVo/mdio-tool can be used to poke the MDIO interface directly. The following commands will turn off the LEDs, if you look at the DTBs + Ethernet MAC driver then the other values for link speed / always on are should be the there

Code: Select all

# Select expansion register 4
mdiotool w eth0 0x17 0xf04 
# Forced off LED2 7:3 0x4 LED1 3:0 0x4
mdiotool w eth0 0x15 0x044
That looks like it could be interesting to show certain kinds of status conditions. Thanks for the follow up.

Re: Can you turn off the pi 4 pwr and Ethernet lights?

Posted: Sun Nov 08, 2020 3:26 pm
by trejan
ejolson wrote:
Sun Nov 08, 2020 3:20 pm
That looks like it could be interesting to show certain kinds of status conditions.
Blink the IP address at startup?