<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 16, 2021, at 2:45 PM, David F. <<a href="mailto:df7729@gmail.com" class="">df7729@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Also, I found if there are 2 GOP handles and you change the mode of<br class="">one, the other one doesn't reflect the change (but still doesn't solve<br class="">anything with the original question), are you supposed to set the mode<br class="">on every handle to keep that part in sync?<br class=""><br class=""></div></div></blockquote><div><br class=""></div><div>A common implementation is to have the Conspliter [1] driver that produces virtual handles that aggregate how many actual devices you have and manages policy. </div><div><br class=""></div><div>You should grab the protocols on the gST->ConsoleOutHandle as these are the Spec defined active console devices. </div><div><br class=""></div><div><br class=""></div><div>In terms on Simple Text Output Protocol on Graphics this is the default driver in edk2 [2]. These are the config knobs you can set from your DSC file to control defaults. </div><div><br class=""></div><div></div><div><table class="js-file-line-container highlight tab-size" data-tab-size="8" data-paste-markdown-skip="" style="box-sizing: border-box; border-spacing: 0px; border-collapse: collapse; tab-size: 8; caret-color: rgb(36, 41, 46); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 14px;"><tbody style="box-sizing: border-box;" class=""><tr style="box-sizing: border-box;" class=""><td id="L65" class="blob-num js-line-number" data-line-number="65" style="box-sizing: border-box; padding: 0px 10px; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: var(--color-diff-blob-num-text); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC65" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; color: var(--color-text-primary); word-wrap: normal; white-space: pre;">[Pcd]
</td></tr><tr style="box-sizing: border-box;" class=""><td id="L66" class="blob-num js-line-number" data-line-number="66" style="box-sizing: border-box; padding: 0px 10px; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: var(--color-diff-blob-num-text); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC66" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; color: var(--color-text-primary); word-wrap: normal; white-space: pre;">  gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution ## SOMETIMES_CONSUMES
</td></tr><tr style="box-sizing: border-box;" class=""><td id="L67" class="blob-num js-line-number" data-line-number="67" style="box-sizing: border-box; padding: 0px 10px; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: var(--color-diff-blob-num-text); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC67" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; color: var(--color-text-primary); word-wrap: normal; white-space: pre;">  gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution   ## SOMETIMES_CONSUMES
</td></tr><tr style="box-sizing: border-box;" class=""><td id="L68" class="blob-num js-line-number" data-line-number="68" style="box-sizing: border-box; padding: 0px 10px; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: var(--color-diff-blob-num-text); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC68" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; color: var(--color-text-primary); word-wrap: normal; white-space: pre;">  gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow                 ## SOMETIMES_CONSUMES
</td></tr><tr style="box-sizing: border-box;" class=""><td id="L69" class="blob-num js-line-number" data-line-number="69" style="box-sizing: border-box; padding: 0px 10px; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: var(--color-diff-blob-num-text); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td><td id="LC69" class="js-file-line blob-code-inner blob-code" style="box-sizing: border-box; padding: 0px 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; color: var(--color-text-primary); word-wrap: normal; white-space: pre;">  gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn              ## SOMETIMES_CONSUMES
</td></tr><tr style="box-sizing: border-box;" class=""><td id="L70" class="blob-num js-line-number" data-line-number="70" style="box-sizing: border-box; padding: 0px 10px; width: 50px; min-width: 50px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 20px; color: var(--color-diff-blob-num-text); text-align: right; white-space: nowrap; vertical-align: top; cursor: pointer; -webkit-user-select: none;"></td></tr></tbody></table>Note: If you have serial active that may mess with the Conspliter and force it to pick a lower resolution since it has to find the best match between the serial and graphics Simple Text In. So try the Graphics without the serial terminal connect to see if it does different stuff. </div><div><br class=""></div><div><br class=""></div><div>[1] <a href="https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Universal/Console/ConSplitterDxe" class="">https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Universal/Console/ConSplitterDxe</a></div><div><br class=""></div><div>[2] <a href="https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Universal/Console/GraphicsConsoleDxe" class="">https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Universal/Console/GraphicsConsoleDxe</a></div><div><br class=""></div><div><br class=""></div><div>Thanks,</div><div><br class=""></div><div>Andrew Fish</div><br class=""><blockquote type="cite" class=""><div class=""><div class="">On Tue, Jun 15, 2021 at 11:33 PM David F. via <a href="http://groups.io" class="">groups.io</a><br class=""><<a href="mailto:df7729=gmail.com@groups.io" class="">df7729=gmail.com@groups.io</a>> wrote:<br class=""><blockquote type="cite" class=""><br class="">Hello,<br class=""><br class="">I've found that most implementation of UEFI don't automatically change<br class="">the resolution when setting the mode with STOP (Simple Text Output<br class="">Protocol) .  You can use GOP to change it after the mode but that<br class="">causes other problems.  For example, using surface pro 7 in this case,<br class="">with 4K screen.  The default text mode is 342x96 which puts it in<br class="">2736x1824 mode which you'd expect and the text is tiny.  But now you<br class="">set the mode to 0 which is 80x25 and it actually sets the mode to<br class="">2736x1824 if not already in that resolution and uses a 80x25 area in<br class="">the center of the screen, still tiny text you can hardly read.  If you<br class="">then say you want GOP in 640x480 mode (which is available as GOP mode<br class="">1 on this system, it will make the font larger but you can't see<br class="">anything because it's still offset to the middle of the 2736x1824 area<br class="">and you're only seeing the 640x480 upper left of that area on the<br class="">screen.   Likewise if you have it in 342x96 so it's fully in the upper<br class="">left corner of the screen and change the mode to say 800x600<br class="">(available as GOP mode 2 on this system) it will make the text<br class="">readable but the text can go off the screen in both directions because<br class="">it's still 342x96 when the 100x31 STOP mode would be the correct one<br class="">(which happens to be mode 2 on this system).<br class=""><br class="">Shouldn't setting the STOP mode handle adjusting the resolution since<br class="">that's the main reason you want to change the mode so the size shown<br class="">on the screen changes to something you can read.<br class=""><br class="">Any tricks? I've tried a bunch of things, resetting the controller,<br class="">using the Reset() protocol function, and other things but nothing<br class="">works.  As soon as you use STOP to set the mode, it is back to high<br class="">resolution and using an area centered in the screen and changing the<br class="">resolution after that leaves it in the area centered in the high res<br class="">screen and not in the upper left area.<br class=""><br class="">Thanks.<br class=""><br class=""></blockquote><br class=""><br class=""><br class=""><br class=""><br class=""></div></div></blockquote></div><br class=""></body></html>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr>   Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/76612">View/Reply Online (#76612)</a> |    |  <a target="_blank" href="https://groups.io/mt/83575008/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>