[PATCH] drm/i915/display: Fixed a screen flickering when turning on display from off
Jani Nikula
jani.nikula at linux.intel.com
Mon Mar 18 13:45:18 UTC 2024
On Mon, 18 Mar 2024, Dolan Liu <liuyong5 at huaqin.corp-partner.google.com> wrote:
> this case have been there so many years, it's time to fix it if
> possible. And user-space software may improved by themselves in we
> didn't realize place.
>
> even if not, for the proof user-space setting 0, it's better to change to
>
>
> if (level < min || level == 0 )
>
> level =max;
>
>
> Intel default FSP will set the default min is 2% (6/255). if someone
> missed the setting, it will be keep the default and level.min will be
> larger than 0.
>
> if someone changed the default min in VBT or coreboot, the user-space
> lowest level set as 0, still can go though to this logic.
>
>
> whatever, we think this one should correct back, otherwise it will keep
> occurring in each new kernel release on all Intel device, this is not
> very friendly to all developers.
>
> and the only fix way is hack patch to remove "level=max".
As far as the change goes, the original patch is pretty much the only
one we should consider. I only ever asked for 1) an issue to be reported
at fdo gitlab, and 2) a commit message properly detailing the issue.
I never asked for functional changes in the patch. Frankly, all the
alternative versions are nonsense.
I think we can try to go with the patch, but please understand that if
it regresses some silly userspace, the change will be reverted instead
of fixing that silly userspace, because that's the rule in kernel
development.
BR,
Jani.
PS. Please try to reply inline instead of top-posting in public mailing
lists.
>
>
> On 3/15/24 19:02, Ville Syrjälä wrote:
>> On Wed, Mar 06, 2024 at 12:19:42PM +0200, Jani Nikula wrote:
>>> On Wed, 06 Mar 2024, gareth.yu at intel.com wrote:
>>>> From: Gareth Yu <gareth.yu at intel.com>
>>>>
>>>> Turn on the panel from zero brightness of the last state, the panel was set
>>>> a maximum PWM in the flow. Once the panel initialization is completed, the
>>>> backlight is restored to zero brightness. There is a flckering generated.
>>> Please be more precise in describing what exactly happens and
>>> when. Driver probe? Modeset? What restores backlight to zero brightness?
>>>
>>> Better yet, please file a bug at fdo gitlab, attach full dmesg with
>>> debugs, etc.
>>>
>>> Before we had the concept of minimum brightness, the minimum was always
>>> 0. And the check was:
>>>
>>> if (level == 0)
>>> level = max;
>>>
>>> Historically, the point was, if you're enabling the display and
>>> backlight, you don't want it to be at 0 brightness, because for most
>>> displays that means a black screen.
>> I think that hack was originally added becaue some silly
>> userspace thingy was setting the backlight level to 0 on
>> suspend/etc. and then forgetting to restore it back to a
>> sane value afterwards. Dunno if that nonsense behaviour
>> still persists to this day.
>>
--
Jani Nikula, Intel
More information about the Intel-gfx
mailing list