Ability to disable Ethernet LEDs

  • Hi!

    I am able to disable the Power and SD Card LED on my Raspberry Pi 2/3 running LibreELEC with

    Code
    echo 0 > /sys/class/leds/led0/brightness
    echo 0 > /sys/class/leds/led1/brightness
    echo none > /sys/class/leds/led0/trigger
    echo none > /sys/class/leds/led1/trigger

    in autostart.sh.

    What I am not able to do is disabling the LAN / Ethernet LEDs.

    It would be great to disable all LEDs natively from with LibreELEC.

    Thanks.

    Edited once, last by janw (March 14, 2017 at 2:07 PM).

  • This drives me nuts as well as my RPi2 is in my bedroom and the LEDs flashing at night can be an annoyance. I have the patch that Iridium mentioned and tested on the system that the patch was made for. I'm currently syncing/building LibreElec though. As long as the patch works here as well, I will submit it to the team as a Pull Request... so hopefully you'll have the ability in the official builds soon ;)

  • If whatever change you're thinking up is worthwhile it should be submitted to the linux kernel. Then we'll pick up the change in a future kernel release. Patches and hacks are out of fashion around here :)

    I don't know. It's a pretty usecase specific patch, since it would only be something that someone using an RPi2 (3 maybe as well) as an HTPC would really be interested in. I doubt it would be of any interest to linux mainline. Though, at the same time it doesn't look like it hurts anything either.

  • The PR should be sent here: https://github.com/raspberrypi/linux then it benefits all RPi users, not just LE, and becomes something we pick up in the RPi backports patch we rebase as part of minor kernel bumps. The folks who maintain that repo will also evaluate and judge whether it's something that should go further upstream to the mainline kernel.

    Fair enough, I'll send it there instead.

    It wasn't mine originally, and don't actually know the emails and such that would maintain proper authorship for it either. Though, I think it can be cleaned up a little anyway.

    Thanks for the proper link.

  •  

    This can be done without kernel modifications. See:
    Raspberry Pi • View topic - Controlling LAN LEDs individually

    As compiling on LE is tricky, here is a build I did on raspbian that works fine on LE.

    Code
    wget -O llctl "https://drive.google.com/uc?id=0B-6zmEDJwxZEbmJkU3g2MlhMQWs&export=download"
    chmod +x llctl

    You can now turn off LEDS with

    Code
    ./llctl f0 l0 d0

    and turn them on with

    Code
    ./llctl f1 l1 d1
     

    Thanks, this works great for me. I may re-host the binary on my own drive or network just to ensure it's always available, but using the link you provided works in autostart to make the box lightless as:

    Thanks again, and ignore my PR since this already able to be done from userspace.

  • What I see from GitHub is that this has been merged in the master branch.

    Can someone tell me how to use this?

    Is it just adding the line:

    Code
    ./llctl f0 l0 d0

    To autostart.sh?

  • This can be done without kernel modifications. See:
    Raspberry Pi • View topic - Controlling LAN LEDs individually

    As compiling on LE is tricky, here is a build I did on raspbian that works fine on LE.

    Code
    wget -O llctl "https://drive.google.com/uc?id=0B-6zmEDJwxZEbmJkU3g2MlhMQWs&export=download"
    chmod +x llctl

    You can now turn off LEDS with

    Code
    ./llctl f0 l0 d0

    and turn them on with

    Code
    ./llctl f1 l1 d1

    This is no longer working on the Raspberry Pi 3 Model B+

    Controlling LAN LEDs individually - Page 2 - Raspberry Pi Forums

  • This still doesn't seem to work? I'm using an Raspberry Pi 3B and a 3B+

    I'm using the following lines in my config.txt

    # Disable Ethernet LEDs
    dtparam=eth_led0=14
    dtparam=eth_led1=14

    # 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

  • This can be done without kernel modifications. See:
    Raspberry Pi • View topic - Controlling LAN LEDs individually

    As compiling on LE is tricky, here is a build I did on raspbian that works fine on LE.

    Code
    wget -O llctl "https://drive.google.com/uc?id=0B-6zmEDJwxZEbmJkU3g2MlhMQWs&export=download"
    chmod +x llctl

    You can now turn off LEDS with

    Code
    ./llctl f0 l0 d0

    and turn them on with

    Code
    ./llctl f1 l1 d1

    popcornmix ..

    Hi

    Do you still have this file please as google link seem dead?