<div dir="ltr"><div>Hi All,</div><div><br></div><div>It's useful in Android and other embedded devices to implement Always On Display (ex. showing clock faces with less than 15% OPR on screen).<br></div><div><br></div>OPR (On Pixel Ratio) is the percentage of luminance amount over the display area.<div>It's derived by gray levels of display image pattern and the backlight (or OLED) driving force (or current).</div><div>ex: OPR=100% means a full white pattern with maximum backlight (or OLED) brightness, while full black would be OPR=0%.<br><br>In userspace, when the client initializes, we can set capability via drmSetClientCap() to ask the display driver to expose the drm modes with DRM_MODE_FLAG_LOW_POWER flag.<br>Userspace can check DRM_MODE_FLAG_LOW_POWER flag to know which modes can be used to consume the least amount of power during Always On Display. </div><div>Ignoring modes with this flag set during normal operating mode.</div><div><br></div><div>Thanks,</div><div>Ken</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Daniel Vetter <<a href="mailto:daniel@ffwll.ch">daniel@ffwll.ch</a>> 於 2020年10月21日 週三 下午4:34寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Oct 21, 2020 at 07:40:48AM +0000, Simon Ser wrote:<br>
> On Wednesday, October 21, 2020 8:54 AM, Ken Huang <<a href="mailto:kenbshuang@google.com" target="_blank">kenbshuang@google.com</a>> wrote:<br>
> <br>
> > From: Adrian Salido <a href="mailto:salidoa@google.com" target="_blank">salidoa@google.com</a><br>
> ><br>
> > Some displays may support Low Power modes, however, these modes may<br>
> > require special handling as they would usually require lower OPR<br>
> > content on framebuffers.<br>
> <br>
> I'm not familiar with OPR. Can you explain what it is and what it means<br>
> for user-space?<br>
<br>
Also since this is new uapi, I guess best explanation would include the<br>
userspace code that makes sensible use of this.<br>
-Daniel<br>
-- <br>
Daniel Vetter<br>
Software Engineer, Intel Corporation<br>
<a href="http://blog.ffwll.ch" rel="noreferrer" target="_blank">http://blog.ffwll.ch</a><br>
</blockquote></div>