lkml.org 
[lkml]   [1997]   [Jan]   [19]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSun, 19 Jan 1997 17:02:37 +0900
Subjectdo_blank_screen(1) should not call apm_display_blank()
From(Takashi Manabe)
Hello,

If CONFIG_APM_DISPLAY_BLANK is set, do_blank_screen() always
calls apm_display_blank().
Because of this, monitor is switched to powersave mode
when X server(or other KD_GRAPHICS program) is started.

---------------------------------------
--- linux/drivers/char/console.c-dist	Thu Nov  7 18:25:21 1996
+++ linux/drivers/char/console.c	Sun Jan 19 16:03:47 1997
@@ -2151,12 +2151,13 @@
 	hide_cursor();
 	console_blanked = fg_console + 1;
 
+	if (!nopowersave) {
 #ifdef CONFIG_APM
-	if (apm_display_blank())
-		return;
+		if (apm_display_blank())
+			return;
 #endif
-	if(!nopowersave)
-	    vesa_blank();
+		vesa_blank();
+	}
 }
 
 void do_unblank_screen(void)
---------------------------------------
 ----- manabe@Roy.dsl.ics.tut.ac.jp.
\
 
 \ /
  Last update: 2005-03-22 12:38    [from the cache]
©2003-2008