Here is a patch which fixes the problem for me. I really don't know if
it has any side effects, but I'm also puzzled why it is needed to change
virtual resolution - the parameter seems very hardware related.
btw, I'm using vesafb - forgot to mention it in last message.
To reproduce the not-clearing of margins, I use 1024x768x8 mode
and set SUN12x22 font on one console and VGA8x16 on other, and when switching
between them I have uncleared field at the bottom of screen.
--- fbcon.c.1 Fri Sep 4 01:29:30 1998
+++ fbcon.c Fri Sep 4 01:29:52 1998
@@ -1311,7 +1311,7 @@
if (!p->dispsw->set_font ||
!p->dispsw->set_font(p, fontwidth(p), fontheight(p))) {
/* Adjust the virtual screen-size to fontheight*rows */
- p->var.yres_virtual = (p->var.yres/h)*h;
+/* p->var.yres_virtual = (p->var.yres/h)*h;*/
}
p->vrows = p->var.yres_virtual/h;
updatescrollmode(p);
Alexander.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html