Thread (35 messages) flat view 35 messages, 7 authors, 2004-01-09

Re: Changing modes with fbset

From: John Zielinski <hidden>
Date: 2003-12-14 01:14:55

Found it.  It's a bug in fbcon.c where the rows and cols were mixed up 
so fbcon_resize tries to set the mode again with xres and yres 
reversed.  Didn't happen during boot as fbcon_state_manager is 
registered after the console is taken over.


diff -urNX dontdiff linux.old/drivers/video/console/fbcon.c linux/drivers/video/console/fbcon.c
--- linux.old/drivers/video/console/fbcon.c	2003-12-13 19:32:14.000000000 -0500
+++ linux/drivers/video/console/fbcon.c	2003-12-13 19:34:48.000000000 -0500
@@ -2261,8 +2261,8 @@
 			// Switch resolution size
 			int rows, cols;
 			
-			rows = info->var.xres / vc->vc_font.height;
-			cols = info->var.yres / vc->vc_font.width;
+			rows = info->var.yres / vc->vc_font.height;
+			cols = info->var.xres / vc->vc_font.width;
         		fbcon_resize(vc, cols, rows);
 			info->state |= flag;
 			}


John




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help