2

I've got an official display, and having found other questions about setting the brightness I know I can change the brightness, and make a script that will run on boot, but that means the screen will start at default brightness and eventually be turned down. Is there a way to set the boot-time brightness value (such as a config.txt setting)?

The value that seems to be 'just right' for me is 12, so having it start at 255 (not sure if that's the default) is far too bright.

1

As a workaround for not being able to lower the brightness at boot you could make the whole boot sequence black.

  1. Disable the rainbow by adding this on a new line in /boot/config.txt

    disable_splash=1
    
  2. Disable the splash image

    sudo systemctl mask plymouth-start.service
    

    Or just make a darker version by replacing /usr/share/plymouth/themes/pix/splash.png.

  3. Remove the RPi logo(s) by adding this on the same line in /boot/cmdline.txt

    logo.nologo vt.global_cursor_default=0
    

    It will at least stay black until the sysfs brightness setting is applied.

  4. Set brightness with sysfsutils which you'll have to install with:

    sudo apt-get install sysfsutils
    

    then add to /etc/sysfs.conf the following line:

    class/backlight/rpi_backlight/brightness = 12
    

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.