RE: WINCE Power management




"SetDevicePower" will limit the device driver's power state. See
GetNewDeviceDx function in pmdevice.cpp for detail.
From MSDN, applications should avoid using this function because it greatly
restricts device power self-management. They should use the
SetPowerRequirement call instead.
"SetPowerRequirement" will require a minimal power state for the device.

"Kiran K P" wrote:

Hi
I have implemented the power management for USB HCD driver.
I have implemented the IOCTL_POWER_CAPABILITIES, IOCTL_POWER_GET and the
IOCTL_POWER_SET in the driver.
When I start the system the device is enumerating through the
and also i am returning true from the IOCTL_POWER_CAPABILITIES when
success.My problem is ... I am not able to call the IOCTL_POWER_SET from my
application always.
I have used the SetDevicePower API from an application and the call
succeeded to my IOCTL_POWER_SET once. But the next time onwards I am not
getting a call to my IOCTL_POWER_SET portion in the driver. I tried using the
DevicePowerNotify also. These APIs return 0(SUCCESS) but i am not getting a
call in the driver. COuld any body please help me on this?
Please let me know how to pass call to the IOCTL_POWER_SET from the
application successfully when ever needed
.



Relevant Pages

  • Re: [PATCH -mm] kexec jump -v9
    ... methods for each and every driver to handle that case, ... hibernation and suspend should be solved in separate patches. ... for a possible power state transition. ... @suspend place the device in a low power state. ...
    (Linux-Kernel)
  • Re: [PATCH 2/5] [pm] Add state field to pm_message_t (to hold actual state device is in)
    ... some devices support>1 low-power state which can be used to save ... not being used will most likely use the lowest power state, ... How, from the above message, is the driver to know that it's being asked ...
    (Linux-Kernel)
  • RE: why this API (SetSystemPowerState) can not change the system power
    ... are you calling SetSystemPowerState from a driver or from an application? ... So the driver must not assume that the request ... use a bitmask to describe the power state you want to change to ... My system power state is in useridle mode, when I got an event in my driver ...
    (microsoft.public.windowsce.embedded)
  • Re: [PATCH 0/8] Suspend block api (version 6)
    ... I'm faced with is that as a result of using system suspend much more ... instructions about what the lowest power state possible is. ... normal course of affairs means that the driver should shut everything ...
    (Linux-Kernel)
  • Re: Roadrunner & OS/2?
    ... IRQ number:0B ... Probably your driver is a wrong one. ... Device 0985h AN983 FastNIC PCI 10/100 Fast Ethernet Adapter ... Supports low power State D1 ...
    (comp.os.os2.setup.misc)