bedtime
Posts: 117
Joined: Thu Dec 13, 2018 6:02 pm

How to switch initial brightness?

Fri Jun 18, 2021 2:46 pm

Is there away that the brightness of the screen can be changed earlier in the boot process? I'd like to lower the brightness or even have the screen off until it is fully booted.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 31843
Joined: Sat Jul 30, 2011 7:41 pm

Re: How to switch initial brightness?

Fri Jun 18, 2021 2:53 pm

Not that I can think of.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

gordon77
Posts: 6883
Joined: Sun Aug 05, 2012 3:12 pm

Re: How to switch initial brightness?

Fri Jun 18, 2021 3:29 pm

How is the brightness controlled ?

If you can control it with a gpio could you use one that if off at boot ?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 31843
Joined: Sat Jul 30, 2011 7:41 pm

Re: How to switch initial brightness?

Fri Jun 18, 2021 4:23 pm

No, it's controlled from a I2C message to the display board on the screen, via the firmware and some mailboxes.

If you are using KMS (unlikely) then you could mod the driver to start up with 0 brightness.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

gordon77
Posts: 6883
Joined: Sun Aug 05, 2012 3:12 pm

Re: How to switch initial brightness?

Fri Jun 18, 2021 4:39 pm

My mistake , l missed it was a pi official display.

User avatar
DougieLawson
Posts: 42300
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: How to switch initial brightness?

Fri Jun 18, 2021 5:48 pm

gordon77 wrote:
Fri Jun 18, 2021 3:29 pm
How is the brightness controlled ?
You write a brightness value (0 to 255) to /sys/class/backlight/rpi_backlight/brightness. You can do that with a sudo echo command or with something like my code at https://github.com/DougieLawson/backlight_dimmer
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

Return to “Official Display”