From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LUSqX-0000mq-2r for mharc-grub-devel@gnu.org; Tue, 03 Feb 2009 16:30:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUSqT-0000lj-RR for grub-devel@gnu.org; Tue, 03 Feb 2009 16:30:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUSqS-0000kv-3c for grub-devel@gnu.org; Tue, 03 Feb 2009 16:30:13 -0500 Received: from [199.232.76.173] (port=35692 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUSqR-0000kq-P4 for grub-devel@gnu.org; Tue, 03 Feb 2009 16:30:11 -0500 Received: from fg-out-1718.google.com ([72.14.220.157]:28666) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUSqR-0000y8-A7 for grub-devel@gnu.org; Tue, 03 Feb 2009 16:30:11 -0500 Received: by fg-out-1718.google.com with SMTP id l27so1141737fgb.30 for ; Tue, 03 Feb 2009 13:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=MSR10UWI3wbozD8JXkFWpe5U6qoAi+4sHKF88kSy7T4=; b=W9fLQtx2CtighU66tZFiNUCykh8wukOySUtUfq0mQB8vPPg12HkQNd1luBrATQ5gFU dRaHDeSqValzy/Ohsf6HnFSsG+4MwxOTIN8rzzBG5ISHI+LcWwPOoF7PnzKrB5V2GpqM gJw/NLmwbbOfeu41bB7Whz1pEWLJ/GYV03QKM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=eRAeU4TOcDhy0Hv6ZYxM17bd7rxFfI+r5sDPlpRiPkoP2t0m5VSiDLsCRhqab4DGm2 pY+coop3NILcqZzQ1aGvGZZnlBHQxP/e8KdbkmrInBjYsJV1oGQDZsFyxGV8Wi9rxiPN /T0mVbF3cU7KOi5C6wbZIfqofz4OqSpZautT4= Received: by 10.86.95.20 with SMTP id s20mr391349fgb.4.1233696609219; Tue, 03 Feb 2009 13:30:09 -0800 (PST) Received: from ?192.168.1.25? (144-122.203-62.cust.bluewin.ch [62.203.122.144]) by mx.google.com with ESMTPS id e20sm114615fga.46.2009.02.03.13.30.07 (version=SSLv3 cipher=RC4-MD5); Tue, 03 Feb 2009 13:30:08 -0800 (PST) Message-ID: <4988B758.5060408@gmail.com> Date: Tue, 03 Feb 2009 22:30:00 +0100 From: phcoder User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Bugfix] Hang on new mac laptops 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: Tue, 03 Feb 2009 21:30:14 -0000 Hello. On new mac laptops waiting for keyboard event causes random hangs. Bugfix attached Thanks Vladimir 'phcoder' Serbinenko Index: ChangeLog =================================================================== --- ChangeLog (revision 1967) +++ ChangeLog (working copy) @@ -1,3 +1,10 @@ +2009-02-03 Vladimir Serbinenko + + Don't rely on event for keyboard on EFI. It causes random hangs + Great thanks to Florian Idelberger for testing and helping finding this bug + + * term/efi/console.c: Replace wait for event with grub_millisleep (10) + 2009-02-01 Felix Zielcke * INSTALL: Note that we now require at least autconf 2.59 and that LZO Index: term/efi/console.c =================================================================== --- term/efi/console.c (revision 1967) +++ term/efi/console.c (working copy) @@ -226,9 +226,10 @@ do { - status = efi_call_3 (b->wait_for_event, 1, &(i->wait_for_key), &index); + /* status = efi_call_3 (b->wait_for_event, 1, &(i->wait_for_key), &index); if (status != GRUB_EFI_SUCCESS) - return -1; + return -1;*/ + grub_millisleep (10); grub_console_checkkey (); }