On 10/23/14 07:38, Dong, Eric wrote: > This timeout value is used to wait for user input, if we set this > value to 0, it means we will not wait for the user input and directly > boot the first boot option. > > Actually I don't clear what's the request now? Boot as fast as > possible and also need get possible user input?
Yes. There is some unavoidable delay during boot, before the BDS front page is considered at all. Drivers are loaded and dispatched, devices are probed and connected, and so on. During part of this process, the splash screen is already visible, and the user can very well press a key during this unavoidable, CPU- and device-bound delay. What we'd need is a *single poll* of the keyboard in PlatformBdsEnterFrontPage(), just to see if the user has pressed a key *previously*. There's no need to give the user more time for pressing a key (certainly not a full second); the unavoidable delay, inherent in booting, gives plenty of time to the user. However, if we set TimeoutDefault to 0, then PlatformBdsEnterFrontPage() -> ShowProgress() doesn't look at the keyboard at all. I can propose a fix for this, I'll include it in v2. Thanks Laszlo ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel