From patchwork Sat Sep 3 01:29:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Tobias Schandinat X-Patchwork-Id: 1123182 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p831BpYi025940 for ; Sat, 3 Sep 2011 01:11:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753110Ab1ICBLu (ORCPT ); Fri, 2 Sep 2011 21:11:50 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:41768 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752985Ab1ICBLu (ORCPT ); Fri, 2 Sep 2011 21:11:50 -0400 Received: (qmail invoked by alias); 03 Sep 2011 01:11:48 -0000 Received: from dslb-088-066-131-213.pools.arcor-ip.net (EHLO localhost.localdomain) [88.66.131.213] by mail.gmx.net (mp024) with SMTP; 03 Sep 2011 03:11:48 +0200 X-Authenticated: #10250065 X-Provags-ID: V01U2FsdGVkX1+aMPkBw4OamJgIhWtsLzYjZNCJdV0GEUEP1aUztx Ii4B1knk+5aTxI From: Florian Tobias Schandinat To: linux-kernel@vger.kernel.org Cc: linux-fbdev@vger.kernel.org, Greg Kroah-Hartman , Dave Airlie , Arnd Bergmann , Bernie Thompson , Martin Decky , Florian Tobias Schandinat Subject: [PATCH 2/2] vt: dirty hack Date: Sat, 3 Sep 2011 01:29:21 +0000 Message-Id: <1315013361-3191-3-git-send-email-FlorianSchandinat@gmx.de> X-Mailer: git-send-email 1.6.3.2 In-Reply-To: <1315013361-3191-1-git-send-email-FlorianSchandinat@gmx.de> References: <1315013361-3191-1-git-send-email-FlorianSchandinat@gmx.de> X-Y-GMX-Trusted: 0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 03 Sep 2011 01:11:51 +0000 (UTC) --- drivers/tty/vt/vt.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index b3915b7..8332004 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -3740,7 +3740,6 @@ void do_blank_screen(int entering_gfx) hide_cursor(vc); save_screen(vc); vc->vc_sw->con_blank(vc, -1, 1); - console_blanked = fg_console + 1; blank_state = blank_off; set_origin(vc); return; @@ -3752,7 +3751,6 @@ void do_blank_screen(int entering_gfx) /* don't blank graphics */ if (vc->vc_mode != KD_TEXT) { - console_blanked = fg_console + 1; return; } @@ -3795,7 +3793,7 @@ void do_unblank_screen(int leaving_gfx) WARN_CONSOLE_UNLOCKED(); ignore_poke = 0; - if (!console_blanked) + if (!console_blanked && !leaving_gfx) return; if (!vc_cons_allocated(fg_console)) { /* impossible */