[PATCH] restore framebuffer console after suspend

From: Carl-Daniel Hailfinger (c-d.hailfinger.kernel.2002-Q4@gmx.net)
Date: Mon Nov 11 2002 - 06:58:53 EST


Marcelo,

this patch fixes the case when a laptop was suspended and resumed while a
framebuffer console was active, the console would not be redrawn.

After a discussion with Benjamin Herrenschmidt, we both agree that this
patch is the best solution. It is the same as my first patch with this
subject, just resent because there was some confusion about which patch was
best.

Please apply for 2.4.20-rc2.

Thanks
Carl-Daniel

diff -Naur linux.orig/drivers/video/fbcon.c linux/drivers/video/fbcon.c
--- linux.orig/drivers/video/fbcon.c Thu Sep 12 17:22:35 2002
+++ linux/drivers/video/fbcon.c Fri Nov 8 13:09:41 2002
@@ -1571,10 +1571,6 @@ static int fbcon_blank(struct vc_data *c
 
     if (blank < 0) /* Entering graphics mode */
         return 0;
-#ifdef CONFIG_PM
- if (fbcon_sleeping)
- return 0;
-#endif /* CONFIG_PM */
 
     fbcon_cursor(p->conp, blank ? CM_ERASE : CM_DRAW);
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:22 EST