From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mx.groups.io with SMTP id smtpd.web12.3939.1623825187518286891 for ; Tue, 15 Jun 2021 23:33:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZipFFnMP; spf=pass (domain: gmail.com, ip: 209.85.214.173, mailfrom: df7729@gmail.com) Received: by mail-pl1-f173.google.com with SMTP id e7so600813plj.7 for ; Tue, 15 Jun 2021 23:33:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=18ZEne0/WBJSiZwJ/UfUlUiGHyuYs7C06++jaUdsHpM=; b=ZipFFnMPJeX9dSqUiaMeg7AR76MHCAn79T8wGGIwEY+zK4tQ3j9abRH3zGzaTNDNVw uTxhfQbqOCTXBJz+bNe6HUmqlTU/CQwuKyvbpDujVOUsHZ91nV6voBfKEq8oR08UdrWH KNgzzmEejR5rpntPY5BEO+UbGVEy8RrwwkBQISwzZ7g9+M4ciF9FYq7w8HB+qZF2fON5 6JbDx5XXuCBJswa086tsPyGzho9TVu6exfNJx7SwJn6Ae8iuIUb6mPT2wU/6dW9JSAPP Tx9bBcs9Br6aC36QbWoOHhE4DS5m8gq0XVzRsR7Fmb4KN7MGqLeizThqNvTGdiXwPHwu CN2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=18ZEne0/WBJSiZwJ/UfUlUiGHyuYs7C06++jaUdsHpM=; b=NKlJMJRKg/YyIXRs2I4/hX2zXUK8qSwAQbFxlvHT0yqzOAhlJgyiKSVXOPjBYiuTgz n2qJQNsg2AWQgAcyzKOwNDOVyrFFe0zTiq/DOAQMjjWaUYGO43xiWTSVyUdNAYXcwrV/ /YkMTRW1Xn5ssxLaWfHpijQA2fDzHQUQ+DEVDwzyrTY8fOFNLRpvW27z6yPEM0fBS66J /oQ93NpE/iQXAf5pfO0ppZETfY7LviSvCI5PA6f257lZDCDa1XrlIjPm7hhfigkYCmBg zAUCn27N9LImOvKXu4WFIht5MZhVtv7TmP4iX0IrT2SG3NxcSpZaZ6FLMTBIW0f2vIib joZw== X-Gm-Message-State: AOAM532LjkwopsQOV3IsBfZroigEECB37leJb/aHrVPcBR7928Ha6Bnt JtKQJyKT/awojXsURJy4KTzrian0qyqS68dGO7/29ky25Fk= X-Google-Smtp-Source: ABdhPJxLawMutZMEVBg5IlHnKvUtfFcN3GoEXo+z23pwqYwmNSzoW7kMETU5p2kQZjfWRgoRYffUC8/uzCyttVEGcEA= X-Received: by 2002:a17:902:6a8a:b029:114:7531:a52e with SMTP id n10-20020a1709026a8ab02901147531a52emr7887966plk.70.1623825186511; Tue, 15 Jun 2021 23:33:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "David F." Date: Tue, 15 Jun 2021 23:32:55 -0700 Message-ID: Subject: SIMPLE_TEXT_OUTPUT_PROTOCOL and Video Resolution To: devel@edk2.groups.io Content-Type: text/plain; charset="UTF-8" Hello, I've found that most implementation of UEFI don't automatically change the resolution when setting the mode with STOP (Simple Text Output Protocol) . You can use GOP to change it after the mode but that causes other problems. For example, using surface pro 7 in this case, with 4K screen. The default text mode is 342x96 which puts it in 2736x1824 mode which you'd expect and the text is tiny. But now you set the mode to 0 which is 80x25 and it actually sets the mode to 2736x1824 if not already in that resolution and uses a 80x25 area in the center of the screen, still tiny text you can hardly read. If you then say you want GOP in 640x480 mode (which is available as GOP mode 1 on this system, it will make the font larger but you can't see anything because it's still offset to the middle of the 2736x1824 area and you're only seeing the 640x480 upper left of that area on the screen. Likewise if you have it in 342x96 so it's fully in the upper left corner of the screen and change the mode to say 800x600 (available as GOP mode 2 on this system) it will make the text readable but the text can go off the screen in both directions because it's still 342x96 when the 100x31 STOP mode would be the correct one (which happens to be mode 2 on this system). Shouldn't setting the STOP mode handle adjusting the resolution since that's the main reason you want to change the mode so the size shown on the screen changes to something you can read. Any tricks? I've tried a bunch of things, resetting the controller, using the Reset() protocol function, and other things but nothing works. As soon as you use STOP to set the mode, it is back to high resolution and using an area centered in the screen and changing the resolution after that leaves it in the area centered in the high res screen and not in the upper left area. Thanks.