Skip to content

Commit

Permalink
fbcon: fix wrong vmode bits copied on console switch
Browse files Browse the repository at this point in the history
The interlaced and double line mode bits should not be copied to new
console when the console is switched.  Otherwise, the new console may be
set to incorrect refresh rate.

Also, the x and y offsets does not need to be copied.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Jun 6, 2008
1 parent dba6a4d commit 10732c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/video/console/fbcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2275,9 +2275,7 @@ static int fbcon_switch(struct vc_data *vc)
* in fb_set_var()
*/
info->var.activate = var.activate;
var.yoffset = info->var.yoffset;
var.xoffset = info->var.xoffset;
var.vmode = info->var.vmode;
var.vmode |= info->var.vmode & ~FB_VMODE_MASK;
fb_set_var(info, &var);
ops->var = info->var;

Expand Down

0 comments on commit 10732c3

Please sign in to comment.