From: Michal Januszewski When the cursor and echo are disabled on the current console, pressing a key will cause a black rectangle to be painted in the cursor's position. Fix this by not touching the framebuffer in fbcon_cursor() when the cursor is off. Signed-off-by: Michal Januszewski Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton --- drivers/video/console/fbcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/video/console/fbcon.c~fbcon-dont-draw-cursor-when-its-disabled drivers/video/console/fbcon.c --- a/drivers/video/console/fbcon.c~fbcon-dont-draw-cursor-when-its-disabled +++ a/drivers/video/console/fbcon.c @@ -1310,7 +1310,7 @@ static void fbcon_cursor(struct vc_data int y; int c = scr_readw((u16 *) vc->vc_pos); - if (fbcon_is_inactive(vc, info)) + if (fbcon_is_inactive(vc, info) || vc->vc_deccm != 1) return; ops->cursor_flash = (mode == CM_ERASE) ? 0 : 1; _