Pilaced
Posts: 8
Joined: Mon Jul 22, 2019 7:31 pm

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

Wed Sep 18, 2019 12:16 pm

You can’t on the pi 3 right?

User avatar
jahboater
Posts: 6270
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

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

Wed Sep 18, 2019 12:40 pm

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

trejan
Posts: 2931
Joined: Tue Jul 02, 2019 2:28 pm

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

Wed Sep 18, 2019 12:52 pm

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.

stuart72
Posts: 1
Joined: Sat Dec 21, 2019 7:17 pm

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

Sat Dec 21, 2019 7:21 pm

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?

kokosmolch
Posts: 1
Joined: Thu Aug 27, 2020 6:53 pm

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

Thu Aug 27, 2020 6:59 pm

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

djace
Posts: 2
Joined: Wed Mar 21, 2018 10:06 pm

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

Thu Sep 10, 2020 10:31 am

this is not working for me on RPi4

User avatar
jahboater
Posts: 6270
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

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

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
Pi4 8GB running PIOS64 Lite

ejolson
Posts: 5972
Joined: Tue Mar 18, 2014 11:47 am

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

Thu Sep 10, 2020 3:27 pm

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?

User avatar
jahboater
Posts: 6270
Joined: Wed Feb 04, 2015 6:38 pm
Location: Wonderful West Dorset

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

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.
Pi4 8GB running PIOS64 Lite

Libin
Posts: 1
Joined: Tue Oct 13, 2020 2:03 pm

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

Tue Oct 13, 2020 2:06 pm

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.

basmeyer
Posts: 1
Joined: Thu Oct 29, 2020 11:13 am

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

Thu Oct 29, 2020 11:24 am

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.

lamba92
Posts: 1
Joined: Sun Nov 08, 2020 1:53 am

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

Sun Nov 08, 2020 1:56 am

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.

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 688
Joined: Thu Jun 21, 2018 4:30 pm

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

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

ejolson
Posts: 5972
Joined: Tue Mar 18, 2014 11:47 am

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

Sun Nov 08, 2020 3:20 pm

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.

trejan
Posts: 2931
Joined: Tue Jul 02, 2019 2:28 pm

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

Sun Nov 08, 2020 3:26 pm

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?

Return to “Beginners”