From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HjgTD-0003s9-CO for mharc-grub-devel@gnu.org; Thu, 03 May 2007 14:56:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HjgTB-0003ne-89 for grub-devel@gnu.org; Thu, 03 May 2007 14:56:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HjgT9-0003m8-O8 for grub-devel@gnu.org; Thu, 03 May 2007 14:56:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HjgT9-0003le-Io for grub-devel@gnu.org; Thu, 03 May 2007 14:55:59 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HjgMa-0004Ah-W8 for grub-devel@gnu.org; Thu, 03 May 2007 14:49:13 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1HjgMZ-0001YB-Ex for grub-devel@gnu.org; Thu, 03 May 2007 20:49:12 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1HjgNX-00068x-Qa for grub-devel@gnu.org; Thu, 03 May 2007 20:50:11 +0200 Date: Thu, 3 May 2007 20:50:11 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20070503185011.GA23556@aragorn> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Genre and OS details not recognized. Subject: [PATCH] terminal is not set back to console X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2007 18:56:01 -0000 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline When using gfxterm, and booting a kernel in this mode, Linux won't be able to print anything to the console. This patch fixes it so that terminal is set back to normal console during deinitialisation. Tested and known to work, although I'm not 1:1 sure if this is the right place to do it. -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list. --lrZ03NoBR/3+SXJZ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="deinitialise_terminal.diff" 2007-05-03 Robert Millan * term/i386/pc/console.c (grub_console_fini): Call grub_term_set_current() before grub_term_unregister(). Index: term/i386/pc/console.c =================================================================== RCS file: /sources/grub/grub2/term/i386/pc/console.c,v retrieving revision 1.7 diff -u -r1.7 console.c --- term/i386/pc/console.c 20 Aug 2005 05:26:51 -0000 1.7 +++ term/i386/pc/console.c 3 May 2007 18:42:08 -0000 @@ -148,5 +148,6 @@ void grub_console_fini (void) { + grub_term_set_current (&grub_console_term); grub_term_unregister (&grub_console_term); } --lrZ03NoBR/3+SXJZ--