controlling device power states

Hi,
Is there a technique to control (by control panel, code in user mode or
kernel mode) the device states of individual i/o devices?
Namely, can i force all devices to run at max power consumption state?
Likewise, can i force the cpu to run at max frequency overriding the power
saving features?

With Thanks
Kutty S Banerjee

There is no API to control devices themselves. The CPU usage you can
probably alter with a call to SetActivePwrScheme

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 1:14 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] controlling device power states

Hi,
Is there a technique to control (by control panel, code in user mode or
kernel mode) the device states of individual i/o devices?
Namely, can i force all devices to run at max power consumption state?
Likewise, can i force the cpu to run at max frequency overriding the
power
saving features?

With Thanks
Kutty S Banerjee


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

May I reframe my question as follows. I figure that I/O Devices drivers
(WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel mode
driver sent this to “A Device” asking it to be in D0 State? Or will the
Power Manager tamper with my request? Can the device deny my request?

Thanks
Kutty
“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> Hi,
> Is there a technique to control (by control panel, code in user mode or
> kernel mode) the device states of individual i/o devices?
> Namely, can i force all devices to run at max power consumption state?
> Likewise, can i force the cpu to run at max frequency overriding the power
> saving features?
>
> With Thanks
> Kutty S Banerjee
>
>
>
>

Only the power policy owner for the device is allowed to send itself
power irps. You cannot send power irps to a stack anytime you want.
You can easily put the device into an unexpected state, especially if
the device is power managing itself and idling out and going to into a
lower power state while the machine is running.

Let me reiterate, don’t do this.

If you need the device in full power, do something specific with the
device’s exported interface to bring it into full power. That may be
opening the device, sending it an IOCTL, something else. This type of
action that makes sure the device is in full is specific to each device.

If the device does power itself off while the machine is running, it
usually registers the WMI guid GUID_POWER_DEVICE_ENABLE. You can write
a user mode app or kernel mode driver to query for all instances of this
GUID and turn it off (the input buffer is a BOOLEAN)

The power managed in the OS itself will not stop you from doing this.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 2:14 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

May I reframe my question as follows. I figure that I/O Devices drivers
(WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
mode
driver sent this to “A Device” asking it to be in D0 State? Or will the
Power Manager tamper with my request? Can the device deny my request?

Thanks
Kutty
“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> Hi,
> Is there a technique to control (by control panel, code in user mode
or
> kernel mode) the device states of individual i/o devices?
> Namely, can i force all devices to run at max power consumption state?
> Likewise, can i force the cpu to run at max frequency overriding the
power
> saving features?
>
> With Thanks
> Kutty S Banerjee
>
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi,

“If you need the device in full power, do something specific with the
device’s exported interface to bring it into full power. That may be
opening the device, sending it an IOCTL, something else. This type of
action that makes sure the device is in full is specific to each device.”

I am trying to ensure the following 3 devices from the mentioned
classes are in state D0.
<1>Storage Device Class -> Hard Disk
<2>Display Device Class -> Display and Controller
<3>Network Device Class
Can you please point me to link, manual that refers IOCTL or IRPs
sent to these devices which ensure that the device is in state D0.

K

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 2:14 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

May I reframe my question as follows. I figure that I/O Devices drivers
(WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
mode
driver sent this to “A Device” asking it to be in D0 State? Or will the
Power Manager tamper with my request? Can the device deny my request?

Thanks
Kutty
“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> Hi,
> Is there a technique to control (by control panel, code in user mode
or
> kernel mode) the device states of individual i/o devices?
> Namely, can i force all devices to run at max power consumption state?
> Likewise, can i force the cpu to run at max frequency overriding the
power
> saving features?
>
> With Thanks
> Kutty S Banerjee
>
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Let’s see, these are pure guesses:

HD: cause disk traffic (Read, write). Specify no buffering to make
sure it goes to disk

Display: PoSetSystemState (ES_USER_PRESENT) (there is also a user mode
API for this). This will reset all power related times in the OS

Network: send network traffic

I know network allows you to turn off idle management while the system
is runnig via the WMI guid

D

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 3:40 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

Hi,

“If you need the device in full power, do something specific with the
device’s exported interface to bring it into full power. That may be
opening the device, sending it an IOCTL, something else. This type of
action that makes sure the device is in full is specific to each
device.”

I am trying to ensure the following 3 devices from the mentioned
classes are in state D0.
<1>Storage Device Class -> Hard Disk
<2>Display Device Class -> Display and Controller
<3>Network Device Class
Can you please point me to link, manual that refers IOCTL or IRPs
sent to these devices which ensure that the device is in state D0.

K

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 2:14 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

May I reframe my question as follows. I figure that I/O Devices drivers
(WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
mode
driver sent this to “A Device” asking it to be in D0 State? Or will the
Power Manager tamper with my request? Can the device deny my request?

Thanks
Kutty
“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> Hi,
> Is there a technique to control (by control panel, code in user mode
or
> kernel mode) the device states of individual i/o devices?
> Namely, can i force all devices to run at max power consumption state?
> Likewise, can i force the cpu to run at max frequency overriding the
power
> saving features?
>
> With Thanks
> Kutty S Banerjee
>
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

User mode api for PoSetSystemState is SetThreadExecutionState

Dev

-----Original Message-----
From: Doron Holan [mailto:xxxxx@windows.microsoft.com]
Sent: Thursday, November 18, 2004 5:26 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] controlling device power states

Let’s see, these are pure guesses:

HD: cause disk traffic (Read, write). Specify no buffering to make
sure it goes to disk

Display: PoSetSystemState (ES_USER_PRESENT) (there is also a user mode
API for this). This will reset all power related times in the OS

Network: send network traffic

I know network allows you to turn off idle management while the system
is runnig via the WMI guid

D

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 3:40 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

Hi,

“If you need the device in full power, do something specific with the
device’s exported interface to bring it into full power. That may be
opening the device, sending it an IOCTL, something else. This type of
action that makes sure the device is in full is specific to each
device.”

I am trying to ensure the following 3 devices from the mentioned
classes are in state D0.
<1>Storage Device Class -> Hard Disk
<2>Display Device Class -> Display and Controller
<3>Network Device Class
Can you please point me to link, manual that refers IOCTL or IRPs
sent to these devices which ensure that the device is in state D0.

K

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 2:14 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

May I reframe my question as follows. I figure that I/O Devices drivers
(WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
mode
driver sent this to “A Device” asking it to be in D0 State? Or will the
Power Manager tamper with my request? Can the device deny my request?

Thanks
Kutty
“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> Hi,
> Is there a technique to control (by control panel, code in user mode
or
> kernel mode) the device states of individual i/o devices?
> Namely, can i force all devices to run at max power consumption state?
> Likewise, can i force the cpu to run at max frequency overriding the
power
> saving features?
>
> With Thanks
> Kutty S Banerjee
>
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

No you cannot, because you cannot be synchronized with existing power
policy owner.

And why ever do such things? The task looks very strange.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Kutty Banerjee”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Thursday, November 18, 2004 1:14 AM
Subject: Re:[ntdev] controlling device power states

> May I reframe my question as follows. I figure that I/O Devices drivers
> (WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel mode
> driver sent this to “A Device” asking it to be in D0 State? Or will the
> Power Manager tamper with my request? Can the device deny my request?
>
> Thanks
> Kutty
> “Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> > Hi,
> > Is there a technique to control (by control panel, code in user mode or
> > kernel mode) the device states of individual i/o devices?
> > Namely, can i force all devices to run at max power consumption state?
> > Likewise, can i force the cpu to run at max frequency overriding the power
> > saving features?
> >
> > With Thanks
> > Kutty S Banerjee
> >
> >
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

>Display: PoSetSystemState (ES_USER_PRESENT) (there is also a user mode

API for this). This will reset all power related times in the OS
PoSetSystemState(ES_DISPLAY_REQUIRED): does this ensure that the display
device remains in D0 and only D0 state because i believe D1 and D2 are valid
states for
display devices? The harddisk and network cases being pretty apparent.

Also what about the cpu clock frequency? can that be forced to remain at max
frequency
irrespective of temperature for a period of time.

Thanks
Kutty S Banerjee

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 3:40 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

Hi,

“If you need the device in full power, do something specific with the
device’s exported interface to bring it into full power. That may be
opening the device, sending it an IOCTL, something else. This type of
action that makes sure the device is in full is specific to each
device.”

I am trying to ensure the following 3 devices from the mentioned
classes are in state D0.
<1>Storage Device Class -> Hard Disk
<2>Display Device Class -> Display and Controller
<3>Network Device Class
Can you please point me to link, manual that refers IOCTL or IRPs
sent to these devices which ensure that the device is in state D0.

K

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 2:14 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

May I reframe my question as follows. I figure that I/O Devices drivers
(WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
mode
driver sent this to “A Device” asking it to be in D0 State? Or will the
Power Manager tamper with my request? Can the device deny my request?

Thanks
Kutty
“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> Hi,
> Is there a technique to control (by control panel, code in user mode
or
> kernel mode) the device states of individual i/o devices?
> Namely, can i force all devices to run at max power consumption state?
> Likewise, can i force the cpu to run at max frequency overriding the
power
> saving features?
>
> With Thanks
> Kutty S Banerjee
>
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

SetActivePwrScheme will probably do what you want…before we go any
farther, why do you want to do these things? Is this for a test
application? Is this to reduce latency in your application or driver?

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 10:16 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

Display: PoSetSystemState (ES_USER_PRESENT) (there is also a user mode
API for this). This will reset all power related times in the OS
PoSetSystemState(ES_DISPLAY_REQUIRED): does this ensure that the display
device remains in D0 and only D0 state because i believe D1 and D2 are
valid
states for
display devices? The harddisk and network cases being pretty apparent.

Also what about the cpu clock frequency? can that be forced to remain at
max
frequency
irrespective of temperature for a period of time.

Thanks
Kutty S Banerjee

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 3:40 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

Hi,

“If you need the device in full power, do something specific with the
device’s exported interface to bring it into full power. That may be
opening the device, sending it an IOCTL, something else. This type of
action that makes sure the device is in full is specific to each
device.”

I am trying to ensure the following 3 devices from the mentioned
classes are in state D0.
<1>Storage Device Class -> Hard Disk
<2>Display Device Class -> Display and Controller
<3>Network Device Class
Can you please point me to link, manual that refers IOCTL or IRPs
sent to these devices which ensure that the device is in state D0.

K

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 2:14 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

May I reframe my question as follows. I figure that I/O Devices drivers
(WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
mode
driver sent this to “A Device” asking it to be in D0 State? Or will the
Power Manager tamper with my request? Can the device deny my request?

Thanks
Kutty
“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> Hi,
> Is there a technique to control (by control panel, code in user mode
or
> kernel mode) the device states of individual i/o devices?
> Namely, can i force all devices to run at max power consumption state?
> Likewise, can i force the cpu to run at max frequency overriding the
power
> saving features?
>
> With Thanks
> Kutty S Banerjee
>
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The idea is to develop a small mini framework whereby we can even attempt to
measure power consumption of i/o devices on a live windows xp system . It is
VERY IMP that the devices be in a known state since transitions between
states can cause excessive power consumption. also having a uniform cpu
frequency satisfies the power experts about our work.

kutty
“Doron Holan” wrote in message
news:xxxxx@ntdev…
SetActivePwrScheme will probably do what you want…before we go any
farther, why do you want to do these things? Is this for a test
application? Is this to reduce latency in your application or driver?

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 10:16 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

>Display: PoSetSystemState (ES_USER_PRESENT) (there is also a user mode
>API for this). This will reset all power related times in the OS
PoSetSystemState(ES_DISPLAY_REQUIRED): does this ensure that the display
device remains in D0 and only D0 state because i believe D1 and D2 are
valid
states for
display devices? The harddisk and network cases being pretty apparent.

Also what about the cpu clock frequency? can that be forced to remain at
max
frequency
irrespective of temperature for a period of time.

Thanks
Kutty S Banerjee

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 3:40 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

Hi,

>“If you need the device in full power, do something specific with the
>device’s exported interface to bring it into full power. That may be
>opening the device, sending it an IOCTL, something else. This type of
>action that makes sure the device is in full is specific to each
device.”

I am trying to ensure the following 3 devices from the mentioned
classes are in state D0.
<1>Storage Device Class -> Hard Disk
<2>Display Device Class -> Display and Controller
<3>Network Device Class
Can you please point me to link, manual that refers IOCTL or IRPs
sent to these devices which ensure that the device is in state D0.

K

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Wednesday, November 17, 2004 2:14 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] controlling device power states

May I reframe my question as follows. I figure that I/O Devices drivers
(WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
mode
driver sent this to “A Device” asking it to be in D0 State? Or will the
Power Manager tamper with my request? Can the device deny my request?

Thanks
Kutty
“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> Hi,
> Is there a technique to control (by control panel, code in user mode
or
> kernel mode) the device states of individual i/o devices?
> Namely, can i force all devices to run at max power consumption state?
> Likewise, can i force the cpu to run at max frequency overriding the
power
> saving features?
>
> With Thanks
> Kutty S Banerjee
>
>
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Disable idle detection on all device tree via WMI. Then switch to Always On
power policy - this gives you 100% of CPU.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Kutty Banerjee”
Newsgroups: ntdev
To: “Windows System Software Devs Interest List”
Sent: Thursday, November 18, 2004 11:10 AM
Subject: Re:[ntdev] controlling device power states

> The idea is to develop a small mini framework whereby we can even attempt to
> measure power consumption of i/o devices on a live windows xp system . It is
> VERY IMP that the devices be in a known state since transitions between
> states can cause excessive power consumption. also having a uniform cpu
> frequency satisfies the power experts about our work.
>
> kutty
> “Doron Holan” wrote in message
> news:xxxxx@ntdev…
> SetActivePwrScheme will probably do what you want…before we go any
> farther, why do you want to do these things? Is this for a test
> application? Is this to reduce latency in your application or driver?
>
> d
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
> Sent: Wednesday, November 17, 2004 10:16 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] controlling device power states
>
>
> >Display: PoSetSystemState (ES_USER_PRESENT) (there is also a user mode
> >API for this). This will reset all power related times in the OS
> PoSetSystemState(ES_DISPLAY_REQUIRED): does this ensure that the display
> device remains in D0 and only D0 state because i believe D1 and D2 are
> valid
> states for
> display devices? The harddisk and network cases being pretty apparent.
>
> Also what about the cpu clock frequency? can that be forced to remain at
> max
> frequency
> irrespective of temperature for a period of time.
>
> Thanks
> Kutty S Banerjee
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
> Sent: Wednesday, November 17, 2004 3:40 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] controlling device power states
>
> Hi,
>
> >“If you need the device in full power, do something specific with the
> >device’s exported interface to bring it into full power. That may be
> >opening the device, sending it an IOCTL, something else. This type of
> >action that makes sure the device is in full is specific to each
> device.”
>
> I am trying to ensure the following 3 devices from the mentioned
> classes are in state D0.
> <1>Storage Device Class -> Hard Disk
> <2>Display Device Class -> Display and Controller
> <3>Network Device Class
> Can you please point me to link, manual that refers IOCTL or IRPs
> sent to these devices which ensure that the device is in state D0.
>
> K
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
> Sent: Wednesday, November 17, 2004 2:14 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] controlling device power states
>
> May I reframe my question as follows. I figure that I/O Devices drivers
> (WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
> mode
> driver sent this to “A Device” asking it to be in D0 State? Or will the
> Power Manager tamper with my request? Can the device deny my request?
>
> Thanks
> Kutty
> “Kutty Banerjee” wrote in message news:xxxxx@ntdev…
> > Hi,
> > Is there a technique to control (by control panel, code in user mode
> or
> > kernel mode) the device states of individual i/o devices?
> > Namely, can i force all devices to run at max power consumption state?
> > Likewise, can i force the cpu to run at max frequency overriding the
> power
> > saving features?
> >
> > With Thanks
> > Kutty S Banerjee
> >
> >
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

hi maxim,
i m new to wmi, just have a brief idea about it. can you suggest a place to
get to understand it better before i can use it.

kutty
“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
> Disable idle detection on all device tree via WMI. Then switch to
> Always On
> power policy - this gives you 100% of CPU.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Kutty Banerjee”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Thursday, November 18, 2004 11:10 AM
> Subject: Re:[ntdev] controlling device power states
>
>
>> The idea is to develop a small mini framework whereby we can even attempt
>> to
>> measure power consumption of i/o devices on a live windows xp system . It
>> is
>> VERY IMP that the devices be in a known state since transitions between
>> states can cause excessive power consumption. also having a uniform cpu
>> frequency satisfies the power experts about our work.
>>
>> kutty
>> “Doron Holan” wrote in message
>> news:xxxxx@ntdev…
>> SetActivePwrScheme will probably do what you want…before we go any
>> farther, why do you want to do these things? Is this for a test
>> application? Is this to reduce latency in your application or driver?
>>
>> d
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
>> Sent: Wednesday, November 17, 2004 10:16 PM
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] controlling device power states
>>
>>
>> >Display: PoSetSystemState (ES_USER_PRESENT) (there is also a user mode
>> >API for this). This will reset all power related times in the OS
>> PoSetSystemState(ES_DISPLAY_REQUIRED): does this ensure that the display
>> device remains in D0 and only D0 state because i believe D1 and D2 are
>> valid
>> states for
>> display devices? The harddisk and network cases being pretty apparent.
>>
>> Also what about the cpu clock frequency? can that be forced to remain at
>> max
>> frequency
>> irrespective of temperature for a period of time.
>>
>> Thanks
>> Kutty S Banerjee
>>
>>
>>
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
>> Sent: Wednesday, November 17, 2004 3:40 PM
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] controlling device power states
>>
>> Hi,
>>
>> >“If you need the device in full power, do something specific with the
>> >device’s exported interface to bring it into full power. That may be
>> >opening the device, sending it an IOCTL, something else. This type of
>> >action that makes sure the device is in full is specific to each
>> device.”
>>
>> I am trying to ensure the following 3 devices from the mentioned
>> classes are in state D0.
>> <1>Storage Device Class -> Hard Disk
>> <2>Display Device Class -> Display and Controller
>> <3>Network Device Class
>> Can you please point me to link, manual that refers IOCTL or IRPs
>> sent to these devices which ensure that the device is in state D0.
>>
>> K
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
>> Sent: Wednesday, November 17, 2004 2:14 PM
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] controlling device power states
>>
>> May I reframe my question as follows. I figure that I/O Devices drivers
>> (WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
>> mode
>> driver sent this to “A Device” asking it to be in D0 State? Or will the
>> Power Manager tamper with my request? Can the device deny my request?
>>
>> Thanks
>> Kutty
>> “Kutty Banerjee” wrote in message news:xxxxx@ntdev…
>> > Hi,
>> > Is there a technique to control (by control panel, code in user mode
>> or
>> > kernel mode) the device states of individual i/o devices?
>> > Namely, can i force all devices to run at max power consumption state?
>> > Likewise, can i force the cpu to run at max frequency overriding the
>> power
>> > saving features?
>> >
>> > With Thanks
>> > Kutty S Banerjee
>> >
>> >
>> >
>> >
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

Look up WBEM in MSDN for user mode interfaces (it is all COM). if you
want to this in kernel mode, IoWMIOpenBlock, IoWMIQueryAllData,
IoWMISetSingleInstance. Kernel mode interfaces are available on XP and
later

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
Sent: Thursday, November 18, 2004 9:17 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Re:controlling device power states

hi maxim,
i m new to wmi, just have a brief idea about it. can you suggest a
place to
get to understand it better before i can use it.

kutty
“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
> Disable idle detection on all device tree via WMI. Then switch to
> Always On
> power policy - this gives you 100% of CPU.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Kutty Banerjee”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Thursday, November 18, 2004 11:10 AM
> Subject: Re:[ntdev] controlling device power states
>
>
>> The idea is to develop a small mini framework whereby we can even
attempt
>> to
>> measure power consumption of i/o devices on a live windows xp system
. It
>> is
>> VERY IMP that the devices be in a known state since transitions
between
>> states can cause excessive power consumption. also having a uniform
cpu
>> frequency satisfies the power experts about our work.
>>
>> kutty
>> “Doron Holan” wrote in message
>> news:xxxxx@ntdev…
>> SetActivePwrScheme will probably do what you want…before we go any
>> farther, why do you want to do these things? Is this for a test
>> application? Is this to reduce latency in your application or driver?
>>
>> d
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
>> Sent: Wednesday, November 17, 2004 10:16 PM
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] controlling device power states
>>
>>
>> >Display: PoSetSystemState (ES_USER_PRESENT) (there is also a user
mode
>> >API for this). This will reset all power related times in the OS
>> PoSetSystemState(ES_DISPLAY_REQUIRED): does this ensure that the
display
>> device remains in D0 and only D0 state because i believe D1 and D2
are
>> valid
>> states for
>> display devices? The harddisk and network cases being pretty
apparent.
>>
>> Also what about the cpu clock frequency? can that be forced to remain
at
>> max
>> frequency
>> irrespective of temperature for a period of time.
>>
>> Thanks
>> Kutty S Banerjee
>>
>>
>>
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
>> Sent: Wednesday, November 17, 2004 3:40 PM
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] controlling device power states
>>
>> Hi,
>>
>> >“If you need the device in full power, do something specific with
the
>> >device’s exported interface to bring it into full power. That may
be
>> >opening the device, sending it an IOCTL, something else. This type
of
>> >action that makes sure the device is in full is specific to each
>> device.”
>>
>> I am trying to ensure the following 3 devices from the mentioned
>> classes are in state D0.
>> <1>Storage Device Class -> Hard Disk
>> <2>Display Device Class -> Display and Controller
>> <3>Network Device Class
>> Can you please point me to link, manual that refers IOCTL or IRPs
>> sent to these devices which ensure that the device is in state D0.
>>
>> K
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
>> Sent: Wednesday, November 17, 2004 2:14 PM
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] controlling device power states
>>
>> May I reframe my question as follows. I figure that I/O Devices
drivers
>> (WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a
kernel
>> mode
>> driver sent this to “A Device” asking it to be in D0 State? Or will
the
>> Power Manager tamper with my request? Can the device deny my request?
>>
>> Thanks
>> Kutty
>> “Kutty Banerjee” wrote in message
news:xxxxx@ntdev…
>> > Hi,
>> > Is there a technique to control (by control panel, code in user
mode
>> or
>> > kernel mode) the device states of individual i/o devices?
>> > Namely, can i force all devices to run at max power consumption
state?
>> > Likewise, can i force the cpu to run at max frequency overriding
the
>> power
>> > saving features?
>> >
>> > With Thanks
>> > Kutty S Banerjee
>> >
>> >
>> >
>> >
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as:
xxxxx@windows.microsoft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as:
xxxxx@windows.microsoft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as:
xxxxx@windows.microsoft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

As Doron said earlier, you can set CPU policy using powercfg.dll. If you
force the CPU to a particularly frequency and it heat up, though, the
machine will shut itself off to avoid thermal damage.


Jake Oshins
Windows Kernel Group

This posting is provided “AS IS” with no warranties, and confers no rights.

“Kutty Banerjee” wrote in message news:xxxxx@ntdev…
>
>>Display: PoSetSystemState (ES_USER_PRESENT) (there is also a user mode
>>API for this). This will reset all power related times in the OS
> PoSetSystemState(ES_DISPLAY_REQUIRED): does this ensure that the display
> device remains in D0 and only D0 state because i believe D1 and D2 are
> valid states for
> display devices? The harddisk and network cases being pretty apparent.
>
> Also what about the cpu clock frequency? can that be forced to remain at
> max frequency
> irrespective of temperature for a period of time.
>
> Thanks
> Kutty S Banerjee
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
> Sent: Wednesday, November 17, 2004 3:40 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] controlling device power states
>
> Hi,
>
>>“If you need the device in full power, do something specific with the
>>device’s exported interface to bring it into full power. That may be
>>opening the device, sending it an IOCTL, something else. This type of
>>action that makes sure the device is in full is specific to each
> device.”
>
> I am trying to ensure the following 3 devices from the mentioned
> classes are in state D0.
> <1>Storage Device Class -> Hard Disk
> <2>Display Device Class -> Display and Controller
> <3>Network Device Class
> Can you please point me to link, manual that refers IOCTL or IRPs
> sent to these devices which ensure that the device is in state D0.
>
> K
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
> Sent: Wednesday, November 17, 2004 2:14 PM
> To: Windows System Software Devs Interest List
> Subject: Re:[ntdev] controlling device power states
>
> May I reframe my question as follows. I figure that I/O Devices drivers
> (WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
> mode
> driver sent this to “A Device” asking it to be in D0 State? Or will the
> Power Manager tamper with my request? Can the device deny my request?
>
> Thanks
> Kutty
> “Kutty Banerjee” wrote in message news:xxxxx@ntdev…
>> Hi,
>> Is there a technique to control (by control panel, code in user mode
> or
>> kernel mode) the device states of individual i/o devices?
>> Namely, can i force all devices to run at max power consumption state?
>> Likewise, can i force the cpu to run at max frequency overriding the
> power
>> saving features?
>>
>> With Thanks
>> Kutty S Banerjee
>>
>>
>>
>>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>

Switching to Always On will keep the CPU at maximum frequency unless the
machine gets too hot. Then it will drop, if it can. If it can’t, and the
machine is too hot, the machine will shut down.


Jake Oshins
Windows Kernel Group

This posting is provided “AS IS” with no warranties, and confers no rights.

“Maxim S. Shatskih” wrote in message
news:xxxxx@ntdev…
> Disable idle detection on all device tree via WMI. Then switch to
> Always On
> power policy - this gives you 100% of CPU.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “Kutty Banerjee”
> Newsgroups: ntdev
> To: “Windows System Software Devs Interest List”
> Sent: Thursday, November 18, 2004 11:10 AM
> Subject: Re:[ntdev] controlling device power states
>
>
>> The idea is to develop a small mini framework whereby we can even attempt
>> to
>> measure power consumption of i/o devices on a live windows xp system . It
>> is
>> VERY IMP that the devices be in a known state since transitions between
>> states can cause excessive power consumption. also having a uniform cpu
>> frequency satisfies the power experts about our work.
>>
>> kutty
>> “Doron Holan” wrote in message
>> news:xxxxx@ntdev…
>> SetActivePwrScheme will probably do what you want…before we go any
>> farther, why do you want to do these things? Is this for a test
>> application? Is this to reduce latency in your application or driver?
>>
>> d
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
>> Sent: Wednesday, November 17, 2004 10:16 PM
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] controlling device power states
>>
>>
>> >Display: PoSetSystemState (ES_USER_PRESENT) (there is also a user mode
>> >API for this). This will reset all power related times in the OS
>> PoSetSystemState(ES_DISPLAY_REQUIRED): does this ensure that the display
>> device remains in D0 and only D0 state because i believe D1 and D2 are
>> valid
>> states for
>> display devices? The harddisk and network cases being pretty apparent.
>>
>> Also what about the cpu clock frequency? can that be forced to remain at
>> max
>> frequency
>> irrespective of temperature for a period of time.
>>
>> Thanks
>> Kutty S Banerjee
>>
>>
>>
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
>> Sent: Wednesday, November 17, 2004 3:40 PM
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] controlling device power states
>>
>> Hi,
>>
>> >“If you need the device in full power, do something specific with the
>> >device’s exported interface to bring it into full power. That may be
>> >opening the device, sending it an IOCTL, something else. This type of
>> >action that makes sure the device is in full is specific to each
>> device.”
>>
>> I am trying to ensure the following 3 devices from the mentioned
>> classes are in state D0.
>> <1>Storage Device Class -> Hard Disk
>> <2>Display Device Class -> Display and Controller
>> <3>Network Device Class
>> Can you please point me to link, manual that refers IOCTL or IRPs
>> sent to these devices which ensure that the device is in state D0.
>>
>> K
>>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Kutty Banerjee
>> Sent: Wednesday, November 17, 2004 2:14 PM
>> To: Windows System Software Devs Interest List
>> Subject: Re:[ntdev] controlling device power states
>>
>> May I reframe my question as follows. I figure that I/O Devices drivers
>> (WDM) can be sent IRP_MJ_POWER with IRP_MN_SET_POWER. Can I as a kernel
>> mode
>> driver sent this to “A Device” asking it to be in D0 State? Or will the
>> Power Manager tamper with my request? Can the device deny my request?
>>
>> Thanks
>> Kutty
>> “Kutty Banerjee” wrote in message news:xxxxx@ntdev…
>> > Hi,
>> > Is there a technique to control (by control panel, code in user mode
>> or
>> > kernel mode) the device states of individual i/o devices?
>> > Namely, can i force all devices to run at max power consumption state?
>> > Likewise, can i force the cpu to run at max frequency overriding the
>> power
>> > saving features?
>> >
>> > With Thanks
>> > Kutty S Banerjee
>> >
>> >
>> >
>> >
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>