okenido
Posts: 21
Joined: Thu Aug 02, 2018 11:47 am

Official 7 inch screen : white flash at startup

Mon Oct 01, 2018 12:24 pm

Hello

The screen is doing a fast white flash on boot, before the rainbow screen is displayed. RPI model 3 B+ with the official 7 inch screen, last boot files from the git repository. Everything works well but it would look cleaner if it stayed black, especially since I plan to use it integrated in a product.

ImageImageImage

Video here : https://www.youtube.com/watch?v=xQJWC97g7jU

I know how to disable the rainbow screen using an option in config.txt, but I had no success getting rid of this white flash.

Any ideas ?
Last edited by okenido on Mon Oct 01, 2018 1:18 pm, edited 3 times in total.

aBUGSworstnightmare
Posts: 1066
Joined: Tue Jun 30, 2015 1:35 pm

Re: Official 7 inch screen : white flash at startup

Mon Oct 01, 2018 12:29 pm

An you post a short video? Afik my 7in doesn't shown white flash on boot.

okenido
Posts: 21
Joined: Thu Aug 02, 2018 11:47 am

Re: Official 7 inch screen : white flash at startup

Mon Oct 01, 2018 12:46 pm

Sure ! I updated the first post with it ;)
Last edited by okenido on Mon Oct 01, 2018 1:14 pm, edited 2 times in total.

aBUGSworstnightmare
Posts: 1066
Joined: Tue Jun 30, 2015 1:35 pm

Re: Official 7 inch screen : white flash at startup

Mon Oct 01, 2018 2:23 pm

Looks odd, flash, as well as the splash screen. You see four big squares, but it should look like a rainbow color.

