* [PATCH] MdeModulePkg/TerminalDxe: add modes @ 2022-09-19 8:56 Konstantin Aladyshev 2022-09-19 21:01 ` [edk2-devel] " Michael D Kinney 0 siblings, 1 reply; 11+ messages in thread From: Konstantin Aladyshev @ 2022-09-19 8:56 UTC (permalink / raw) To: devel; +Cc: jian.j.wang, gaoliming, ray.ni, Konstantin Aladyshev The commit b807174fecacf4c9f8400cab4d6fb3f580284021 ("MdeModulePkg/GraphicsConsoleDxe: add modes") has added modes for the high display resolutions. Support these modes in the TerminalDxe as well, so it would be possible to select the text mode that would take all the available screen space. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> --- MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c index e2d779c783..6b7b970516 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c @@ -115,6 +115,9 @@ TERMINAL_CONSOLE_MODE_DATA mTerminalConsoleModeData[] = { { 80, 25 }, { 80, 50 }, { 100, 31 }, + { 128, 40 }, + { 160, 42 }, + { 240, 56 }, // // New modes can be added here. // -- 2.25.1 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes 2022-09-19 8:56 [PATCH] MdeModulePkg/TerminalDxe: add modes Konstantin Aladyshev @ 2022-09-19 21:01 ` Michael D Kinney 2022-09-21 1:25 ` 回复: " gaoliming 0 siblings, 1 reply; 11+ messages in thread From: Michael D Kinney @ 2022-09-19 21:01 UTC (permalink / raw) To: devel@edk2.groups.io, aladyshev22@gmail.com, Kinney, Michael D Cc: Wang, Jian J, Gao, Liming, Ni, Ray This looks like a reasonable update to support platforms that have both graphical consoles and serial consoles. Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Konstantin Aladyshev > Sent: Monday, September 19, 2022 1:57 AM > To: devel@edk2.groups.io > Cc: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com>; Konstantin > Aladyshev <aladyshev22@gmail.com> > Subject: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > The commit b807174fecacf4c9f8400cab4d6fb3f580284021 > ("MdeModulePkg/GraphicsConsoleDxe: add modes") has added modes for the > high display resolutions. Support these modes in the TerminalDxe as > well, so it would be possible to select the text mode that would take > all the available screen space. > > Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> > --- > MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > index e2d779c783..6b7b970516 100644 > --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > @@ -115,6 +115,9 @@ TERMINAL_CONSOLE_MODE_DATA mTerminalConsoleModeData[] = { > { 80, 25 }, > > { 80, 50 }, > > { 100, 31 }, > > + { 128, 40 }, > > + { 160, 42 }, > > + { 240, 56 }, > > // > > // New modes can be added here. > > // > > -- > 2.25.1 > > > > -=-=-=-=-=-= > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#93935): https://edk2.groups.io/g/devel/message/93935 > Mute This Topic: https://groups.io/mt/93777396/1643496 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [michael.d.kinney@intel.com] > -=-=-=-=-=-= > ^ permalink raw reply [flat|nested] 11+ messages in thread
* 回复: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes 2022-09-19 21:01 ` [edk2-devel] " Michael D Kinney @ 2022-09-21 1:25 ` gaoliming 2022-09-21 1:46 ` Michael D Kinney 0 siblings, 1 reply; 11+ messages in thread From: gaoliming @ 2022-09-21 1:25 UTC (permalink / raw) To: 'Kinney, Michael D', devel, aladyshev22 Cc: 'Wang, Jian J', 'Ni, Ray' Konstantin: Do you try the terminal software (such as Putty) to display the text mode 160, 42 or 240, 56? I try Putty in my desktop. It can't display 240 * 56 in one screen. Thanks Liming > -----邮件原件----- > 发件人: Kinney, Michael D <michael.d.kinney@intel.com> > 发送时间: 2022年9月20日 5:02 > 收件人: devel@edk2.groups.io; aladyshev22@gmail.com; Kinney, Michael D > <michael.d.kinney@intel.com> > 抄送: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com> > 主题: RE: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > This looks like a reasonable update to support platforms that have both > graphical consoles and serial consoles. > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > > > -----Original Message----- > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > Konstantin Aladyshev > > Sent: Monday, September 19, 2022 1:57 AM > > To: devel@edk2.groups.io > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com>; Konstantin > > Aladyshev <aladyshev22@gmail.com> > > Subject: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > The commit b807174fecacf4c9f8400cab4d6fb3f580284021 > > ("MdeModulePkg/GraphicsConsoleDxe: add modes") has added modes for > the > > high display resolutions. Support these modes in the TerminalDxe as > > well, so it would be possible to select the text mode that would take > > all the available screen space. > > > > Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> > > --- > > MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > index e2d779c783..6b7b970516 100644 > > --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > @@ -115,6 +115,9 @@ TERMINAL_CONSOLE_MODE_DATA > mTerminalConsoleModeData[] = { > > { 80, 25 }, > > > > { 80, 50 }, > > > > { 100, 31 }, > > > > + { 128, 40 }, > > > > + { 160, 42 }, > > > > + { 240, 56 }, > > > > // > > > > // New modes can be added here. > > > > // > > > > -- > > 2.25.1 > > > > > > > > -=-=-=-=-=-= > > Groups.io Links: You receive all messages sent to this group. > > View/Reply Online (#93935): > https://edk2.groups.io/g/devel/message/93935 > > Mute This Topic: https://groups.io/mt/93777396/1643496 > > Group Owner: devel+owner@edk2.groups.io > > Unsubscribe: https://edk2.groups.io/g/devel/unsub > [michael.d.kinney@intel.com] > > -=-=-=-=-=-= > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes 2022-09-21 1:25 ` 回复: " gaoliming @ 2022-09-21 1:46 ` Michael D Kinney 2022-09-21 8:24 ` Konstantin Aladyshev 0 siblings, 1 reply; 11+ messages in thread From: Michael D Kinney @ 2022-09-21 1:46 UTC (permalink / raw) To: devel@edk2.groups.io, Gao, Liming, aladyshev22@gmail.com, Kinney, Michael D Cc: Wang, Jian J, Ni, Ray Tera Term works. Mike > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of gaoliming via groups.io > Sent: Tuesday, September 20, 2022 6:26 PM > To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io; aladyshev22@gmail.com > Cc: Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray <ray.ni@intel.com> > Subject: 回复: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > Konstantin: > Do you try the terminal software (such as Putty) to display the text mode 160, 42 or 240, 56? > I try Putty in my desktop. It can't display 240 * 56 in one screen. > > Thanks > Liming > > -----邮件原件----- > > 发件人: Kinney, Michael D <michael.d.kinney@intel.com> > > 发送时间: 2022年9月20日 5:02 > > 收件人: devel@edk2.groups.io; aladyshev22@gmail.com; Kinney, Michael D > > <michael.d.kinney@intel.com> > > 抄送: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com> > > 主题: RE: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > This looks like a reasonable update to support platforms that have both > > graphical consoles and serial consoles. > > > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > > > > > > -----Original Message----- > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > > Konstantin Aladyshev > > > Sent: Monday, September 19, 2022 1:57 AM > > > To: devel@edk2.groups.io > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com>; Konstantin > > > Aladyshev <aladyshev22@gmail.com> > > > Subject: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > The commit b807174fecacf4c9f8400cab4d6fb3f580284021 > > > ("MdeModulePkg/GraphicsConsoleDxe: add modes") has added modes for > > the > > > high display resolutions. Support these modes in the TerminalDxe as > > > well, so it would be possible to select the text mode that would take > > > all the available screen space. > > > > > > Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> > > > --- > > > MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > index e2d779c783..6b7b970516 100644 > > > --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > @@ -115,6 +115,9 @@ TERMINAL_CONSOLE_MODE_DATA > > mTerminalConsoleModeData[] = { > > > { 80, 25 }, > > > > > > { 80, 50 }, > > > > > > { 100, 31 }, > > > > > > + { 128, 40 }, > > > > > > + { 160, 42 }, > > > > > > + { 240, 56 }, > > > > > > // > > > > > > // New modes can be added here. > > > > > > // > > > > > > -- > > > 2.25.1 > > > > > > > > > > > > -=-=-=-=-=-= > > > Groups.io Links: You receive all messages sent to this group. > > > View/Reply Online (#93935): > > https://edk2.groups.io/g/devel/message/93935 > > > Mute This Topic: https://groups.io/mt/93777396/1643496 > > > Group Owner: devel+owner@edk2.groups.io > > > Unsubscribe: https://edk2.groups.io/g/devel/unsub > > [michael.d.kinney@intel.com] > > > -=-=-=-=-=-= > > > > > > > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes 2022-09-21 1:46 ` Michael D Kinney @ 2022-09-21 8:24 ` Konstantin Aladyshev 2022-09-21 16:27 ` Michael D Kinney 0 siblings, 1 reply; 11+ messages in thread From: Konstantin Aladyshev @ 2022-09-21 8:24 UTC (permalink / raw) To: Kinney, Michael D Cc: devel@edk2.groups.io, Gao, Liming, Wang, Jian J, Ni, Ray I have tested it in the following way: - launch OVMF in Linux and connect with vnc - change resolution via the form browser (Device Manager -> OVMF Platform Configuration) from the default 640x480 to the 1920x1080 - "reset" - after the reset the system will boot to the 1920x1080 resolution and text mode 80x25 - check "mode" command output Before the commit this command displays only these modes: ``` Shell> mode Available modes for console output device. Col 80 Row 25 * Col 80 Row 50 Col 100 Row 31 ``` But with this commit the high resolution modes are present in the output: ``` Shell> mode Available modes for console output device. Col 80 Row 25 * Col 80 Row 50 Col 100 Row 31 Col 128 Row 40 Col 160 Row 42 Col 240 Row 56 ``` And in my case setting the appropriate "mode 240 56" at runtime works just fine: ``` Shell> mode 240 56 ``` After that the text output starts using the full screen. Best regards, Konstantin Aladyshev On Wed, Sep 21, 2022 at 4:46 AM Kinney, Michael D <michael.d.kinney@intel.com> wrote: > > Tera Term works. > > Mike > > > -----Original Message----- > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of gaoliming via groups.io > > Sent: Tuesday, September 20, 2022 6:26 PM > > To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io; aladyshev22@gmail.com > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray <ray.ni@intel.com> > > Subject: 回复: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > Konstantin: > > Do you try the terminal software (such as Putty) to display the text mode 160, 42 or 240, 56? > > I try Putty in my desktop. It can't display 240 * 56 in one screen. > > > > Thanks > > Liming > > > -----邮件原件----- > > > 发件人: Kinney, Michael D <michael.d.kinney@intel.com> > > > 发送时间: 2022年9月20日 5:02 > > > 收件人: devel@edk2.groups.io; aladyshev22@gmail.com; Kinney, Michael D > > > <michael.d.kinney@intel.com> > > > 抄送: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com> > > > 主题: RE: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > This looks like a reasonable update to support platforms that have both > > > graphical consoles and serial consoles. > > > > > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > > > > > > > > > -----Original Message----- > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > > > Konstantin Aladyshev > > > > Sent: Monday, September 19, 2022 1:57 AM > > > > To: devel@edk2.groups.io > > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com>; Konstantin > > > > Aladyshev <aladyshev22@gmail.com> > > > > Subject: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > The commit b807174fecacf4c9f8400cab4d6fb3f580284021 > > > > ("MdeModulePkg/GraphicsConsoleDxe: add modes") has added modes for > > > the > > > > high display resolutions. Support these modes in the TerminalDxe as > > > > well, so it would be possible to select the text mode that would take > > > > all the available screen space. > > > > > > > > Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> > > > > --- > > > > MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ > > > > 1 file changed, 3 insertions(+) > > > > > > > > diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > index e2d779c783..6b7b970516 100644 > > > > --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > @@ -115,6 +115,9 @@ TERMINAL_CONSOLE_MODE_DATA > > > mTerminalConsoleModeData[] = { > > > > { 80, 25 }, > > > > > > > > { 80, 50 }, > > > > > > > > { 100, 31 }, > > > > > > > > + { 128, 40 }, > > > > > > > > + { 160, 42 }, > > > > > > > > + { 240, 56 }, > > > > > > > > // > > > > > > > > // New modes can be added here. > > > > > > > > // > > > > > > > > -- > > > > 2.25.1 > > > > > > > > > > > > > > > > -=-=-=-=-=-= > > > > Groups.io Links: You receive all messages sent to this group. > > > > View/Reply Online (#93935): > > > https://edk2.groups.io/g/devel/message/93935 > > > > Mute This Topic: https://groups.io/mt/93777396/1643496 > > > > Group Owner: devel+owner@edk2.groups.io > > > > Unsubscribe: https://edk2.groups.io/g/devel/unsub > > > [michael.d.kinney@intel.com] > > > > -=-=-=-=-=-= > > > > > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes 2022-09-21 8:24 ` Konstantin Aladyshev @ 2022-09-21 16:27 ` Michael D Kinney 2022-09-22 8:23 ` Konstantin Aladyshev 0 siblings, 1 reply; 11+ messages in thread From: Michael D Kinney @ 2022-09-21 16:27 UTC (permalink / raw) To: devel@edk2.groups.io, aladyshev22@gmail.com, Kinney, Michael D Cc: Gao, Liming, Wang, Jian J, Ni, Ray The other way to get full screen text on graphical console is to disable the serial console in the Boot Maintenance Manager. If the serial console is disabled then ConSplitterDxe will only see the text modes supported by GraphicsConsoleDxe which will include these higher text modes. Is the issue that you are trying to solve supporting larger serial console modes or just wanting to use the largest possible text mode at a given graphics resolution? Mike > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Konstantin Aladyshev > Sent: Wednesday, September 21, 2022 1:24 AM > To: Kinney, Michael D <michael.d.kinney@intel.com> > Cc: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn>; Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray > <ray.ni@intel.com> > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > I have tested it in the following way: > - launch OVMF in Linux and connect with vnc > - change resolution via the form browser (Device Manager -> OVMF > Platform Configuration) from the default 640x480 to the 1920x1080 > - "reset" > - after the reset the system will boot to the 1920x1080 resolution and > text mode 80x25 > - check "mode" command output > > Before the commit this command displays only these modes: > ``` > Shell> mode > Available modes for console output device. > Col 80 Row 25 * > Col 80 Row 50 > Col 100 Row 31 > ``` > But with this commit the high resolution modes are present in the output: > ``` > Shell> mode > Available modes for console output device. > Col 80 Row 25 * > Col 80 Row 50 > Col 100 Row 31 > Col 128 Row 40 > Col 160 Row 42 > Col 240 Row 56 > ``` > And in my case setting the appropriate "mode 240 56" at runtime works just fine: > ``` > Shell> mode 240 56 > ``` > After that the text output starts using the full screen. > > Best regards, > Konstantin Aladyshev > > On Wed, Sep 21, 2022 at 4:46 AM Kinney, Michael D > <michael.d.kinney@intel.com> wrote: > > > > Tera Term works. > > > > Mike > > > > > -----Original Message----- > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of gaoliming via groups.io > > > Sent: Tuesday, September 20, 2022 6:26 PM > > > To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io; aladyshev22@gmail.com > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray <ray.ni@intel.com> > > > Subject: 回复: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > Konstantin: > > > Do you try the terminal software (such as Putty) to display the text mode 160, 42 or 240, 56? > > > I try Putty in my desktop. It can't display 240 * 56 in one screen. > > > > > > Thanks > > > Liming > > > > -----邮件原件----- > > > > 发件人: Kinney, Michael D <michael.d.kinney@intel.com> > > > > 发送时间: 2022年9月20日 5:02 > > > > 收件人: devel@edk2.groups.io; aladyshev22@gmail.com; Kinney, Michael D > > > > <michael.d.kinney@intel.com> > > > > 抄送: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com> > > > > 主题: RE: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > This looks like a reasonable update to support platforms that have both > > > > graphical consoles and serial consoles. > > > > > > > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > > > > > > > > > > > > -----Original Message----- > > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > > > > Konstantin Aladyshev > > > > > Sent: Monday, September 19, 2022 1:57 AM > > > > > To: devel@edk2.groups.io > > > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com>; Konstantin > > > > > Aladyshev <aladyshev22@gmail.com> > > > > > Subject: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > The commit b807174fecacf4c9f8400cab4d6fb3f580284021 > > > > > ("MdeModulePkg/GraphicsConsoleDxe: add modes") has added modes for > > > > the > > > > > high display resolutions. Support these modes in the TerminalDxe as > > > > > well, so it would be possible to select the text mode that would take > > > > > all the available screen space. > > > > > > > > > > Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> > > > > > --- > > > > > MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ > > > > > 1 file changed, 3 insertions(+) > > > > > > > > > > diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > index e2d779c783..6b7b970516 100644 > > > > > --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > @@ -115,6 +115,9 @@ TERMINAL_CONSOLE_MODE_DATA > > > > mTerminalConsoleModeData[] = { > > > > > { 80, 25 }, > > > > > > > > > > { 80, 50 }, > > > > > > > > > > { 100, 31 }, > > > > > > > > > > + { 128, 40 }, > > > > > > > > > > + { 160, 42 }, > > > > > > > > > > + { 240, 56 }, > > > > > > > > > > // > > > > > > > > > > // New modes can be added here. > > > > > > > > > > // > > > > > > > > > > -- > > > > > 2.25.1 > > > > > > > > > > > > > > > > > > > > -=-=-=-=-=-= > > > > > Groups.io Links: You receive all messages sent to this group. > > > > > View/Reply Online (#93935): > > > > https://edk2.groups.io/g/devel/message/93935 > > > > > Mute This Topic: https://groups.io/mt/93777396/1643496 > > > > > Group Owner: devel+owner@edk2.groups.io > > > > > Unsubscribe: https://edk2.groups.io/g/devel/unsub > > > > [michael.d.kinney@intel.com] > > > > > -=-=-=-=-=-= > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes 2022-09-21 16:27 ` Michael D Kinney @ 2022-09-22 8:23 ` Konstantin Aladyshev 2022-09-22 16:10 ` Michael D Kinney 0 siblings, 1 reply; 11+ messages in thread From: Konstantin Aladyshev @ 2022-09-22 8:23 UTC (permalink / raw) To: Kinney, Michael D Cc: devel@edk2.groups.io, Gao, Liming, Wang, Jian J, Ni, Ray > Is the issue that you are trying to solve supporting larger serial console modes or just wanting to use the largest possible text mode at a given graphics resolution? I spotted this issue when I wanted to use the largest possible text mode in UEFI shell at high graphics resolutions. Is it not enough reason for this commit? > The other way to get full screen text on the graphical console is to disable the serial console in the Boot Maintenance Manager. Can you please elaborate this? I've tried to disable UART in "Boot Maintenance Manager -> Console Options" like this: ``` Console Input Device Select: PciRoot(0x0)/Pci(0x1,0x0)/Acpi(PNP0303,0x0) [X] PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] Console Output Device Select: PciRoot(0x0)/Pci(0x2,0x0)/AcpiAdr(0x80010100) [X] PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] Console Standard Error Device Select: PciRoot(0x0)/Pci(0x2,0x0)/AcpiAdr(0x80010100) [X] PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] ``` But after reset, the console is 80x25 and all UART options are checked again. Also there is a menu "Boot Maintenance Manager -> Console Options -> Console Output Mode Select" that has "Set Console Output Mode", and it is always "80x25" without any options for me. Best regards, Konstantin Aladyshev On Wed, Sep 21, 2022 at 7:28 PM Kinney, Michael D <michael.d.kinney@intel.com> wrote: > > The other way to get full screen text on graphical console is to disable the serial console > in the Boot Maintenance Manager. > > If the serial console is disabled then ConSplitterDxe will only see the text modes supported > by GraphicsConsoleDxe which will include these higher text modes. > > Is the issue that you are trying to solve supporting larger serial console modes or just > wanting to use the largest possible text mode at a given graphics resolution? > > Mike > > > -----Original Message----- > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Konstantin Aladyshev > > Sent: Wednesday, September 21, 2022 1:24 AM > > To: Kinney, Michael D <michael.d.kinney@intel.com> > > Cc: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn>; Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray > > <ray.ni@intel.com> > > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > I have tested it in the following way: > > - launch OVMF in Linux and connect with vnc > > - change resolution via the form browser (Device Manager -> OVMF > > Platform Configuration) from the default 640x480 to the 1920x1080 > > - "reset" > > - after the reset the system will boot to the 1920x1080 resolution and > > text mode 80x25 > > - check "mode" command output > > > > Before the commit this command displays only these modes: > > ``` > > Shell> mode > > Available modes for console output device. > > Col 80 Row 25 * > > Col 80 Row 50 > > Col 100 Row 31 > > ``` > > But with this commit the high resolution modes are present in the output: > > ``` > > Shell> mode > > Available modes for console output device. > > Col 80 Row 25 * > > Col 80 Row 50 > > Col 100 Row 31 > > Col 128 Row 40 > > Col 160 Row 42 > > Col 240 Row 56 > > ``` > > And in my case setting the appropriate "mode 240 56" at runtime works just fine: > > ``` > > Shell> mode 240 56 > > ``` > > After that the text output starts using the full screen. > > > > Best regards, > > Konstantin Aladyshev > > > > On Wed, Sep 21, 2022 at 4:46 AM Kinney, Michael D > > <michael.d.kinney@intel.com> wrote: > > > > > > Tera Term works. > > > > > > Mike > > > > > > > -----Original Message----- > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of gaoliming via groups.io > > > > Sent: Tuesday, September 20, 2022 6:26 PM > > > > To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io; aladyshev22@gmail.com > > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray <ray.ni@intel.com> > > > > Subject: 回复: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > Konstantin: > > > > Do you try the terminal software (such as Putty) to display the text mode 160, 42 or 240, 56? > > > > I try Putty in my desktop. It can't display 240 * 56 in one screen. > > > > > > > > Thanks > > > > Liming > > > > > -----邮件原件----- > > > > > 发件人: Kinney, Michael D <michael.d.kinney@intel.com> > > > > > 发送时间: 2022年9月20日 5:02 > > > > > 收件人: devel@edk2.groups.io; aladyshev22@gmail.com; Kinney, Michael D > > > > > <michael.d.kinney@intel.com> > > > > > 抄送: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com> > > > > > 主题: RE: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > This looks like a reasonable update to support platforms that have both > > > > > graphical consoles and serial consoles. > > > > > > > > > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > > > > > Konstantin Aladyshev > > > > > > Sent: Monday, September 19, 2022 1:57 AM > > > > > > To: devel@edk2.groups.io > > > > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com>; Konstantin > > > > > > Aladyshev <aladyshev22@gmail.com> > > > > > > Subject: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > > > The commit b807174fecacf4c9f8400cab4d6fb3f580284021 > > > > > > ("MdeModulePkg/GraphicsConsoleDxe: add modes") has added modes for > > > > > the > > > > > > high display resolutions. Support these modes in the TerminalDxe as > > > > > > well, so it would be possible to select the text mode that would take > > > > > > all the available screen space. > > > > > > > > > > > > Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> > > > > > > --- > > > > > > MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ > > > > > > 1 file changed, 3 insertions(+) > > > > > > > > > > > > diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > index e2d779c783..6b7b970516 100644 > > > > > > --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > @@ -115,6 +115,9 @@ TERMINAL_CONSOLE_MODE_DATA > > > > > mTerminalConsoleModeData[] = { > > > > > > { 80, 25 }, > > > > > > > > > > > > { 80, 50 }, > > > > > > > > > > > > { 100, 31 }, > > > > > > > > > > > > + { 128, 40 }, > > > > > > > > > > > > + { 160, 42 }, > > > > > > > > > > > > + { 240, 56 }, > > > > > > > > > > > > // > > > > > > > > > > > > // New modes can be added here. > > > > > > > > > > > > // > > > > > > > > > > > > -- > > > > > > 2.25.1 > > > > > > > > > > > > > > > > > > > > > > > > -=-=-=-=-=-= > > > > > > Groups.io Links: You receive all messages sent to this group. > > > > > > View/Reply Online (#93935): > > > > > https://edk2.groups.io/g/devel/message/93935 > > > > > > Mute This Topic: https://groups.io/mt/93777396/1643496 > > > > > > Group Owner: devel+owner@edk2.groups.io > > > > > > Unsubscribe: https://edk2.groups.io/g/devel/unsub > > > > > [michael.d.kinney@intel.com] > > > > > > -=-=-=-=-=-= > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes 2022-09-22 8:23 ` Konstantin Aladyshev @ 2022-09-22 16:10 ` Michael D Kinney 2022-09-22 16:49 ` Konstantin Aladyshev 0 siblings, 1 reply; 11+ messages in thread From: Michael D Kinney @ 2022-09-22 16:10 UTC (permalink / raw) To: Konstantin Aladyshev, Kinney, Michael D Cc: devel@edk2.groups.io, Gao, Liming, Wang, Jian J, Ni, Ray If the goal is to support a mix of graphical and serial consoles both with high text resolutions, then your patch is appropriate. It looks like you are observing some unexpected limitations in the OVMF console management. Perhaps the OVMF maintainers can provide some advice on how to configure OVMF with serial consoles disabled. Are you using QEMU to run OVMF? Are you including UARTs in QEMU launch? Mike > -----Original Message----- > From: Konstantin Aladyshev <aladyshev22@gmail.com> > Sent: Thursday, September 22, 2022 1:23 AM > To: Kinney, Michael D <michael.d.kinney@intel.com> > Cc: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn>; Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray > <ray.ni@intel.com> > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > Is the issue that you are trying to solve supporting larger serial console modes or just wanting to use the largest possible > text mode at a given graphics resolution? > > I spotted this issue when I wanted to use the largest possible text > mode in UEFI shell at high graphics resolutions. Is it not enough > reason for this commit? > > > The other way to get full screen text on the graphical console is to disable the serial console in the Boot Maintenance > Manager. > > Can you please elaborate this? I've tried to disable UART in "Boot > Maintenance Manager -> Console Options" like this: > ``` > Console Input Device Select: > PciRoot(0x0)/Pci(0x1,0x0)/Acpi(PNP0303,0x0) [X] > PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] > > Console Output Device Select: > PciRoot(0x0)/Pci(0x2,0x0)/AcpiAdr(0x80010100) [X] > PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] > > Console Standard Error Device Select: > PciRoot(0x0)/Pci(0x2,0x0)/AcpiAdr(0x80010100) [X] > PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] > ``` > But after reset, the console is 80x25 and all UART options are checked again. > > Also there is a menu "Boot Maintenance Manager -> Console Options -> > Console Output Mode Select" that has "Set Console Output Mode", and it > is always "80x25" without any options for me. > > Best regards, > Konstantin Aladyshev > > On Wed, Sep 21, 2022 at 7:28 PM Kinney, Michael D > <michael.d.kinney@intel.com> wrote: > > > > The other way to get full screen text on graphical console is to disable the serial console > > in the Boot Maintenance Manager. > > > > If the serial console is disabled then ConSplitterDxe will only see the text modes supported > > by GraphicsConsoleDxe which will include these higher text modes. > > > > Is the issue that you are trying to solve supporting larger serial console modes or just > > wanting to use the largest possible text mode at a given graphics resolution? > > > > Mike > > > > > -----Original Message----- > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Konstantin Aladyshev > > > Sent: Wednesday, September 21, 2022 1:24 AM > > > To: Kinney, Michael D <michael.d.kinney@intel.com> > > > Cc: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn>; Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray > > > <ray.ni@intel.com> > > > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > I have tested it in the following way: > > > - launch OVMF in Linux and connect with vnc > > > - change resolution via the form browser (Device Manager -> OVMF > > > Platform Configuration) from the default 640x480 to the 1920x1080 > > > - "reset" > > > - after the reset the system will boot to the 1920x1080 resolution and > > > text mode 80x25 > > > - check "mode" command output > > > > > > Before the commit this command displays only these modes: > > > ``` > > > Shell> mode > > > Available modes for console output device. > > > Col 80 Row 25 * > > > Col 80 Row 50 > > > Col 100 Row 31 > > > ``` > > > But with this commit the high resolution modes are present in the output: > > > ``` > > > Shell> mode > > > Available modes for console output device. > > > Col 80 Row 25 * > > > Col 80 Row 50 > > > Col 100 Row 31 > > > Col 128 Row 40 > > > Col 160 Row 42 > > > Col 240 Row 56 > > > ``` > > > And in my case setting the appropriate "mode 240 56" at runtime works just fine: > > > ``` > > > Shell> mode 240 56 > > > ``` > > > After that the text output starts using the full screen. > > > > > > Best regards, > > > Konstantin Aladyshev > > > > > > On Wed, Sep 21, 2022 at 4:46 AM Kinney, Michael D > > > <michael.d.kinney@intel.com> wrote: > > > > > > > > Tera Term works. > > > > > > > > Mike > > > > > > > > > -----Original Message----- > > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of gaoliming via groups.io > > > > > Sent: Tuesday, September 20, 2022 6:26 PM > > > > > To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io; aladyshev22@gmail.com > > > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray <ray.ni@intel.com> > > > > > Subject: 回复: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > Konstantin: > > > > > Do you try the terminal software (such as Putty) to display the text mode 160, 42 or 240, 56? > > > > > I try Putty in my desktop. It can't display 240 * 56 in one screen. > > > > > > > > > > Thanks > > > > > Liming > > > > > > -----邮件原件----- > > > > > > 发件人: Kinney, Michael D <michael.d.kinney@intel.com> > > > > > > 发送时间: 2022年9月20日 5:02 > > > > > > 收件人: devel@edk2.groups.io; aladyshev22@gmail.com; Kinney, Michael D > > > > > > <michael.d.kinney@intel.com> > > > > > > 抄送: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com> > > > > > > 主题: RE: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > > > This looks like a reasonable update to support platforms that have both > > > > > > graphical consoles and serial consoles. > > > > > > > > > > > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > > > > > > Konstantin Aladyshev > > > > > > > Sent: Monday, September 19, 2022 1:57 AM > > > > > > > To: devel@edk2.groups.io > > > > > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com>; Konstantin > > > > > > > Aladyshev <aladyshev22@gmail.com> > > > > > > > Subject: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > > > > > The commit b807174fecacf4c9f8400cab4d6fb3f580284021 > > > > > > > ("MdeModulePkg/GraphicsConsoleDxe: add modes") has added modes for > > > > > > the > > > > > > > high display resolutions. Support these modes in the TerminalDxe as > > > > > > > well, so it would be possible to select the text mode that would take > > > > > > > all the available screen space. > > > > > > > > > > > > > > Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> > > > > > > > --- > > > > > > > MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ > > > > > > > 1 file changed, 3 insertions(+) > > > > > > > > > > > > > > diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > index e2d779c783..6b7b970516 100644 > > > > > > > --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > @@ -115,6 +115,9 @@ TERMINAL_CONSOLE_MODE_DATA > > > > > > mTerminalConsoleModeData[] = { > > > > > > > { 80, 25 }, > > > > > > > > > > > > > > { 80, 50 }, > > > > > > > > > > > > > > { 100, 31 }, > > > > > > > > > > > > > > + { 128, 40 }, > > > > > > > > > > > > > > + { 160, 42 }, > > > > > > > > > > > > > > + { 240, 56 }, > > > > > > > > > > > > > > // > > > > > > > > > > > > > > // New modes can be added here. > > > > > > > > > > > > > > // > > > > > > > > > > > > > > -- > > > > > > > 2.25.1 > > > > > > > > > > > > > > > > > > > > > > > > > > > > -=-=-=-=-=-= > > > > > > > Groups.io Links: You receive all messages sent to this group. > > > > > > > View/Reply Online (#93935): > > > > > > https://edk2.groups.io/g/devel/message/93935 > > > > > > > Mute This Topic: https://groups.io/mt/93777396/1643496 > > > > > > > Group Owner: devel+owner@edk2.groups.io > > > > > > > Unsubscribe: https://edk2.groups.io/g/devel/unsub > > > > > > [michael.d.kinney@intel.com] > > > > > > > -=-=-=-=-=-= > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes 2022-09-22 16:10 ` Michael D Kinney @ 2022-09-22 16:49 ` Konstantin Aladyshev 2022-09-22 20:08 ` Michael D Kinney 2022-09-23 8:17 ` Gerd Hoffmann 0 siblings, 2 replies; 11+ messages in thread From: Konstantin Aladyshev @ 2022-09-22 16:49 UTC (permalink / raw) To: Kinney, Michael D Cc: devel@edk2.groups.io, Gao, Liming, Wang, Jian J, Ni, Ray Yes, I use QEMU to run OVMF in Linux (actually in WSL). Here is a command that I use for launch: ``` qemu-system-x86_64 \ -drive if=pflash,format=raw,file=Build/OvmfX64/RELEASE_GCC5/FV/OVMF.fd \ -drive format=raw,file=fat:rw:~/UEFI_disk -vnc :1 ``` So nothing explicit about the UARTs. Best regards, Konstantin Aladyshev On Thu, Sep 22, 2022 at 7:12 PM Kinney, Michael D <michael.d.kinney@intel.com> wrote: > > If the goal is to support a mix of graphical and serial consoles both with high text resolutions, then your patch is appropriate. > > It looks like you are observing some unexpected limitations in the OVMF console management. > > Perhaps the OVMF maintainers can provide some advice on how to configure OVMF with serial consoles disabled. > > Are you using QEMU to run OVMF? Are you including UARTs in QEMU launch? > > Mike > > > -----Original Message----- > > From: Konstantin Aladyshev <aladyshev22@gmail.com> > > Sent: Thursday, September 22, 2022 1:23 AM > > To: Kinney, Michael D <michael.d.kinney@intel.com> > > Cc: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn>; Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray > > <ray.ni@intel.com> > > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > Is the issue that you are trying to solve supporting larger serial console modes or just wanting to use the largest possible > > text mode at a given graphics resolution? > > > > I spotted this issue when I wanted to use the largest possible text > > mode in UEFI shell at high graphics resolutions. Is it not enough > > reason for this commit? > > > > > The other way to get full screen text on the graphical console is to disable the serial console in the Boot Maintenance > > Manager. > > > > Can you please elaborate this? I've tried to disable UART in "Boot > > Maintenance Manager -> Console Options" like this: > > ``` > > Console Input Device Select: > > PciRoot(0x0)/Pci(0x1,0x0)/Acpi(PNP0303,0x0) [X] > > PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] > > > > Console Output Device Select: > > PciRoot(0x0)/Pci(0x2,0x0)/AcpiAdr(0x80010100) [X] > > PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] > > > > Console Standard Error Device Select: > > PciRoot(0x0)/Pci(0x2,0x0)/AcpiAdr(0x80010100) [X] > > PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] > > ``` > > But after reset, the console is 80x25 and all UART options are checked again. > > > > Also there is a menu "Boot Maintenance Manager -> Console Options -> > > Console Output Mode Select" that has "Set Console Output Mode", and it > > is always "80x25" without any options for me. > > > > Best regards, > > Konstantin Aladyshev > > > > On Wed, Sep 21, 2022 at 7:28 PM Kinney, Michael D > > <michael.d.kinney@intel.com> wrote: > > > > > > The other way to get full screen text on graphical console is to disable the serial console > > > in the Boot Maintenance Manager. > > > > > > If the serial console is disabled then ConSplitterDxe will only see the text modes supported > > > by GraphicsConsoleDxe which will include these higher text modes. > > > > > > Is the issue that you are trying to solve supporting larger serial console modes or just > > > wanting to use the largest possible text mode at a given graphics resolution? > > > > > > Mike > > > > > > > -----Original Message----- > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Konstantin Aladyshev > > > > Sent: Wednesday, September 21, 2022 1:24 AM > > > > To: Kinney, Michael D <michael.d.kinney@intel.com> > > > > Cc: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn>; Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray > > > > <ray.ni@intel.com> > > > > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > I have tested it in the following way: > > > > - launch OVMF in Linux and connect with vnc > > > > - change resolution via the form browser (Device Manager -> OVMF > > > > Platform Configuration) from the default 640x480 to the 1920x1080 > > > > - "reset" > > > > - after the reset the system will boot to the 1920x1080 resolution and > > > > text mode 80x25 > > > > - check "mode" command output > > > > > > > > Before the commit this command displays only these modes: > > > > ``` > > > > Shell> mode > > > > Available modes for console output device. > > > > Col 80 Row 25 * > > > > Col 80 Row 50 > > > > Col 100 Row 31 > > > > ``` > > > > But with this commit the high resolution modes are present in the output: > > > > ``` > > > > Shell> mode > > > > Available modes for console output device. > > > > Col 80 Row 25 * > > > > Col 80 Row 50 > > > > Col 100 Row 31 > > > > Col 128 Row 40 > > > > Col 160 Row 42 > > > > Col 240 Row 56 > > > > ``` > > > > And in my case setting the appropriate "mode 240 56" at runtime works just fine: > > > > ``` > > > > Shell> mode 240 56 > > > > ``` > > > > After that the text output starts using the full screen. > > > > > > > > Best regards, > > > > Konstantin Aladyshev > > > > > > > > On Wed, Sep 21, 2022 at 4:46 AM Kinney, Michael D > > > > <michael.d.kinney@intel.com> wrote: > > > > > > > > > > Tera Term works. > > > > > > > > > > Mike > > > > > > > > > > > -----Original Message----- > > > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of gaoliming via groups.io > > > > > > Sent: Tuesday, September 20, 2022 6:26 PM > > > > > > To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io; aladyshev22@gmail.com > > > > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray <ray.ni@intel.com> > > > > > > Subject: 回复: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > > > Konstantin: > > > > > > Do you try the terminal software (such as Putty) to display the text mode 160, 42 or 240, 56? > > > > > > I try Putty in my desktop. It can't display 240 * 56 in one screen. > > > > > > > > > > > > Thanks > > > > > > Liming > > > > > > > -----邮件原件----- > > > > > > > 发件人: Kinney, Michael D <michael.d.kinney@intel.com> > > > > > > > 发送时间: 2022年9月20日 5:02 > > > > > > > 收件人: devel@edk2.groups.io; aladyshev22@gmail.com; Kinney, Michael D > > > > > > > <michael.d.kinney@intel.com> > > > > > > > 抄送: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > > > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com> > > > > > > > 主题: RE: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > > > > > This looks like a reasonable update to support platforms that have both > > > > > > > graphical consoles and serial consoles. > > > > > > > > > > > > > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > > > > > > > Konstantin Aladyshev > > > > > > > > Sent: Monday, September 19, 2022 1:57 AM > > > > > > > > To: devel@edk2.groups.io > > > > > > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > > > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com>; Konstantin > > > > > > > > Aladyshev <aladyshev22@gmail.com> > > > > > > > > Subject: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > > > > > > > The commit b807174fecacf4c9f8400cab4d6fb3f580284021 > > > > > > > > ("MdeModulePkg/GraphicsConsoleDxe: add modes") has added modes for > > > > > > > the > > > > > > > > high display resolutions. Support these modes in the TerminalDxe as > > > > > > > > well, so it would be possible to select the text mode that would take > > > > > > > > all the available screen space. > > > > > > > > > > > > > > > > Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> > > > > > > > > --- > > > > > > > > MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ > > > > > > > > 1 file changed, 3 insertions(+) > > > > > > > > > > > > > > > > diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > > index e2d779c783..6b7b970516 100644 > > > > > > > > --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > > +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > > @@ -115,6 +115,9 @@ TERMINAL_CONSOLE_MODE_DATA > > > > > > > mTerminalConsoleModeData[] = { > > > > > > > > { 80, 25 }, > > > > > > > > > > > > > > > > { 80, 50 }, > > > > > > > > > > > > > > > > { 100, 31 }, > > > > > > > > > > > > > > > > + { 128, 40 }, > > > > > > > > > > > > > > > > + { 160, 42 }, > > > > > > > > > > > > > > > > + { 240, 56 }, > > > > > > > > > > > > > > > > // > > > > > > > > > > > > > > > > // New modes can be added here. > > > > > > > > > > > > > > > > // > > > > > > > > > > > > > > > > -- > > > > > > > > 2.25.1 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -=-=-=-=-=-= > > > > > > > > Groups.io Links: You receive all messages sent to this group. > > > > > > > > View/Reply Online (#93935): > > > > > > > https://edk2.groups.io/g/devel/message/93935 > > > > > > > > Mute This Topic: https://groups.io/mt/93777396/1643496 > > > > > > > > Group Owner: devel+owner@edk2.groups.io > > > > > > > > Unsubscribe: https://edk2.groups.io/g/devel/unsub > > > > > > > [michael.d.kinney@intel.com] > > > > > > > > -=-=-=-=-=-= > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes 2022-09-22 16:49 ` Konstantin Aladyshev @ 2022-09-22 20:08 ` Michael D Kinney 2022-09-23 8:17 ` Gerd Hoffmann 1 sibling, 0 replies; 11+ messages in thread From: Michael D Kinney @ 2022-09-22 20:08 UTC (permalink / raw) To: Konstantin Aladyshev, Kinney, Michael D Cc: devel@edk2.groups.io, Gao, Liming, Wang, Jian J, Ni, Ray You can add the following to disable all UARTs -serial none That gives me a graphics only console. There is something strange with the Boot Maintenance Manager for OVMF. The console settings are not preserved across a reset. They are preserved for the current boot. If you go to the shell after console changes, then only the currently configured consoles are active. Mike > -----Original Message----- > From: Konstantin Aladyshev <aladyshev22@gmail.com> > Sent: Thursday, September 22, 2022 9:50 AM > To: Kinney, Michael D <michael.d.kinney@intel.com> > Cc: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn>; Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray > <ray.ni@intel.com> > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > Yes, I use QEMU to run OVMF in Linux (actually in WSL). Here is a > command that I use for launch: > ``` > qemu-system-x86_64 \ > -drive if=pflash,format=raw,file=Build/OvmfX64/RELEASE_GCC5/FV/OVMF.fd \ > -drive format=raw,file=fat:rw:~/UEFI_disk > -vnc :1 > ``` > So nothing explicit about the UARTs. > > Best regards, > Konstantin Aladyshev > > On Thu, Sep 22, 2022 at 7:12 PM Kinney, Michael D > <michael.d.kinney@intel.com> wrote: > > > > If the goal is to support a mix of graphical and serial consoles both with high text resolutions, then your patch is > appropriate. > > > > It looks like you are observing some unexpected limitations in the OVMF console management. > > > > Perhaps the OVMF maintainers can provide some advice on how to configure OVMF with serial consoles disabled. > > > > Are you using QEMU to run OVMF? Are you including UARTs in QEMU launch? > > > > Mike > > > > > -----Original Message----- > > > From: Konstantin Aladyshev <aladyshev22@gmail.com> > > > Sent: Thursday, September 22, 2022 1:23 AM > > > To: Kinney, Michael D <michael.d.kinney@intel.com> > > > Cc: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn>; Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray > > > <ray.ni@intel.com> > > > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > Is the issue that you are trying to solve supporting larger serial console modes or just wanting to use the largest > possible > > > text mode at a given graphics resolution? > > > > > > I spotted this issue when I wanted to use the largest possible text > > > mode in UEFI shell at high graphics resolutions. Is it not enough > > > reason for this commit? > > > > > > > The other way to get full screen text on the graphical console is to disable the serial console in the Boot Maintenance > > > Manager. > > > > > > Can you please elaborate this? I've tried to disable UART in "Boot > > > Maintenance Manager -> Console Options" like this: > > > ``` > > > Console Input Device Select: > > > PciRoot(0x0)/Pci(0x1,0x0)/Acpi(PNP0303,0x0) [X] > > > PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] > > > > > > Console Output Device Select: > > > PciRoot(0x0)/Pci(0x2,0x0)/AcpiAdr(0x80010100) [X] > > > PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] > > > > > > Console Standard Error Device Select: > > > PciRoot(0x0)/Pci(0x2,0x0)/AcpiAdr(0x80010100) [X] > > > PciRoot(0x0)/Pci(0x1,0x0)/Serial(0x0)/Uart(115200,8,N,1) [ ] > > > ``` > > > But after reset, the console is 80x25 and all UART options are checked again. > > > > > > Also there is a menu "Boot Maintenance Manager -> Console Options -> > > > Console Output Mode Select" that has "Set Console Output Mode", and it > > > is always "80x25" without any options for me. > > > > > > Best regards, > > > Konstantin Aladyshev > > > > > > On Wed, Sep 21, 2022 at 7:28 PM Kinney, Michael D > > > <michael.d.kinney@intel.com> wrote: > > > > > > > > The other way to get full screen text on graphical console is to disable the serial console > > > > in the Boot Maintenance Manager. > > > > > > > > If the serial console is disabled then ConSplitterDxe will only see the text modes supported > > > > by GraphicsConsoleDxe which will include these higher text modes. > > > > > > > > Is the issue that you are trying to solve supporting larger serial console modes or just > > > > wanting to use the largest possible text mode at a given graphics resolution? > > > > > > > > Mike > > > > > > > > > -----Original Message----- > > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Konstantin Aladyshev > > > > > Sent: Wednesday, September 21, 2022 1:24 AM > > > > > To: Kinney, Michael D <michael.d.kinney@intel.com> > > > > > Cc: devel@edk2.groups.io; Gao, Liming <gaoliming@byosoft.com.cn>; Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray > > > > > <ray.ni@intel.com> > > > > > Subject: Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > I have tested it in the following way: > > > > > - launch OVMF in Linux and connect with vnc > > > > > - change resolution via the form browser (Device Manager -> OVMF > > > > > Platform Configuration) from the default 640x480 to the 1920x1080 > > > > > - "reset" > > > > > - after the reset the system will boot to the 1920x1080 resolution and > > > > > text mode 80x25 > > > > > - check "mode" command output > > > > > > > > > > Before the commit this command displays only these modes: > > > > > ``` > > > > > Shell> mode > > > > > Available modes for console output device. > > > > > Col 80 Row 25 * > > > > > Col 80 Row 50 > > > > > Col 100 Row 31 > > > > > ``` > > > > > But with this commit the high resolution modes are present in the output: > > > > > ``` > > > > > Shell> mode > > > > > Available modes for console output device. > > > > > Col 80 Row 25 * > > > > > Col 80 Row 50 > > > > > Col 100 Row 31 > > > > > Col 128 Row 40 > > > > > Col 160 Row 42 > > > > > Col 240 Row 56 > > > > > ``` > > > > > And in my case setting the appropriate "mode 240 56" at runtime works just fine: > > > > > ``` > > > > > Shell> mode 240 56 > > > > > ``` > > > > > After that the text output starts using the full screen. > > > > > > > > > > Best regards, > > > > > Konstantin Aladyshev > > > > > > > > > > On Wed, Sep 21, 2022 at 4:46 AM Kinney, Michael D > > > > > <michael.d.kinney@intel.com> wrote: > > > > > > > > > > > > Tera Term works. > > > > > > > > > > > > Mike > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of gaoliming via groups.io > > > > > > > Sent: Tuesday, September 20, 2022 6:26 PM > > > > > > > To: Kinney, Michael D <michael.d.kinney@intel.com>; devel@edk2.groups.io; aladyshev22@gmail.com > > > > > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Ni, Ray <ray.ni@intel.com> > > > > > > > Subject: 回复: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > > > > > Konstantin: > > > > > > > Do you try the terminal software (such as Putty) to display the text mode 160, 42 or 240, 56? > > > > > > > I try Putty in my desktop. It can't display 240 * 56 in one screen. > > > > > > > > > > > > > > Thanks > > > > > > > Liming > > > > > > > > -----邮件原件----- > > > > > > > > 发件人: Kinney, Michael D <michael.d.kinney@intel.com> > > > > > > > > 发送时间: 2022年9月20日 5:02 > > > > > > > > 收件人: devel@edk2.groups.io; aladyshev22@gmail.com; Kinney, Michael D > > > > > > > > <michael.d.kinney@intel.com> > > > > > > > > 抄送: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > > > > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com> > > > > > > > > 主题: RE: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > > > > > > > This looks like a reasonable update to support platforms that have both > > > > > > > > graphical consoles and serial consoles. > > > > > > > > > > > > > > > > Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of > > > > > > > > Konstantin Aladyshev > > > > > > > > > Sent: Monday, September 19, 2022 1:57 AM > > > > > > > > > To: devel@edk2.groups.io > > > > > > > > > Cc: Wang, Jian J <jian.j.wang@intel.com>; Gao, Liming > > > > > > > > <gaoliming@byosoft.com.cn>; Ni, Ray <ray.ni@intel.com>; Konstantin > > > > > > > > > Aladyshev <aladyshev22@gmail.com> > > > > > > > > > Subject: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes > > > > > > > > > > > > > > > > > > The commit b807174fecacf4c9f8400cab4d6fb3f580284021 > > > > > > > > > ("MdeModulePkg/GraphicsConsoleDxe: add modes") has added modes for > > > > > > > > the > > > > > > > > > high display resolutions. Support these modes in the TerminalDxe as > > > > > > > > > well, so it would be possible to select the text mode that would take > > > > > > > > > all the available screen space. > > > > > > > > > > > > > > > > > > Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> > > > > > > > > > --- > > > > > > > > > MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 3 +++ > > > > > > > > > 1 file changed, 3 insertions(+) > > > > > > > > > > > > > > > > > > diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > > b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > > > index e2d779c783..6b7b970516 100644 > > > > > > > > > --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > > > +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c > > > > > > > > > @@ -115,6 +115,9 @@ TERMINAL_CONSOLE_MODE_DATA > > > > > > > > mTerminalConsoleModeData[] = { > > > > > > > > > { 80, 25 }, > > > > > > > > > > > > > > > > > > { 80, 50 }, > > > > > > > > > > > > > > > > > > { 100, 31 }, > > > > > > > > > > > > > > > > > > + { 128, 40 }, > > > > > > > > > > > > > > > > > > + { 160, 42 }, > > > > > > > > > > > > > > > > > > + { 240, 56 }, > > > > > > > > > > > > > > > > > > // > > > > > > > > > > > > > > > > > > // New modes can be added here. > > > > > > > > > > > > > > > > > > // > > > > > > > > > > > > > > > > > > -- > > > > > > > > > 2.25.1 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -=-=-=-=-=-= > > > > > > > > > Groups.io Links: You receive all messages sent to this group. > > > > > > > > > View/Reply Online (#93935): > > > > > > > > https://edk2.groups.io/g/devel/message/93935 > > > > > > > > > Mute This Topic: https://groups.io/mt/93777396/1643496 > > > > > > > > > Group Owner: devel+owner@edk2.groups.io > > > > > > > > > Unsubscribe: https://edk2.groups.io/g/devel/unsub > > > > > > > > [michael.d.kinney@intel.com] > > > > > > > > > -=-=-=-=-=-= > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [edk2-devel] [PATCH] MdeModulePkg/TerminalDxe: add modes 2022-09-22 16:49 ` Konstantin Aladyshev 2022-09-22 20:08 ` Michael D Kinney @ 2022-09-23 8:17 ` Gerd Hoffmann 1 sibling, 0 replies; 11+ messages in thread From: Gerd Hoffmann @ 2022-09-23 8:17 UTC (permalink / raw) To: devel, aladyshev22; +Cc: Kinney, Michael D, Gao, Liming, Wang, Jian J, Ni, Ray On Thu, Sep 22, 2022 at 07:49:39PM +0300, Konstantin Aladyshev wrote: > Yes, I use QEMU to run OVMF in Linux (actually in WSL). Here is a > command that I use for launch: > ``` > qemu-system-x86_64 \ > -drive if=pflash,format=raw,file=Build/OvmfX64/RELEASE_GCC5/FV/OVMF.fd \ > -drive format=raw,file=fat:rw:~/UEFI_disk > -vnc :1 > ``` > So nothing explicit about the UARTs. qemu adds a bunch of default devices for convenience. vga, nic, cdrom, serial port. You can use '-nodefaults' to turn off all of them or '-serial none' to turn off the serial port only. take care, Gerd ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-09-23 8:17 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-09-19 8:56 [PATCH] MdeModulePkg/TerminalDxe: add modes Konstantin Aladyshev 2022-09-19 21:01 ` [edk2-devel] " Michael D Kinney 2022-09-21 1:25 ` 回复: " gaoliming 2022-09-21 1:46 ` Michael D Kinney 2022-09-21 8:24 ` Konstantin Aladyshev 2022-09-21 16:27 ` Michael D Kinney 2022-09-22 8:23 ` Konstantin Aladyshev 2022-09-22 16:10 ` Michael D Kinney 2022-09-22 16:49 ` Konstantin Aladyshev 2022-09-22 20:08 ` Michael D Kinney 2022-09-23 8:17 ` Gerd Hoffmann
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox