Re: How Shutdown but not power off.



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

--
=========
Regards,
KM


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

<jbcseri@xxxxxxxxx> ha scritto nel messaggio news:1170871931.727825.137900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.


.



Relevant Pages

  • Re: Why doesnt Turn Off The Computer turn off the computer?
    ... halt -p will poweroff the box, and shutdown -p now will also power off the box. ... The halt manpage says that "Normally, the shutdownutility is used when the system needs to be halted ... ...
    (freebsd-questions)
  • Re: How Can I Halt the System....
    ... are just links to shutdown with the apropriate cmdline options. ... powering off, "poweroff" turns out the power after shutdown. ... Wolfgang Draxinger ...
    (comp.os.linux.misc)
  • Re: How Can I Halt the System....
    ... are just links to shutdown with the apropriate cmdline options. ... powering off, "poweroff" turns out the power after shutdown. ... Wolfgang Draxinger ...
    (alt.os.linux)
  • Re: [SLE] Not able to boot into linux system
    ... On Monday 19 June 2006 01:38, Andy Goss wrote: ... shutdown -ahP -t now ... I gather the "P" tells it to power off. ... Even simpler is just "poweroff". ...
    (SuSE)
  • Re: Turn Off computer not working
    ... MS has fixed shutdown and power down problems before. ... > is an APM tab, make sure the Enable Advanced Power Management ... MS came out with updates specifically for shutdown/power down ...
    (microsoft.public.windowsxp.general)

Loading