From: Struan Bartlett <struan@praguespringpeople.org>
To: qemu-devel@nongnu.org
Subject: A Fix Re: APM bug Re: [Qemu-devel] Re: Suggestion - trap window-close of VM
Date: Mon, 04 Apr 2005 11:53:36 +0200 [thread overview]
Message-ID: <42510EA0.20900@praguespringpeople.org> (raw)
In-Reply-To: <424C39EB.6020203@praguespringpeople.org>
[-- Attachment #1: Type: text/plain, Size: 1998 bytes --]
Hi -
For anyone running Windows 2000 on Qemu, I've developed a fix that makes
APM - and therefore Windows 2000 shutdown - correctly 'power off' (i.e.
close) Qemu.
I needed to patch the BIOS - which didn't implement the APM 1.2 16-bit
protected mode interface that Windows 2000 apparently requires.
Afterwards, as my Windows 2000 installation didn't have the APM driver
installed, I simply needed to install it by going Control Panel =>
Add/Remove Hardware & Next => Add/Troubleshoot a device => Add a new
device & Next => No, I want to select the hardware from a list & Next =>
NT Apm/Legacy Support & Next => Next (again) a few times. Afterwards, I
did Control Panel => Power Options, chose the APM tab and made sure the
Advanced Power Management support checkbox was ticked. I also chose the
Hibernate tab and enabled Hibernate Support too. After rebooting,
Windows 2000 now correctly instructs Qemu to shutdown at the appropriate
moment. No patches to Qemu were required.
What doesn't work yet is Standby and Suspend, although I've generalised
the APM Bios to support both of them. When attempting Standby (which
doesn't always appear as an option - a problem I'm aware of), Windows
tries to go into Standby but then reports that /"the device driver for
the device is preventing this machine from entering standby. Please
close all applications and try again. If the problem persists, you may
need to update this driver."/ I don't know why this should be. By
contrast, Suspend doesn't ever appear as an option - but it would be
nice to make this trigger the Qemu savevm/loadvm facility.
You can find the Bios source patch as well as a precompiled
patched-binary bios (for those who don't want to download the Bochs
source) at http://www.praguespringpeople.org/Struan/Software/BochsBIOS/.
Simply copy bios.bin-patchedAPM1.2 over your
/usr/local/share/qemu/bios.bin (or better over pc-bios/bios.bin in your
Qemu source directory and then do 'make install').
Struan
[-- Attachment #2: Type: text/html, Size: 2490 bytes --]
next prev parent reply other threads:[~2005-04-04 15:23 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-27 3:49 [Qemu-devel] Suggestion - trap window-close of VM Ryan Rempel
2005-03-27 18:30 ` Struan Bartlett
2005-03-28 11:34 ` [patch] " Struan Bartlett
2005-03-28 12:51 ` Asko Kauppi
2005-03-28 13:04 ` Paul Brook
2005-03-29 22:37 ` [Qemu-devel] " Ryan Rempel
2005-03-29 22:52 ` Paul Brook
2005-03-30 1:17 ` Ryan Rempel
2005-03-30 12:20 ` Struan Bartlett
2005-03-30 12:48 ` Lennert Buytenhek
2005-03-30 13:26 ` Struan Bartlett
2005-03-30 18:22 ` Lennert Buytenhek
2005-03-30 20:16 ` Leonardo E. Reiter
2005-03-30 21:22 ` Lennert Buytenhek
2005-03-30 21:43 ` Struan Bartlett
2005-03-31 9:32 ` John R. Hogerhuis
2005-03-31 12:31 ` Lennert Buytenhek
2005-03-30 13:21 ` APM bug " Struan Bartlett
2005-03-31 10:38 ` Struan Bartlett
2005-03-31 17:56 ` Struan Bartlett
2005-04-03 22:00 ` A Fix " Struan Bartlett
2005-04-04 9:53 ` Struan Bartlett [this message]
2005-04-04 17:12 ` Struan Bartlett
2005-04-04 22:26 ` Iain McFarlane
2005-04-05 16:34 ` Volker Ruppert
2005-04-05 21:05 ` Iain McFarlane
2005-04-05 21:33 ` [Qemu-devel] Re: Windows 2000 SP4 (was Re: APM bug) Leonardo E. Reiter
2005-04-05 22:57 ` Hetz Ben Hamo
2005-04-05 23:03 ` Leonardo E. Reiter
2005-04-05 23:48 ` Hetz Ben Hamo
2005-04-06 0:28 ` Leonardo E. Reiter
2005-04-06 0:52 ` [Qemu-devel] Re: Windows 2000 SP4 Leonardo E. Reiter
2005-04-06 20:25 ` [Qemu-devel] Re: Windows 2000 SP4 (was Re: APM bug) Fabrice Bellard
2005-04-06 22:47 ` Hetz Ben Hamo
2005-04-07 7:17 ` Jonas Maebe
2005-04-07 11:56 ` Flavio Visentin
2005-04-05 23:40 ` Derek Fawcus
2005-04-07 16:42 ` A Fix Re: APM bug Re: [Qemu-devel] Re: Suggestion - trap window-closeof VM Andreas Bollhalder
2005-04-05 13:55 ` APM bug Re: [Qemu-devel] Re: Suggestion - trap window-close of VM Alex Beregszaszi
2005-03-31 16:38 ` Andreas Bollhalder
2005-03-31 17:32 ` Jason Gress
2005-05-07 16:30 ` [patch] on-quit-v0.21 with resume/suspend/power-off dialog Re: [patch] Re: [Qemu-devel] " Struan Bartlett
2005-05-09 15:43 ` Ryan Rempel
2005-05-09 22:25 ` Struan Bartlett
2005-05-09 23:19 ` Flavio Visentin
2005-05-10 8:40 ` Struan Bartlett
2005-07-29 0:07 ` [patch] " Struan Bartlett
2005-03-28 15:04 ` Mark Williamson
2005-03-28 19:13 ` Joshua Kugler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42510EA0.20900@praguespringpeople.org \
--to=struan@praguespringpeople.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).