Bug#931346: seabios: Doesn't provide resolutions for 16:9 display

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#931346: seabios: Doesn't provide resolutions for 16:9 display

Uwe Kleine-König-9
Package: seabios
Version: 1.12.0-1
Severity: normal
Tags: upstream

Hello,

to be able to (easily) run a guest in my monitors native resolution it
would be great if I could use 2560x1440.

I found a patch in a personal blog for that, it would be great to get
this into Debian (or upstream seabios).

See https://salsa.debian.org/qemu-team/seabios/merge_requests/1 for a
patch.

Thanks
Uwe Kleine-König

-- System Information:
Debian Release: 10.0
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'unstable'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-updates'), (500, 'stable'), (499, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information
Reply | Threaded
Open this post in threaded view
|

Bug#931346: [PATCH] Add additional resolutions for 16:9 displays: 1600x900 and 2560x1440

Uwe Kleine-König-9
From: Uwe Kleine-König <[hidden email]>

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 } },
 };
 
 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 = {
     { 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 = ARRAY_SIZE(svga_modes);
--
2.20.1

Reply | Threaded
Open this post in threaded view
|

Bug#931346: [PATCH] Add additional resolutions for 16:9 displays: 1600x900 and 2560x1440

Uwe Kleine-König-9
Reply | Threaded
Open this post in threaded view
|

Bug#931346: seabios: Doesn't provide resolutions for 16:9 display

Uwe Kleine-König-7
In reply to this post by Uwe Kleine-König-9
Control: tag -1 + fixed-upstream

Hello,

On Tue, Jul 02, 2019 at 08:52:44PM +0200, Uwe Kleine-König wrote:
> to be able to (easily) run a guest in my monitors native resolution it
> would be great if I could use 2560x1440.
>
> I found a patch in a personal blog for that, it would be great to get
> this into Debian (or upstream seabios).
>
> See https://salsa.debian.org/qemu-team/seabios/merge_requests/1 for a
> patch.

This was resolved a bit differently upstream now; in commits
dc5cc91aa14587dc1e71958320170043a2c2a747 and
fc92d092ea4f704bc4d283c3911ee9894733f4ce.

I'm not updating the merge request on salsa as I expect that upstream
releases a new version soon and so cherry-picking isn't necessary.

Best regards
Uwe

signature.asc (499 bytes) Download Attachment