From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6i8R-0006qY-FY for qemu-devel@nongnu.org; Wed, 20 May 2009 05:30:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6i8Q-0006qB-BD for qemu-devel@nongnu.org; Wed, 20 May 2009 05:30:50 -0400 Received: from [199.232.76.173] (port=32814 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6i8Q-0006q4-6U for qemu-devel@nongnu.org; Wed, 20 May 2009 05:30:50 -0400 Received: from mx03.syneticon.net ([78.111.66.105]:37574) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M6i8P-0008KC-Qm for qemu-devel@nongnu.org; Wed, 20 May 2009 05:30:50 -0400 Received: from localhost (filter1.syneticon.net [192.168.113.83]) by mx03.syneticon.net (Postfix) with ESMTP id 5C5D335E13 for ; Wed, 20 May 2009 11:30:48 +0200 (CEST) Received: from mx03.syneticon.net ([192.168.113.84]) by localhost (mx03.syneticon.net [192.168.113.83]) (amavisd-new, port 10025) with ESMTP id 8f8CXr1XUXEV for ; Wed, 20 May 2009 11:30:46 +0200 (CEST) Received: from [192.168.10.145] (koln-4db4e6cc.pool.einsundeins.de [77.180.230.204]) by mx03.syneticon.net (Postfix) with ESMTPSA for ; Wed, 20 May 2009 11:30:45 +0200 (CEST) Message-ID: <4A13CDC4.3000704@wpkg.org> Date: Wed, 20 May 2009 11:30:44 +0200 From: Tomasz Chmielewski MIME-Version: 1.0 Subject: Re: [Qemu-devel] "i8042.c: No controller found" -> OS sees no keyboard if I type "in BIOS" References: <4A0C232D.1020201@wpkg.org> In-Reply-To: <4A0C232D.1020201@wpkg.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Tomasz Chmielewski schrieb: > When I boot the guest and type (just hit any keys) in the VNC window > before the operating system boots, sometimes, the system loads with no > keyboard present - as signified in dmesg on guest: > > i8042.c: No controller found > > As a result, I can't use the keyboard in the VNC window. > > If I start qemu process and I don't press any key, I can use the > keyboard once the operating system boots. > > Rebooting the guest doesn't fix the problem, even if I don't touch the > keyboard before the OS boots any more. > Only stopping the guest and starting a new qemu process fixes the problem. > > Anyone else saw it as well? If not, try something like that on your guests: > > grep i8042 /var/log/kern* > > (or grep "i8042.c: No controller found" /var/log/kern*) > > Some more confirmations of this problem in the internet: > > http://qemu-forum.ipi.fi/viewtopic.php?f=5&t=4461 > http://osdir.com/ml/fedora-virt/2009-04/msg00066.html > http://www.proxmox.com/forum/showthread.php?t=1163 drivers/input/serio/i8042.c in the Linux kerne has this: static int i8042_controller_check(void) { if (i8042_flush() == I8042_BUFFER_SIZE) { printk(KERN_ERR "i8042.c: No controller found.\n"); return -ENODEV; } return 0; } So, can it be that if we type anything on keyboard (or move mouse) while Qemu's BIOS is still booting or later in the bootloader (GRUB, lilo), some buffer is not flushed and Linux gets confused? And as a result, decides there is no keyboard? -- Tomasz Chmielewski http://wpkg.org