[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] on-quit-v0.21 with resume/suspend/power-off dialog Re: [patc

From: Struan Bartlett
Subject: Re: [patch] on-quit-v0.21 with resume/suspend/power-off dialog Re: [patch] Re: [Qemu-devel] Suggestion - trap window-close of VM
Date: Tue, 10 May 2005 10:40:47 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050420 Debian/1.7.7-2

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:
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\@
|                     \ - /

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
Version: GnuPG v1.4.0 (GNU/Linux)


Qemu-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]