How Shutdown but not power off.

C

crus

I have an image for APCI backplane that behaves as expected: on shutdown the
power supply is switched off.
This image uses the "ACPI Uniprocessor PC"
I'm now requested, it's not logical I know, to have the behavior of a PC
without power management, so that, after shutdown on the screen appears the
message "You can now safely turn off your computer" keeping the hardware
still powered.
To check how things work I have disabled the ACPI in Bios setup, done a new
..PMQ and a new component that now has the"MPS uniprocessor PC" component
instead of the ACPI one.
I've made a new image that behaves as expected: after soft shutdown the
message requesting power off appears and the MB is not powered off.
But this is not satisfying, I should have the ACPI function enabled ( bios
and XPE) but keep the hardware powered enven at the end of shutdown.
Anybody knows a configuration to have this behavior using the ACPI
component?
I already tried the "PowerDownAfterShutdown" reg key without success.
Thanks all
 
J

jbcseri

Have you tried to replace the computer component (ACPI Uniprocessor,
etc.) with Standard PC? You won't be able to use any other ACPI
functions, but you may get the behavior your looking for.
 
C

crus

Yes, I have done it, using Standard Pc or MPS Uniprocessor Pc the behavior
is as it should: no power off, but I should stay with ACPI
When I use Standard or MPS PC HAL init problem appears, such COMs and Touch
no more responding.
I'm investigating on that but a way to prevent power to go off on ACPI
should be better.
Regards
 
K

KM

crus,

The problem is that if you are using ACPI HAL it reports back to app level through power driver that your device supports PowerOFF
(S5) state (and it can be forced by software). If S5 state is supported and reported through power capability flags (via
NtPowerInformation API, for instance) then the system will ignore PowerDownAfterShutdown key and the shell will always call
ExitWindows(EWX_POWEROFF) on shutdown.

You can try and write some test code to call ExitWindowsEx(EWX_SHUTDOWN) (but not EWX_POWEROFF) manually to see if with the ACPI HAL
you can even see that dialog "It is safe now to turn off the computer" showing up. Just make sure your calling process has the
enough (SE_SHUTDOWN_NAME) privileges to make the call. (http://msdn2.microsoft.com/en-us/library/aa376868.aspx)
I don't think though it is going to work as the call gets forwarded to the HAL anyway and it will turn the power off.

On the system with APM supported there is more that can be done but it is a different story (you didn't mention APM at all in your
post so I assume it is not the feature on your hardware).


Btw, if instead of poweroff something like standby, hibernate or logoff is accepted for your system specs, you can use "Shutdown
settings" value (feature of Explorer shell) to replace the default shutdown behavior. See more here:
http://technet2.microsoft.com/WindowsServer/en/library/c187eb15-acc8-496d-b9bc-f95bb84cee1e1033.mspx
 
C

crus

Hello Konstantin,
your gues is right, even using
'ExitWindowsEx (EWX_FORCE | EWX_SHUTDOWN, 0)'
the system shuts down without warning message.
Looking in Device Manager at "ACPI uniprocessor PC" I see that power supply
mappings are s0->D0, S1, S2, S3, S4, S5 -> D3.
D0= PS ON D3=PS OFF.
Mapping is according bios since Hibernate is not enabled.
I fear that is not possible to modify behavior.
Thanks again for your help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top