MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    How to turn off Raspberry Pi LEDs

    Scheduled Pinned Locked Moved System
    9 Posts 6 Posters 7.7k Views 6 Watching
    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.
    • S Offline
      sdetweil @GuestMirror
      last edited by

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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      G 1 Reply Last reply Reply Quote 0
      • FoziF Offline
        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 plainbrokeP 2 Replies Last reply Reply Quote 0
        • G Offline
          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 Offline
            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
            • plainbrokeP Offline
              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
              

              Slow learner. But trying anyways.

              1 Reply Last reply Reply Quote 0
              • evroomE Offline
                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.33.0
                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                Test environment:
                MagicMirror version: v2.33.0
                Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                1 Reply Last reply Reply Quote 0
                • H Offline
                  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 Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy