RE: + vgacon-fix-doublescan-mode.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Can you please include this patch from the mm tree? It would be nice to have a functioning CLI again (without having to patch and recompile every kernel).

Thanks,
Jason

From: [email protected]
To: [email protected], [email protected], [email protected]
Subject: + vgacon-fix-doublescan-mode.patch added to -mm tree
Date: Wed, 16 Nov 2005 18:34:51 -0800

The patch titled

     vgacon: fix doublescan mode

has been added to the -mm tree.  Its filename is

     vgacon-fix-doublescan-mode.patch


From: Samuel Thibault <[email protected]>

When doublescan mode is in use, scanlines must be doubled.

Thanks to Jason Dravet <[email protected]> for reporting and testing.

Signed-off-by: Samuel Thibault <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---

 drivers/video/console/vgacon.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)

diff -puN drivers/video/console/vgacon.c~vgacon-fix-doublescan-mode drivers/video/console/vgacon.c --- devel/drivers/video/console/vgacon.c~vgacon-fix-doublescan-mode 2005-11-16 18:34:47.000000000 -0800 +++ devel-akpm/drivers/video/console/vgacon.c 2005-11-16 18:34:47.000000000 -0800
@@ -503,10 +503,16 @@ static int vgacon_doresize(struct vc_dat
 {
 	unsigned long flags;
 	unsigned int scanlines = height * c->vc_font.height;
-	u8 scanlines_lo, r7, vsync_end, mode;
+	u8 scanlines_lo, r7, vsync_end, mode, max_scan;

 	spin_lock_irqsave(&vga_lock, flags);

+	outb_p(VGA_CRTC_MAX_SCAN, vga_video_port_reg);
+	max_scan = inb_p(vga_video_port_val);
+
+	if (max_scan & 0x80)
+		scanlines <<= 1;
+
 	outb_p(VGA_CRTC_MODE, vga_video_port_reg);
 	mode = inb_p(vga_video_port_val);

_

Patches currently in -mm which might be from [email protected] are

vgacon-fix-doublescan-mode.patch



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux