From nobody Thu Mar 28 13:21:05 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org ARC-Seal: i=1; a=rsa-sha256; t=1562364067; cv=none; d=zoho.com; s=zohoarc; b=IMJtXkIX1yBZUL6BSbIYVhBHv8LmRj9ZQ2yt2VKu4tnXjjNFktW/k7Md/9oJ+nQ2+wa3mkoIiMP1mBgvWhJYPb+7Uu/Khn22krKiQ7FVU9baxw/7C33LcFkukCFg67p6yzV64XkpGnvnsqVGW6js8Y9UpPYIVoTI5hGKDouhvZo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562364067; h=Content-Type:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results; bh=1nei0S7mw3HhxyEI0q2TBDRpZ7rX35te9TFqfYFakwI=; b=MtUqGblsPw7qqaJnZkn43y3Oju0UwUOPOX1YE59uV6hXMJwlTK87MQ4E5jHs1T8UbTMuPajhNVsyGANCxezVLvtqCMgxKhsECRyZSezlnlXjcPVMYjeKPKKwrff9Iq4rCpE1bAP4hV3vHQRBfgQ744xIBIBu8p72H0ARzRk44JQ= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1562364067855303.7669035851752; Fri, 5 Jul 2019 15:01:07 -0700 (PDT) Received: from [192.168.203.99] (mailu_mailman-core_1.mailu_default [192.168.203.99]) by coreboot.org (Postfix) with ESMTP id E6D6EBA0BC7; Fri, 5 Jul 2019 22:01:00 +0000 (UTC) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [85.220.165.71]) by coreboot.org (Postfix) with ESMTP id 7E1EABA0BB9 for ; Fri, 5 Jul 2019 17:24:13 +0000 (UTC) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hjRh0-0006DK-MW; Fri, 05 Jul 2019 19:08:14 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1hjRgx-000147-Jz; Fri, 05 Jul 2019 19:08:11 +0200 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: seabios@seabios.org Date: Fri, 5 Jul 2019 19:08:09 +0200 Message-Id: <20190705170809.28156-1-ukleinek@debian.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: seabios@seabios.org X-MailFrom: ukl@pengutronix.de X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1 Message-ID-Hash: BTTYP2LBOXN6RGATJEQPAXO244ZYHYPM X-Message-ID-Hash: BTTYP2LBOXN6RGATJEQPAXO244ZYHYPM X-Mailman-Approved-At: Fri, 05 Jul 2019 22:00:53 +0000 CC: 931346@bugs.debian.org, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Andreas Dangel X-Mailman-Version: 3.2.2 Precedence: list Subject: [SeaBIOS] [PATCH] Add additional resolutions for 16:9 displays: 1600x900 and 2560x1440 List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============6663470311130136425==" X-Spamd-Bar: ++++++++++ X-Spam-Level: ********** Authentication-Results: coreboot.org X-Spam: Yes --===============6663470311130136425== Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Uwe Kleine-K=C3=B6nig This allows to have qemu run at the native screen resolution of my (physical) monitor. This is inspired by a patch created by Andreas Dangel that I found on https://adangel.org/2015/09/11/qemu-kvm-custom-resolutions/ . --- Andreas's patch applied to 1.12.0, I rebased it to current master. vgasrc/cbvga.c | 8 ++++++++ vgasrc/svgamodes.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/vgasrc/cbvga.c b/vgasrc/cbvga.c index 438d8fda6c6e..ac0b62c7bd25 100644 --- a/vgasrc/cbvga.c +++ b/vgasrc/cbvga.c @@ -81,6 +81,14 @@ static struct cbvga_mode_s { 0x190, { MM_DIRECT, 1920, 1080, 16, 8, 16, SEG_GRAPH } }, { 0x191, { MM_DIRECT, 1920, 1080, 24, 8, 16, SEG_GRAPH } }, { 0x192, { MM_DIRECT, 1920, 1080, 32, 8, 16, SEG_GRAPH } }, + + /* custom resolutions for 16:9 displays */ + { 0x193, { MM_DIRECT, 1600, 900, 16, 8, 16, SEG_GRAPH } }, + { 0x194, { MM_DIRECT, 1600, 900, 24, 8, 16, SEG_GRAPH } }, + { 0x195, { MM_DIRECT, 1600, 900, 32, 8, 16, SEG_GRAPH } }, + { 0x196, { MM_DIRECT, 2560, 1440, 16, 8, 16, SEG_GRAPH } }, + { 0x197, { MM_DIRECT, 2560, 1440, 24, 8, 16, SEG_GRAPH } }, + { 0x198, { MM_DIRECT, 2560, 1440, 32, 8, 16, SEG_GRAPH } }, }; =20 struct vgamode_s *cbvga_find_mode(int mode) diff --git a/vgasrc/svgamodes.c b/vgasrc/svgamodes.c index 013504c3e691..f89ebef950a8 100644 --- a/vgasrc/svgamodes.c +++ b/vgasrc/svgamodes.c @@ -76,5 +76,13 @@ struct generic_svga_mode svga_modes[] VAR16 =3D { { 0x190, { MM_DIRECT, 1920, 1080, 16, 8, 16, SEG_GRAPH } }, { 0x191, { MM_DIRECT, 1920, 1080, 24, 8, 16, SEG_GRAPH } }, { 0x192, { MM_DIRECT, 1920, 1080, 32, 8, 16, SEG_GRAPH } }, + + /* custom resolutions for 16:9 displays */ + { 0x193, { MM_DIRECT, 1600, 900, 16, 8, 16, SEG_GRAPH } }, + { 0x194, { MM_DIRECT, 1600, 900, 24, 8, 16, SEG_GRAPH } }, + { 0x195, { MM_DIRECT, 1600, 900, 32, 8, 16, SEG_GRAPH } }, + { 0x196, { MM_DIRECT, 2560, 1440, 16, 8, 16, SEG_GRAPH } }, + { 0x197, { MM_DIRECT, 2560, 1440, 24, 8, 16, SEG_GRAPH } }, + { 0x198, { MM_DIRECT, 2560, 1440, 32, 8, 16, SEG_GRAPH } }, }; unsigned int svga_mcount VAR16 =3D ARRAY_SIZE(svga_modes); --=20 2.20.1 --===============6663470311130136425== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org --===============6663470311130136425==--