Delay power off



Dear windows drivers gurus,

I have a specific requirement for delaying the physical
power off when OS is shutting down, hibernating, suspending
etc for N seconds. I have a number of bus powered devices
which require some extra time to safely power down.

I don't want to go into specifics, but due to various
reasons that could not be easily fixed in hardware or
in drivers coming with the devices (no sources).

My question is, are there any ways to insert an artificial
delay after the os has completed its usual power down
things like completing an outstanding disk I/O, flushing
registry hives, sending power off IOCTLs to the drivers
etc but before the power is actually switched off.

I believe it should be possible as some third party
programs definitely can insert an extra step into power
down process (e.g. disk cloning software etc) so that
if I could just execute a dummy 5 lines app which does
nothing but IDLEs for N seconds before the power is
turned off, or even better, if there are standard ways
for doing this without writing code at all this will
100% meet my needs.

Any ideas?


Thanks.
.



Relevant Pages

  • [PATCH 18/47] updated Documentation/power/devices.txt
    ... Fixup some of the horribly ancient/obsolete description of device suspend() ... +Most of the code in Linux is device drivers, so most of the Linux power ... Most drivers will do very little; ... +power management goals, emphasizing the models and interfaces that are ...
    (Linux-Kernel)
  • [2.6.22-rc3][ACPI?] Resume from s2r doesnt work.
    ... laptop is effectively dead and only a power cycle helps. ... that the drivers suspend and resume correctly. ... # ACPI Support ... ACPI: bus type pci registered ...
    (Linux-Kernel)
  • Re: Some user feedback on recent Intel chipset and 2.6.29 KMS
    ... I will test the individual patch as soon as I get back home and report. ... were not responsive and even short push power button was ineffective ... # Device Drivers ... # SCSI device support ...
    (Linux-Kernel)
  • Re: Live TV Freezes
    ... recording since the tuner card is also drawing power and by starting up your ... DVD drive by putting a disk it that would also draw more power. ... It uses Conexant 23880 drivers. ... Do you have any problem playing DVDs with either MCE or Media Player? ...
    (microsoft.public.windows.mediacenter)
  • Re: [linux-pm] [patch] pm: fix runtime powermanagements /sys interface
    ... some drivers will want to fix up those values so that it can ... the vast and often fundamentally different power ... power management states and capabilities is a sensible option. ... want to provide userspace control of these low-level details. ...
    (Linux-Kernel)