Changing power state of driver

Hi,

I am developing a driver that is using OID_PNP_SET_POWER (D0 and D3 support).

What I am trying to do is to send this oid to my driver to check if it is working.

I was trying to do was disabling my device.

foo example:
Device Manager -> Keyboards -> Driver tab (here click disable button)
Details tab -> “Property” set to “Power data” -> Current power state (when disabled it is D3)

This steps did not send OID_PNP_SET_POWER to my driver.

Is power state of device not the same as power state of driver?
Is power state of device forcing power state of driver?
If not, how can I force this OID to my driver?

Oids are networking things, not applicable to other device stacks like keyboards. What you see in device manager is reporting of the current state, device manager is not forcing power states on the device. Only the power policy owner can change to power state, in this case it would be ndis itself

d

Bent from my phone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?3/?27/?2015 10:29 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] Changing power state of driver

Hi,

I am developing a driver that is using OID_PNP_SET_POWER (D0 and D3 support).

What I am trying to do is to send this oid to my driver to check if it is working.

I was trying to do was disabling my device.

foo example:
Device Manager -> Keyboards -> Driver tab (here click disable button)
Details tab -> “Property” set to “Power data” -> Current power state (when disabled it is D3)

This steps did not send OID_PNP_SET_POWER to my driver.

Is power state of device not the same as power state of driver?
Is power state of device forcing power state of driver?
If not, how can I force this OID to my driver?


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>

> Oids are networking things, not applicable to other device stacks like
keyboards.

Ok, bad example, I just wanted to show my problem in general. I am doing this steps on network adapter.

Only the power policy owner can change to power state, in this case it would be ndis itself
Can I “ask”/force ndis to do so? Is there any documentation about it on MSDN? I could only find articles about power states, not about how to change them.

PWRTEST was there in the WDK test suites for years.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntdev…
> Hi,
>
> I am developing a driver that is using OID_PNP_SET_POWER (D0 and D3 support).
>
> What I am trying to do is to send this oid to my driver to check if it is working.
>
> I was trying to do was disabling my device.
>
> foo example:
> Device Manager -> Keyboards -> Driver tab (here click disable button)
> Details tab -> “Property” set to “Power data” -> Current power state (when disabled it is D3)
>
> This steps did not send OID_PNP_SET_POWER to my driver.
>
> Is power state of device not the same as power state of driver?
> Is power state of device forcing power state of driver?
> If not, how can I force this OID to my driver?
>