From nobody Mon Feb 9 19:30:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+89220+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+89220+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1650631291; cv=none; d=zohomail.com; s=zohoarc; b=iALekOQozNwz3aY4qaGlJmGm1Wsy9Ps7plxd92Z6RJWFZAXWLzG3IhY5SCC6DOfQAxlotWS5SVEW70jwQ4hKa5j4IqVoB7Kynn0qXdAdLHp8f+fiw10I8zfDOeHstTTK/KAMbWQLl3vjb7Yhq55Jd0+keMXJJNE++wYLGI6pu1Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650631291; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=WV7NILoYWBQEwzJEorAF+CXw6Nvzr+nlCYlVK0Zh8vs=; b=ll6KhfXDd9xjLc8v5n7Zir/ecROoCWOEAu5wA5UFTtnlTz49GSfsSmqlLpLwpKRGCGWWXOxa6g5doftZ/EZ9JNQzVlL9UzsUN4PsLm3BsZZIjMpplYpSIc+5VoIkqFWzD6UVkM33okS1ZPBHroqOmSdrrN0QoT0IGtp9kHtMiU0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+89220+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 165063129146293.12644509537643; Fri, 22 Apr 2022 05:41:31 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id afxmYY1788612x09txje22qn; Fri, 22 Apr 2022 05:41:31 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web08.7903.1650631289999099258 for ; Fri, 22 Apr 2022 05:41:30 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-631-LXads81pO0SntqiIrM2vjA-1; Fri, 22 Apr 2022 08:41:26 -0400 X-MC-Unique: LXads81pO0SntqiIrM2vjA-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4183E833963; Fri, 22 Apr 2022 12:41:25 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 604BC54EAE2; Fri, 22 Apr 2022 12:41:22 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 6C708180098C; Fri, 22 Apr 2022 14:41:20 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Pawel Polawski , Oliver Steffen , Ray Ni , Gerd Hoffmann , Jordan Justen , Brijesh Singh , Jian J Wang , Min Xu , James Bottomley , Erdem Aktas , Julien Grall , Zhichao Gao , Ard Biesheuvel , Liming Gao , Sami Mujawar , Anthony Perard , Leif Lindholm , Jiewen Yao , Tom Lendacky Subject: [edk2-devel] [PATCH v2 1/3] MdeModulePkg/GraphicsConsoleDxe: add modes Date: Fri, 22 Apr 2022 14:41:18 +0200 Message-Id: <20220422124120.2816257-2-kraxel@redhat.com> In-Reply-To: <20220422124120.2816257-1-kraxel@redhat.com> References: <20220422124120.2816257-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com X-Gm-Message-State: wSSYeuWt7izVB0OanfZaDnqYx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1650631291; bh=zPy9ZOHLxZphRlA5gXbglOeOhABNNrlHtrBBtk5k2dM=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=vgVrWpMC1gMzC41lmWMLl2jKlQNcMy5vBbJ7IYPfJ7wVKsgi3ftCj/6IejldmHFSDd0 H3Xml51Fpko0wkZ2gHLvobhm8AZT8UrhSdORXEwM6cEGahq+RhU0JxI/UI2v2uk2ZPzt1 b7juMKheydZMSlsDI3ru2132EKnB3ghZkow= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1650631292496100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Add modes for a few common display resolutions higher than 800x600, specifically 1024x768, 1280x800 and 1920x1080, so ConSplitterDxe has more options available. The mode list is not use as-is, InitializeGraphicsConsoleTextMode() will check the list and filter out any modes which don't fit to the screen, so this will also work fine for small displays. Signed-off-by: Gerd Hoffmann Reviewed-by: Liming Gao --- .../Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsCons= ole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index 07436cbd15bf..b895dafedeaa 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -40,7 +40,10 @@ GRAPHICS_CONSOLE_DEV mGraphicsConsoleDevTemplate =3D { }; =20 GRAPHICS_CONSOLE_MODE_DATA mGraphicsConsoleModeData[] =3D { - { 100, 31 }, + { 100, 31 }, // 800 x 600 + { 128, 40 }, // 1024 x 768 + { 160, 42 }, // 1280 x 800 + { 240, 56 }, // 1920 x 1080 // // New modes can be added here. // The last entry is specific for full screen mode. --=20 2.35.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#89220): https://edk2.groups.io/g/devel/message/89220 Mute This Topic: https://groups.io/mt/90626832/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-