• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 5.9k 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.
  • G Offline
    GuestMirror
    last edited by Jul 30, 2022, 1:53 AM

    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 F E 4 Replies Last reply Jul 30, 2022, 2:59 AM Reply Quote 0
    • S Offline
      sdetweil @GuestMirror
      last edited by Jul 30, 2022, 2:59 AM

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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @GuestMirror
        last edited by Jul 30, 2022, 3:02 AM

        @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 Jul 31, 2022, 2:20 PM Reply Quote 0
        • F Offline
          Fozi Project Sponsor @GuestMirror
          last edited by Jul 30, 2022, 2:27 PM

          @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 Jul 31, 2022, 2:22 PM Reply Quote 0
          • G Offline
            GuestMirror @sdetweil
            last edited by Jul 31, 2022, 2:20 PM

            @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 Jul 31, 2022, 2:22 PM

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

              1 Reply Last reply Reply Quote 0
              • P Offline
                plainbroke @Fozi
                last edited by Jul 31, 2022, 5:54 PM

                @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
                • E Offline
                  evroom @GuestMirror
                  last edited by Jul 31, 2022, 6:32 PM

                  @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.30.0
                  Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                  Raspbian GNU/Linux 12 (bookworm)

                  Test environment:
                  MagicMirror version: v2.30.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 Dec 23, 2022, 8:48 AM

                    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