
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- linux-2.6.10-rc2/drivers/video/fbmem.c~fb_blank
+++ linux-2.6.10-rc2/drivers/video/fbmem.c
@@ -744,9 +744,14 @@
 fb_blank(struct fb_info *info, int blank)
 {	
 	int err = -EINVAL;
+	struct fb_event event;
 	
  	if (blank > FB_BLANK_POWERDOWN)
  		blank = FB_BLANK_POWERDOWN;
+ 		
+	event.info = info;
+	event.data = &blank;
+	notifier_call_chain(&fb_notifier_list, FB_EVENT_BLANK, &event);
 
 	if (info->fbops->fb_blank)
  		err = info->fbops->fb_blank(blank, info);
--- linux-2.6.10-rc2/include/linux/fb.h~fb_blank
+++ linux-2.6.10-rc2/include/linux/fb.h
@@ -488,6 +488,8 @@
 #define FB_EVENT_GET_CONSOLE_MAP        0x06
 /*      set console to framebuffer mapping */
 #define FB_EVENT_SET_CONSOLE_MAP        0x07
+/*      Blanking on the display on this fb_info has changed */
+#define FB_EVENT_BLANK                  0x08
 
 
 struct fb_event {
--- linux-2.6.10-rc2/drivers/video/console/fbcon.c~fb_blank
+++ linux-2.6.10-rc2/drivers/video/console/fbcon.c
@@ -2063,8 +2063,7 @@
  		fbcon_cursor(vc, blank ? CM_ERASE : CM_DRAW);
  		ops->cursor_flash = (!blank);
 
- 		if (info->fbops->fb_blank)
- 			ret = info->fbops->fb_blank(blank, info);
+		ret = fb_blank(info, blank);
 
  		if (ret)
  			fbcon_generic_blank(vc, info, blank);

