2002-11-09 00:51:37

by Carl-Daniel Hailfinger

[permalink] [raw]
Subject: [PATCH] restore framebuffer console after suspend

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);


Attachments:
patch-fbdev.txt (461.00 B)

2002-11-09 02:09:34

by Carl-Daniel Hailfinger

[permalink] [raw]
Subject: Re: [PATCH] restore framebuffer console after suspend

===== drivers/video/fbcon.c 1.12 vs edited =====
--- 1.12/drivers/video/fbcon.c Thu Sep 12 17:22:35 2002
+++ edited/drivers/video/fbcon.c Sat Nov 9 02:57:00 2002
@@ -1573,7 +1573,7 @@ static int fbcon_blank(struct vc_data *c
return 0;
#ifdef CONFIG_PM
if (fbcon_sleeping)
- return 0;
+ return blank ? 0 : 1;
#endif /* CONFIG_PM */

fbcon_cursor(p->conp, blank ? CM_ERASE : CM_DRAW);


Attachments:
patch-fbdev.txt (407.00 B)