Can you turn off the pi 4 pwr and Ethernet lights?
You can’t on the pi 3 right?
Re: Can you turn off the pi 4 pwr and Ethernet lights?
I turn the power led off by adding this to /etc/crontab
works on the Pi3 and the Pi4.
There must be a better way .....
Code: Select all
@reboot root echo 0 > /sys/class/leds/led1/brightness
There must be a better way .....
Re: Can you turn off the pi 4 pwr and Ethernet lights?
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?
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?
-
- Posts: 1
- Joined: Thu Aug 27, 2020 6:53 pm
Re: Can you turn off the pi 4 pwr and Ethernet lights?
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
#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?
this is not working for me on RPi4
Re: Can you turn off the pi 4 pwr and Ethernet lights?
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 and Pi4 4GB running Raspberry Pi OS 64-bit
Re: Can you turn off the pi 4 pwr and Ethernet lights?
Once you do this is there anyway to turn the lights on and off programmatically through the /sys interface?jahboater wrote: ↑Thu Sep 10, 2020 1:37 pmThis 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?
Sorry, never tried to, hopefully someone else knows.
Pi4 8GB and Pi4 4GB running Raspberry Pi OS 64-bit
Re: Can you turn off the pi 4 pwr and Ethernet lights?
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.
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?
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?
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?
That looks like it could be interesting to show certain kinds of status conditions. Thanks for the follow up.timg236 wrote: ↑Sun Nov 08, 2020 2:27 pmNot 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