Skip to contentSkip to conversation

vgacon: Workaround for resize bug in some chipsets

PATCH Bodo Eggert 4 participants 6 messages Nov 14, 2005 – Nov 16, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 2 lines · Jason Dravet

When I run stty rows 20 I get a screen of 80x20. I can see the top 10 rows and the bottom 10 rows are invisible.

I asume your VGA indicates that it'll divide it's scanline counter by 2. Please add a printk("vgacon: mode=%2.2x\n", mode) before line 512 and report the value. A real fix will depend on this value. In the meantime, removing the lines 512 and 513 from the original file should be a temporary fix.

Signature · 2 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
#2 lore raw
Quoted 12 lines

From: Bodo Eggert <[email protected]>
Reply-To: [email protected]
To: Jason Dravet <[email protected]>, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: [PATCH] vgacon: Workaround for resize bug in some chipsets
Date: Mon, 14 Nov 2005 10:24:02 +0100

Quoted 1 line · Jason Dravet

When I run stty rows 20 I get a screen of 80x20. I can see the top 10

rows

Quoted 1 line

and the bottom 10 rows are invisible.

Quoted 8 lines

I asume your VGA indicates that it'll divide it's scanline counter by 2. Please add a printk("vgacon: mode=%2.2x\n", mode) before line 512 and report the value. A real fix will depend on this value. In the meantime, removing the lines 512 and 513 from the original file should be a temporary fix.

--
Ich danke GMX daf�r, die Verwendung meiner Adressen mittels per SPF verbreiteten L�gen zu sabotieren.

Here is the result from the printk you requested:
vgacon: mode=a3

I commented out lines 512 and 513 and the problem remains.

Thanks,
Jason

#3 lore raw
Quoted 8 lines · Jason Dravet
Quoted 7 lines

From: Bodo Eggert <[email protected]>

I asume your VGA indicates that it'll divide it's scanline counter by 2. Please add a printk("vgacon: mode=%2.2x\n", mode) before line 512 and report
the value. A real fix will depend on this value. In the meantime, removing the lines 512 and 513 from the original file should be a temporary fix.

Quoted 4 lines

Here is the result from the printk you requested:
vgacon: mode=a3

I commented out lines 512 and 513 and the problem remains.

It seems I was wrong. I will have to think about it later. In the meantime, you might also want to use the no-scroll (IIRC) kernel parameter. (Disclaimer: I just started rading this file.)

Signature · 2 lines
Funny quotes:
1. Save the whales. Collect the whole set.
#4 lore raw
In reply to Jason Dravet

Hi,

Quoted 12 lines · Jason Dravet, le Mon 14 Nov 2005 09:27:51 -0600, a écrit :
Quoted 11 lines
Quoted 1 line · Jason Dravet

When I run stty rows 20 I get a screen of 80x20. I can see the top 10

rows

Quoted 1 line

and the bottom 10 rows are invisible.

I asume your VGA indicates that it'll divide it's scanline counter by 2. Please add a printk("vgacon: mode=%2.2x\n", mode) before line 512 and report
the value. A real fix will depend on this value. In the meantime, removing the lines 512 and 513 from the original file should be a temporary fix.

Quoted 4 lines

Here is the result from the printk you requested:
vgacon: mode=a3

I commented out lines 512 and 513 and the problem remains.

Really strange...

At that same line, could you try adding this:

printk("vgacon: y=%d fonth=%d deffh=%d vidfh=%d scanl=%d\n", height, c->vc_font.height, vga_default_font_height, vga_video_font_height, vga_scan_lines); outb_p(VGA_CRTC_OVERFLOW, vga_video_port_reg);
printk("vgacon: overflow %02x\n",inb_p(vga_video_port_val));
outb_p(VGA_CRTC_V_SYNC_END, vga_video_port_reg);
printk("vgacon: vsync_end %02x\n",inb_p(vga_video_port_val));
outb_p(VGA_CRTC_V_DISP_END, vga_video_port_reg);
printk("vgacon: vdisp_end %02x\n",inb_p(vga_video_port_val));

Regards,
Samuel

#5 lore raw
Quoted 41 lines

From: Samuel Thibault <[email protected]>
To: Jason Dravet <[email protected]>
CC: [email protected], [email protected], [email protected], [email protected],[email protected], [email protected]
Subject: Re: [PATCH] vgacon: Workaround for resize bug in some chipsets
Date: Wed, 16 Nov 2005 01:05:49 +0100

Hi,

Jason Dravet, le Mon 14 Nov 2005 09:27:51 -0600, a �crit :

Quoted 3 lines
Quoted 3 lines
Quoted 1 line · Jason Dravet

When I run stty rows 20 I get a screen of 80x20. I can see the top

10

Quoted 4 lines
Quoted 4 lines

rows

Quoted 1 line

and the bottom 10 rows are invisible.

I asume your VGA indicates that it'll divide it's scanline counter by

2.

Quoted 3 lines
Quoted 3 lines

Please add a printk("vgacon: mode=%2.2x\n", mode) before line 512 and report
the value. A real fix will depend on this value. In the meantime,

removing

Quoted 6 lines
Quoted 1 line

the lines 512 and 513 from the original file should be a temporary fix.

Here is the result from the printk you requested:
vgacon: mode=a3

I commented out lines 512 and 513 and the problem remains.

Really strange...

At that same line, could you try adding this:

printk("vgacon: y=%d fonth=%d deffh=%d vidfh=%d scanl=%d\n", height, c->vc_font.height, vga_default_font_height, vga_video_font_height, vga_scan_lines); outb_p(VGA_CRTC_OVERFLOW, vga_video_port_reg);
printk("vgacon: overflow %02x\n",inb_p(vga_video_port_val));
outb_p(VGA_CRTC_V_SYNC_END, vga_video_port_reg);
printk("vgacon: vsync_end %02x\n",inb_p(vga_video_port_val));
outb_p(VGA_CRTC_V_DISP_END, vga_video_port_reg);
printk("vgacon: vdisp_end %02x\n",inb_p(vga_video_port_val));

Quoted 2 lines

Regards,
Samuel

Here are the results:
y=25 fonth=16 deffh=16 vidfh=16 scanl=400
overflow=ff
vsync_end=8f
vdisp_end=1f

Thanks,
Jason

#6 lore raw

Hi,

Quoted 5 lines · Jason Dravet, le Tue 15 Nov 2005 19:50:39 -0600, a écrit :

Here are the results:
y=25 fonth=16 deffh=16 vidfh=16 scanl=400
overflow=ff
vsync_end=8f
vdisp_end=1f

Ah, this is odd indeed: your hardware uses 800 scanlines (overflow:(512+256)+vdisp_end:0x1f), while the actual needed lines should be y:25*fonth:16 ... Maybe it is actually using a 32 lines font.

Just to make sure about every VGA bits, could you install the svgatextmode package, which holds a getVGAreg command, and run twice

for i in seq 0 24 ; do getVGAreg CRTC $i ; done

The first time while having a correct full text screen rendering, and the second time after vgacon_doresize() has blanked the bottom half of the screen.

Regards,
Samuel