Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LWD3C-0000kk-2t for mharc-grub-devel@gnu.org; Sun, 08 Feb 2009 12:02:34 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWD39-0000jW-Dd for grub-devel@gnu.org; Sun, 08 Feb 2009 12:02:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWD38-0000iI-6o for grub-devel@gnu.org; Sun, 08 Feb 2009 12:02:30 -0500 Received: from [199.232.76.173] (port=38531 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWD37-0000iB-OX for grub-devel@gnu.org; Sun, 08 Feb 2009 12:02:29 -0500 Received: from fg-out-1718.google.com ([72.14.220.153]:62334) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWD37-0003EP-1t for grub-devel@gnu.org; Sun, 08 Feb 2009 12:02:29 -0500 Received: by fg-out-1718.google.com with SMTP id l27so1004162fgb.30 for ; Sun, 08 Feb 2009 09:02:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=2o7BygOZZ3CehRFcWsd9m/VnaZEZlIe7niN4TnKhHrY=; b=dWm64QQhgaqUInXqdB12tWLfGcf217OwjA496xjDqAdihIAvGcIECmf7KxyyGm+2Xc f4HFyM7r8TBB0MZ7Cmg7bXy7FtxRdUePvx2sjaVur+U6IAfFigznK/mg0u7B3M3Q8blP yUNBCJN3g+puBhd5lm9WKuYIA2xIn3nvFY4l8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=onxdJP2qalhh/Mu4/wHGyhWr80xKStEuD3irjnl9lvSyJAYucZq3v9zkrrE1ekV8tx wLFZARzy3KaIPe2GGupX+35BJp2hbttzpCpH48mw3ga9lOfMPfAU872KXrd2wsn23ycP sTWYbp0LFjJiKFZBNStDox2owwXyCEyq8PhxY= MIME-Version: 1.0 Sender: florian.idelberger@gmail.com Received: by 10.86.57.9 with SMTP id f9mr2223112fga.38.1234112547180; Sun, 08 Feb 2009 09:02:27 -0800 (PST) In-Reply-To: <20090207223437.GP6343@thorin> References: <4988B758.5060408@gmail.com> <1233698760.17258.5.camel@dv> <49894A2C.7040509@gmail.com> <20090207223437.GP6343@thorin> Date: Sun, 8 Feb 2009 18:02:27 +0100 X-Google-Sender-Auth: b3cd94bd193878e7 Message-ID: From: step21 To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=000e0cd28bfcfcd2c404626b3782 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [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: Sun, 08 Feb 2009 17:02:31 -0000 --000e0cd28bfcfcd2c404626b3782 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I made an *.efi with a few modules (for convenience and cause the minimal build somehow didn't want to load anything, but that could have been me) Then I loaded at_keyboard with "insmod at_keyboard" that worked. Then when I do "terminal_input at_keyboard" it doesn't give me a new prompt and seems to "hang". How to further debug this? What is expected behaviour? On Sat, Feb 7, 2009 at 11:34 PM, Robert Millan wrote: > On Wed, Feb 04, 2009 at 08:56:28AM +0100, phcoder wrote: > > - status = efi_call_3 (b->wait_for_event, 1, &(i->wait_for_key), > &index); > > - if (status != GRUB_EFI_SUCCESS) > > - return -1; > > + /* Don't use wait_for_event it's known > > + to cause hangs on some mac models */ > > + grub_millisleep (10); > > I'm fine with the workaround, but please could you check if at_keyboard.mod > works there? It's not the first time we have trouble due to buggy keyboard > drivers, I'd be very happy if we could avoid more of the same. > > insmod at_keyboard > terminal_input at_keyboard > > -- > Robert Millan > > The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and > how) you may access your data; but nobody's threatening your freedom: we > still allow you to remove your data and not access it at all." > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --000e0cd28bfcfcd2c404626b3782 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I made an *.efi with a few modules (for convenience and cause the minimal b= uild somehow didn't want to load anything, but that could have been me)= Then I loaded at_keyboard with "insmod at_keyboard" that worked.= Then when I do "terminal_input at_keyboard" it doesn't give = me a new prompt and seems to "hang".
How to further debug this? What is expected behaviour?


On Sat, Feb 7, 2009 at 11:34 PM, Robert = Millan <rmh@aybabtu= .com> wrote:
On Wed, Feb 04, 2009 at 08:56:28AM +0100, phcoder wro= te:
> - =A0 =A0 =A0status =3D efi_call_3 (b->wait_for_event, 1, &(i-&= gt;wait_for_key), &index);
> - =A0 =A0 =A0if (status !=3D GRUB_EFI_SUCCESS)
> - =A0 =A0 =A0 =A0return -1;
> + =A0 =A0 =A0/* Don't use wait_for_event it's known
> + =A0 =A0 =A0to cause hangs on some mac models */
> + =A0 =A0 =A0grub_millisleep (10);

I'm fine with the workaround, but please could you check if at_keyboard= .mod
works there? =A0It's not the first time we have trouble due to buggy ke= yboard
drivers, I'd be very happy if we could avoid more of the same.

=A0insmod at_keyboard
=A0terminal_input at_keyboard

--
Robert Millan

=A0The DRM opt-in fallacy: "Your data belongs to us. We will decide w= hen (and
=A0how) you may access your data; but nobody's threatening your freedo= m: we
=A0still allow you to remove your data and not access it at all."


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

--000e0cd28bfcfcd2c404626b3782--