Can you test with a fresh Raspbian image please (download from here and not from repository https://www.raspberrypi.org/downloads/raspbian/ ) and report back? Yoi may want to use another uSD and keep this one in case some guys from RPi foundation need further details

okenido
Posts: 21
Joined: Thu Aug 02, 2018 11:47 am

Re: Official 7 inch screen : white flash at startup

Mon Oct 01, 2018 2:34 pm

The splash screen looks like that because I disabled interpolation in config.txt (normally it's so smoothed it looks like... a rainbow). Setting to default with an empty config.txt doesn't solve the problem.

The white flash still happens with no kernel8-32.img at all, just the boot files.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 11000
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Official 7 inch screen : white flash at startup

Mon Oct 01, 2018 3:36 pm

Don't disable interpolation, its probably causing the GPU to create that white screen, everything that happens before the rainbow screen (a GPU test that stretches and interpolates four pixels) is done with GPU code, only afterward the Linux kernel (the ARM CPU) is started
Why do you need interpolation disabled?

okenido
Posts: 21
Joined: Thu Aug 02, 2018 11:47 am

Re: Official 7 inch screen : white flash at startup

Mon Oct 01, 2018 5:44 pm

Because I have a framebuffer that is half the real screen size (800x480 => 400x240) for my custom software renderer. Disabling the interpolation allows for crisp pixels to be rendered, instead of a blurry mess :)

But that's not the problem since even with an EMPTY config.txt (that means interpolation is ON) the white screen still shows up.

User avatar
DougieLawson
Posts: 34096
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: Official 7 inch screen : white flash at startup

Mon Oct 01, 2018 5:57 pm

It's doing nothing abnormal. My screen on my 3B does the same thing (albeit a bit quicker), I don't have an splash screen or rainbow screen (they're disabled). It's flash white then four raspberries appear.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

2012-18: 1B*5, 2B*2, B+, A+, Z, ZW, 3Bs*3, 3B+

Any DMs sent on Twitter will be answered next month.

okenido
Posts: 21
Joined: Thu Aug 02, 2018 11:47 am

Re: Official 7 inch screen : white flash at startup

Mon Oct 01, 2018 6:07 pm

Oh okay ! Would be nice if someone working on the raspberry pi's firmware could investigate this. Maybe it's due to the screen controller, in that case i'm out of luck. If it's on the GPU side maybe there is something they can do, as this white screen (seems to) serve no purpose.

aBUGSworstnightmare
Posts: 1066
Joined: Tue Jun 30, 2015 1:35 pm

Re: Official 7 inch screen : white flash at startup

Tue Oct 02, 2018 5:13 am

okenido wrote: Oh okay ! Would be nice if someone working on the raspberry pi's firmware could investigate this. Maybe it's due to the screen controller, in that case i'm out of luck. If it's on the GPU side maybe there is something they can do, as this white screen (seems to) serve no purpose.
The display is TN technology --> it's normally white.
If there is no pixel data when the backlight is switched on the display is white. That's why many displays have Backlight Enable signal to prevent irregular display. Backlight Enable will be set after valid pixel data is transferred.

So maybe somebody at RPi Foundation needs to check the DSI power on sequence.

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

Re: Official 7 inch screen : white flash at startup

Tue Oct 02, 2018 10:12 am

The startup sequence is:

In main startup sequence:
Probe driver

In the driver:
Detect display type
Power up the display
Hold device in reset
Turn on the DSI peripheral
Mid way through DSI setup the LCD is taken out of reset.
Set the backlight PWM (not sure what this defaults to on power up)

back to main startup sequence:
Display the splash screen


So there is a period of time after all has been started up and before the GPU send the splash to the display. That's probably the white flash.

Not sure there is a lot that can be done about that, not without a hat load of investigation and work, which we won't be doing. Just not an effective use of engineering time.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

okenido
Posts: 21
Joined: Thu Aug 02, 2018 11:47 am

Re: Official 7 inch screen : white flash at startup

Tue Oct 02, 2018 10:08 pm

It depends if the people investigating this have access to the source code of RPI firmware and/or the GPU initialization source code. Probably not very hard for the right people, but too hard for the users if it requires to reverse engineer things.

Maybe a hacky solution would be to cut the power line that goes to the backlight, then put a transistor controlled by a GPIO so the backlight would be naturally OFF then could be set ON by software. However, this is not clean nor easy to do

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

Re: Official 7 inch screen : white flash at startup

Wed Oct 03, 2018 9:29 am

okenido wrote:
Tue Oct 02, 2018 10:08 pm
It depends if the people investigating this have access to the source code of RPI firmware and/or the GPU initialization source code. Probably not very hard for the right people, but too hard for the users if it requires to reverse engineer things.

Maybe a hacky solution would be to cut the power line that goes to the backlight, then put a transistor controlled by a GPIO so the backlight would be naturally OFF then could be set ON by software. However, this is not clean nor easy to do
I do have access to all the source code, but it's more a question of time taken to investigate vs benefit. This is the first time it's been reported as an issue in 4 years...

And of course, if it's a problem in the firmware on the display (unlikely), that cannot be upgraded anyway.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

aBUGSworstnightmare
Posts: 1066
Joined: Tue Jun 30, 2015 1:35 pm

Re: Official 7 inch screen : white flash at startup

Wed Oct 03, 2018 1:26 pm

@jamesh : does the 7in has a Backlight enable signal. Adding some more delay to this signal might solve the issue.
As it's TN and as it's unclear to us (users) if PWM=0 is working (sorry, never tried it; question is if duty is realy 0, because if not, there will be a white flash anyhow) below sequence might not be possible.
In the driver:
Detect display type
Power up the display
Set PWM duty =0 // newly added
Hold device in reset
Turn on the DSI peripheral
Mid way through DSI setup the LCD is taken out of reset.
Set the backlight PWM (not sure what this defaults to on power up)

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

Re: Official 7 inch screen : white flash at startup

Wed Oct 03, 2018 1:31 pm

Think I know what the problem is, have a fix in code review at the moment. Not actually the panel itself but the HVS.

https://github.com/raspberrypi/firmware ... -426631667
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

Return to “Official Foundation Display”