[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inconsistent behaviour of "keystatus" in a waiting loop

From: Andrei Borzenkov
Subject: Re: Inconsistent behaviour of "keystatus" in a waiting loop
Date: Tue, 19 May 2015 20:52:41 +0300

В Tue, 19 May 2015 19:35:34 +0200
"Arbiel (gmx)" <address@hidden> пишет:

> > Ah, sorry, I misunderstood. Yes, I see this behavior. The problem is,
> > on PC BIOS getkeystatus simply checks flags in BIOS Data Area and in
> > your first loop BIOS never gets chance to run and update these flags.
> > While in your second loop sleep actually polls for input characters and
> > so allows BIOS to set flags.
> >
> > I see two possible solutions.
> >
> > Brute force and easy one - add --milliseconds switch to sleep command
> > to minimize delay. Internally sleep is using milliseconds anyway. Care
> > to send patch to grub-devel?
> This solution will do it. However I don't know how to add the
> milliseconds switch to the sleep command.

OK, could you open bug report on so it is not get lost.

Attachment: pgpqOqDf4NMZM.pgp
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]