The following is helpful if you purchased the RemotePi addon board for your raspberry pi that provides IR Remote control and a Power button… If so, you may wish to disable the built-in bright LED and just show the one from RemotePi.
RED Power LED (LED1) The line below is used to turn off the power LED sudo sh -c 'echo 0 > /sys/class/leds/led1/brightness' The line below is used to restore the power LED sudo sh -c 'echo 255 > /sys/class/leds/led1/brightness' YELLOW Activity LED (LED0) The line below is used to turn off the activity/action LED sudo sh -c 'echo 0 > /sys/class/leds/led0/brightness' Alternatively, the mmc0 trigger can be deactivated like this: sudo sh -c 'echo none > /sys/class/leds/led0/trigger' The line below is used to restore the activity/action LED sudo sh -c 'echo mmc0 > /sys/class/leds/led0/trigger' DIM RemotePi LED via MSL Config Tool See: https://www.msldigital.com/pages/configuration-tool 1. Write MSL Config Tools to SD Card. 2. Obtain Raspberry Pi Firmware and replace files on the SD Card https://github.com/raspberrypi/firmware/tree/master/boot 3. Boot Raspberry Pi with SD Card After boot, login: Username: root Password: raspberry See help with ./mslconfigtool Dim to 10%: ./mslconfigtool -g=10 Note: Solution to MSL Config Tool Stuck at Rainbow Boot https://www.raspberrypi.org/forums/viewtopic.php?t=138163#p917901 https://www.raspberrypi.org/forums/viewtopic.php?t=138163#p920635 Turning Off the LED will not stick after reboot, thus... turn it off at boot with systemd... Step1 - Create a bash script "turnoffpowerled.sh" for turning off the LED =================== #!/bin/bash sudo sh -c 'echo 0 > /sys/class/leds/led1/brightness' ==================== Optionally, Create a bash script "turnonpowerled.sh" for turning oon the LED =================== #!/bin/bash sudo sh -c 'echo 255 > /sys/class/leds/led1/brightness' ==================== Step2 - Make the script files executable chmod 744 ~/turnoffpowerled.sh chmod 744 ~/turnonpowerled.sh Note: At this point you can test both these by running them. eg. ~/turnoffpowerled.sh Step3 - Create a Service Unit file Go to "/etc/systemd/system" Create an empty service file: sudo nano turnoffled.service Add the following contents to the service file: ===================== [Unit] Description=TurnOffLED [Service] ExecStart=/home/osmc/turnoffpowerled.sh [Install] WantedBy=default.target ===================== sudo chmod 664 /etc/systemd/system/turnoffled.service sudo systemctl daemon-reload To Enable Run at Boot: sudo systemctl enable turnoffled.service To Start it Manually: sudo systemctl start turnoffled.service To Stop it Manually: sudo systemctl stop turnoffled.service