From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCTkn-0005tH-VP for qemu-devel@nongnu.org; Tue, 16 Dec 2008 01:50:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCTkk-0005pi-Fk for qemu-devel@nongnu.org; Tue, 16 Dec 2008 01:50:01 -0500 Received: from [199.232.76.173] (port=55454 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCTkk-0005pf-5C for qemu-devel@nongnu.org; Tue, 16 Dec 2008 01:49:58 -0500 Received: from mx2.redhat.com ([66.187.237.31]:59096) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCTkj-00006t-Lt for qemu-devel@nongnu.org; Tue, 16 Dec 2008 01:49:57 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mBG6nu0F018060 for ; Tue, 16 Dec 2008 01:49:56 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mBG6ntdr022971 for ; Tue, 16 Dec 2008 01:49:55 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mBG6nsfX006163 for ; Tue, 16 Dec 2008 01:49:55 -0500 Date: Tue, 16 Dec 2008 08:50:47 +0200 From: Gleb Natapov Subject: Re: [Qemu-devel] [PATCH] Handle suspend in qemu. Message-ID: <20081216065047.GC13794@redhat.com> References: <20081211145332.GL5555@redhat.com> <20081216054640.GA10634@morn.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081216054640.GA10634@morn.localdomain> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tue, Dec 16, 2008 at 12:46:41AM -0500, Kevin O'Connor wrote: > On Thu, Dec 11, 2008 at 04:53:32PM +0200, Gleb Natapov wrote: > > BIOS changes are already upstream. > > > > Reset a PC and tell BIOS that resume from ram is required on the next > > boot. > > Hi Gleb, > > How can I test this? > > I grabbed the latest bochs from CVS and compiled the BIOS. I then > tried it on qemu with Fedora8, Ubuntu-8.04, and winxp images - they > all seem to say they can suspend, but none actually work when told to. > > The linux images both appear to support standby (cat /sys/power/state > shows "mem"), but trying suspend (echo -n mem > /sys/power/state) > returns "Resource temporarily unavailable" and a series of messages in > /var/log/messages starting with: Freezing of tasks failed after 20.00 > second (1 tasks refusing to freeze) > Never saw that one. What is you qemu command line? Can you try latest kernel. Searching internet for the "Freezing of tasks failed" suggest that it may be a kernel bug. > The winxp image shows "suspend" in the shutdown menu. However, when I > click on it I get a dialog that says: > > The device driver for the "Default Monitor" device is preventing the > machine from entering standby. Please close all applications and try > again. If the problem persists, you may need to update this driver. > This one sound familiar. You need latest vgabios with DPMS support. -- Gleb.