MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    How to turn off Raspberry Pi LEDs

    System
    6
    9
    440
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      GuestMirror last edited by

      Hello, I have a question.
      I am using the Raspberry Pi 4B and tried turning the power led and other status leds off configuring the boot/config.txt file and using the “echo 0 | sudo tee /sys/class/leds/led{1,0}/brightness” command. However, they didn’t change anything. I think this is due to the pm2 and the boot/config.txt somehow gets skipped when booting.
      Does anyone have suggestions how I can turn them off or run the boot/config.txt file?
      Thank you very much for your help!

      S Fozi evroom 4 Replies Last reply Reply Quote 0
      • S
        sdetweil @GuestMirror last edited by

        @GuestMirror never heard of any option to turn off the LEDs except on pi0w.

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • S
          sdetweil @GuestMirror last edited by

          @GuestMirror boot/config.txt is processed long before pm2 is started…

          Sam

          Create a working config
          How to add modules

          G 1 Reply Last reply Reply Quote 0
          • Fozi
            Fozi Project Sponsor @GuestMirror last edited by

            @GuestMirror Try this in bootconfig.txt

            # Turn off PWR LED
            dtparam=pwr_led_trigger=none
            dtparam=pwr_led_activelow=off
             
            # Turn off ACT LED
            dtparam=act_led_trigger=none
            dtparam=act_led_activelow=off
             
            # Turn off Ethernet ACT LED
            dtparam=eth_led0=4
             
            # Turn off Ethernet LNK LED
            dtparam=eth_led1=4
            

            HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

            G P 2 Replies Last reply Reply Quote 0
            • G
              GuestMirror @sdetweil last edited by

              @sdetweil Is there a way to see if the boot/config.txt loads properly? I tried troubleshooting it by setting different things in there like rotating the display etc. however, even with all my other changes commented out nothing changes when booting.

              1 Reply Last reply Reply Quote 0
              • G
                GuestMirror @Fozi last edited by

                @Fozi I already tried that but it won’t work for some reason.

                1 Reply Last reply Reply Quote 0
                • P
                  plainbroke @Fozi last edited by

                  @Fozi @GuestMirror
                  Works on my RPi 4
                  I just copied and pasted to the bottom of the config.txt did a PM2 stop all and then sudo reboot and when it came backup they where on for a few seconds and then went off. @GuestMirror are you in the /boot/config.txt?

                  @Fozi said in How to turn off Raspberry Pi LEDs:

                  @GuestMirror Try this in bootconfig.txt

                  # Turn off PWR LED
                  dtparam=pwr_led_trigger=none
                  dtparam=pwr_led_activelow=off
                   
                  # Turn off ACT LED
                  dtparam=act_led_trigger=none
                  dtparam=act_led_activelow=off
                   
                  # Turn off Ethernet ACT LED
                  dtparam=eth_led0=4
                   
                  # Turn off Ethernet LNK LED
                  dtparam=eth_led1=4
                  
                  1 Reply Last reply Reply Quote 0
                  • evroom
                    evroom @GuestMirror last edited by

                    @GuestMirror

                    Hi,

                    I do not have a Pi 4 but on my Pi 3 Model B I have this:

                    sudo nano /boot/config.txt
                    
                    # 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
                    
                    crontab -e
                    
                    @reboot echo 0 | sudo tee /sys/class/leds/led1/brightness
                    

                    You can try this to see if the above cron entry works (before rebooting):

                    echo 0 | sudo tee /sys/class/leds/led1/brightness
                    

                    Perhaps some stuff does not work or does the same, but both the power LED and activity LED on my Pi are off in the end.
                    Btw, on my Pi 3 Model B Plus, only the /root/config.txt line are needed.

                    Concerning the LAN LED’s I found following:

                    # Disable LAN-LEDs on Raspberry Pi 3B+
                    dtparam=eth_led0=14
                    dtparam=eth_led1=14
                    
                    # Disable LAN-LEDs on Raspberry Pi 4
                    dtparam=eth_led0=4
                    dtparam=eth_led1=4
                    

                    Good luck!

                    MagicMirror version: 2.21.0
                    Raspberry Pi 3 Model B Plus Rev 1.3
                    Raspbian GNU/Linux 10 (buster)

                    1 Reply Last reply Reply Quote 0
                    • H
                      harney last edited by

                      here are the amendments to boot/config.txt file. For BULLSEYE, you have to use different parameters to make them work

                      these work for pi3 and pi 4

                      Pre BULLSEYE

                      • 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

                      BULLSEYE ONLY

                      • Disable the PWR LED
                        dtparam=pwr_led_trigger=default-on
                        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

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy