Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVQc0-0002zw-Ch for qemu-devel@nongnu.org; Tue, 10 May 2005 05:01:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVQOy-00029b-53 for qemu-devel@nongnu.org; Tue, 10 May 2005 04:48:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVQMX-00025Q-Gx for qemu-devel@nongnu.org; Tue, 10 May 2005 04:45:10 -0400 Received: from [217.204.41.189] (helo=kula.newsnow.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DVQOc-00033o-NC for qemu-devel@nongnu.org; Tue, 10 May 2005 04:47:19 -0400 Received: from r3j188.chello.upc.cz ([213.220.201.188] helo=[192.168.0.4]) by kula.newsnow.net with esmtp (Exim 3.35 #1 (Debian)) id 1DVQGl-000339-00 for ; Tue, 10 May 2005 09:39:11 +0100 Message-ID: <4280738F.1070401@praguespringpeople.org> Date: Tue, 10 May 2005 10:40:47 +0200 From: Struan Bartlett MIME-Version: 1.0 Subject: Re: [patch] on-quit-v0.21 with resume/suspend/power-off dialog Re: [patch] Re: [Qemu-devel] Suggestion - trap window-close of VM References: <4246FBD8.7000403@praguespringpeople.org> <4247EBB0.6090409@praguespringpeople.org> <427CED18.4030607@praguespringpeople.org> <427FEFF8.3030505@zipman.it> In-Reply-To: <427FEFF8.3030505@zipman.it> Content-Type: multipart/alternative; boundary="------------080305090305090108090706" 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 This is a multi-part message in MIME format. --------------080305090305090108090706 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Great. What I recall happens is that the Windows 2000 APM driver calls the APM bios function 0x0B (Get PM Event) every second and, should the APM bios be aware of an event (such as that the power button has been pressed) it signals this in the return value of the function. Thereafter, the Windows 2000 APM driver is expected to call the APM bios again to determine the details of the event and thereafter, if it can, respond to it by e.g. shutting the OS down, entering standby or suspend state, as appropriate. At a rough guess, we're talking about having the APM bios signal PM event 0x06 (Power Status Change Notification). When I get some time, I try looking more through http://www.phamhoaiviet.com/archives%5Cebooks%5Capmv12.rtf. Flavio Visentin wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > > > >>I guess >>the question is whether it's possible for the hardware to tell Windows >>2000 to shut down? >> >> > >The answer is YES FOR SURE. >If you press the power button the system cleanly shut down. > >The question is: which is the event generated by the power button that >triggers the shut down? > >- -- >Flavio Visentin > >| \|||/ >| @/0.0\@ >| \ - / >+------------------oOOo---oOOo------------------ > >There are only 10 types of people in this world: >those who understand binary, and those who don't. > >GPG Key: http://www.zipman.it/gpgkey.asc >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.0 (GNU/Linux) > >iD8DBQFCf+/4usUmHkh1cnoRAoXBAJ4/9YhZXS1nwUUCek4LWi4DLnpGQACeJU1P >rVz+muvcSXoVfHpUCm/e1L4= >=aYOu >-----END PGP SIGNATURE----- > > >_______________________________________________ >Qemu-devel mailing list >Qemu-devel@nongnu.org >http://lists.nongnu.org/mailman/listinfo/qemu-devel > > --------------080305090305090108090706 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Great. What I recall happens is that the Windows 2000 APM driver calls the APM bios function 0x0B (Get PM Event) every second and, should the APM bios be aware of an event (such as that the power button has been pressed) it signals this in the return value of the function. Thereafter, the Windows 2000 APM driver is expected to call the APM bios again to determine the details of the event and thereafter, if it can, respond to it by e.g. shutting the OS down, entering standby or suspend state, as appropriate.

At a rough guess, we're talking about having the APM bios signal PM event 0x06 (Power Status Change Notification).

When I get some time, I try looking more through http://www.phamhoaiviet.com/archives%5Cebooks%5Capmv12.rtf.

Flavio Visentin wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  
I guess
the question is whether it's possible for the hardware to tell Windows
2000 to shut down?
    

The answer is YES FOR SURE.
If you press the power button the system cleanly shut down.

The question is: which is the event generated by the power button that
triggers the shut down?

- --
Flavio Visentin

|                     \|||/
|                    @/0.0\@
|                     \ - /
+------------------oOOo---oOOo------------------

There are only 10 types of people in this world:
those who understand binary, and those who don't.

GPG Key: http://www.zipman.it/gpgkey.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCf+/4usUmHkh1cnoRAoXBAJ4/9YhZXS1nwUUCek4LWi4DLnpGQACeJU1P
rVz+muvcSXoVfHpUCm/e1L4=
=aYOu
-----END PGP SIGNATURE-----


_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel
  
--------------080305090305090108090706--