hi


i want to know in my application whenever the monitor goes to power off
or power on state

because of the expiration of inactivity in the monitor due to the
following setting:

Display Properties -> Screen Saver -> Power -> Power Schemes Tab ->
Turn Off Monitor

Currently i am doing it the hard way , i.e. adding escape codes in my
display driver that

in turn talk to the video miniport driver through IoControl . first my
user mode app

creates an event and sends event to the miniport this way. whenever
miniport driver gets

power change status from vidoeport.sys it sets the user mode event at
whicch the app would

query its value thru another escape code in a similar way.

Given the complicated method of getting a simple piece of information ,
i am forced to

think there might be an easier way of doing the same , some API or any
other simpler method
is there any?

thanks in advance
Taha

Re: how to detect "turn off monitor" activation? by Calvin

Calvin
Sat Jan 15 09:51:59 CST 2005

If my memory was not totally screwed up, there is some sort of system power
broadcast your UM app can listen to. I can check on Monday.

I'm just curious, what video driver you are working on? Of course you don't
have to answer if you don't like.

--
Calvin Guan Software Engineer/Radeon NT Drivers
ATI Technologies Inc. Markham ON, Canada www.ati.com
No matter how many fish in the sea it'd be so empty without me -
Eminem


"M Taha Masood" <m.tahamasood@gmail.com> wrote in message
news:1105736694.916501.142210@f14g2000cwb.googlegroups.com...
> hi
>
>
> i want to know in my application whenever the monitor goes to power off
> or power on state
>
> because of the expiration of inactivity in the monitor due to the
> following setting:
>
> Display Properties -> Screen Saver -> Power -> Power Schemes Tab ->
> Turn Off Monitor
>
> Currently i am doing it the hard way , i.e. adding escape codes in my
> display driver that
>
> in turn talk to the video miniport driver through IoControl . first my
> user mode app
>
> creates an event and sends event to the miniport this way. whenever
> miniport driver gets
>
> power change status from vidoeport.sys it sets the user mode event at
> whicch the app would
>
> query its value thru another escape code in a similar way.
>
> Given the complicated method of getting a simple piece of information ,
> i am forced to
>
> think there might be an easier way of doing the same , some API or any
> other simpler method
> is there any?
>
> thanks in advance
> Taha
>



Re: how to detect "turn off monitor" activation? by M

M
Sun Jan 16 01:04:45 CST 2005

Calvin Guan wrote:
> If my memory was not totally screwed up, there is some sort of system
power
> broadcast your UM app can listen to. I can check on Monday.
>
> I'm just curious, what video driver you are working on? Of course you
don't
> have to answer if you don't like.
>
> --
> Calvin Guan Software Engineer/Radeon NT Drivers
> ATI Technologies Inc. Markham ON, Canada www.ati.com
> No matter how many fish in the sea it'd be so empty without me -
> Eminem
>
>
> "M Taha Masood" <m.tahamasood@gmail.com> wrote in message
> news:1105736694.916501.142210@f14g2000cwb.googlegroups.com...
> > hi
> >
> >
> > i want to know in my application whenever the monitor goes to power
off
> > or power on state
> >
> > because of the expiration of inactivity in the monitor due to the
> > following setting:
> >
> > Display Properties -> Screen Saver -> Power -> Power Schemes Tab ->
> > Turn Off Monitor
> >
> > Currently i am doing it the hard way , i.e. adding escape codes in
my
> > display driver that
> >
> > in turn talk to the video miniport driver through IoControl . first
my
> > user mode app
> >
> > creates an event and sends event to the miniport this way. whenever
> > miniport driver gets
> >
> > power change status from vidoeport.sys it sets the user mode event
at
> > whicch the app would
> >
> > query its value thru another escape code in a similar way.
> >
> > Given the complicated method of getting a simple piece of
information ,
> > i am forced to
> >
> > think there might be an easier way of doing the same , some API or
any
> > other simpler method
> > is there any?
> >
> > thanks in advance
> > Taha
> >


Re: how to detect "turn off monitor" activation? by M

M
Sun Jan 16 01:06:26 CST 2005

Hi
there is a WM_POWERBROADCAST message
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/power/base/wm_powerbroadcast.asp
but that does not seem to provide me the info i need. Note that i want
to be notified of "turn off monitor" activation which is different from
system standby stuff. please let me know if you know of any other
method

I am working on a proprietary video driver of our company

thanks
Taha




Calvin Guan wrote:
> If my memory was not totally screwed up, there is some sort of system
power
> broadcast your UM app can listen to. I can check on Monday.
>
> I'm just curious, what video driver you are working on? Of course you
don't
> have to answer if you don't like.
>
> --
> Calvin Guan Software Engineer/Radeon NT Drivers
> ATI Technologies Inc. Markham ON, Canada www.ati.com
> No matter how many fish in the sea it'd be so empty without me -
> Eminem
>
>
> "M Taha Masood" <m.tahamasood@gmail.com> wrote in message
> news:1105736694.916501.142210@f14g2000cwb.googlegroups.com...
> > hi
> >
> >
> > i want to know in my application whenever the monitor goes to power
off
> > or power on state
> >
> > because of the expiration of inactivity in the monitor due to the
> > following setting:
> >
> > Display Properties -> Screen Saver -> Power -> Power Schemes Tab ->
> > Turn Off Monitor
> >
> > Currently i am doing it the hard way , i.e. adding escape codes in
my
> > display driver that
> >
> > in turn talk to the video miniport driver through IoControl . first
my
> > user mode app
> >
> > creates an event and sends event to the miniport this way. whenever
> > miniport driver gets
> >
> > power change status from vidoeport.sys it sets the user mode event
at
> > whicch the app would
> >
> > query its value thru another escape code in a similar way.
> >
> > Given the complicated method of getting a simple piece of
information ,
> > i am forced to
> >
> > think there might be an easier way of doing the same , some API or
any
> > other simpler method
> > is there any?
> >
> > thanks in advance
> > Taha
> >


RE: how to detect "turn off monitor" activation? by Diderot

Diderot
Mon Jan 17 06:05:04 CST 2005

Win32_VideoController can help you?

"M Taha Masood" wrote:

> hi
>
>
> i want to know in my application whenever the monitor goes to power off
> or power on state
>
> because of the expiration of inactivity in the monitor due to the
> following setting:
>
> Display Properties -> Screen Saver -> Power -> Power Schemes Tab ->
> Turn Off Monitor
>
> Currently i am doing it the hard way , i.e. adding escape codes in my
> display driver that
>
> in turn talk to the video miniport driver through IoControl . first my
> user mode app
>
> creates an event and sends event to the miniport this way. whenever
> miniport driver gets
>
> power change status from vidoeport.sys it sets the user mode event at
> whicch the app would
>
> query its value thru another escape code in a similar way.
>
> Given the complicated method of getting a simple piece of information ,
> i am forced to
>
> think there might be an easier way of doing the same , some API or any
> other simpler method
> is there any?
>
> thanks in advance
> Taha
>
>

Re: how to detect "turn off monitor" activation? by M

M
Tue Jan 18 11:51:31 CST 2005

maybe i can get the power state thru this but how about notification ?
i also want to be auto notified when the power state changes , instead
of polling it thru this WMI class
any other ideas?

Diderot wrote:
> Win32_VideoController can help you?
>
> "M Taha Masood" wrote:
>
> > hi
> >
> >
> > i want to know in my application whenever the monitor goes to power
off
> > or power on state
> >
> > because of the expiration of inactivity in the monitor due to the
> > following setting:
> >
> > Display Properties -> Screen Saver -> Power -> Power Schemes Tab ->
> > Turn Off Monitor
> >
> > Currently i am doing it the hard way , i.e. adding escape codes in
my
> > display driver that
> >
> > in turn talk to the video miniport driver through IoControl . first
my
> > user mode app
> >
> > creates an event and sends event to the miniport this way. whenever
> > miniport driver gets
> >
> > power change status from vidoeport.sys it sets the user mode event
at
> > whicch the app would
> >
> > query its value thru another escape code in a similar way.
> >
> > Given the complicated method of getting a simple piece of
information ,
> > i am forced to
> >
> > think there might be an easier way of doing the same , some API or
any
> > other simpler method
> > is there any?
> >
> > thanks in advance
> > Taha
> >
> >


Re: how to detect "turn off monitor" activation? by M

M
Wed Jan 26 12:19:59 CST 2005

any other ideas on how ot achieve this in a simpler way ? is there any
other newsgroup that will be more appropriate for this info?

M Taha Masood wrote:
> maybe i can get the power state thru this but how about notification
?
> i also want to be auto notified when the power state changes ,
instead
> of polling it thru this WMI class
> any other ideas?
>
> Diderot wrote:
> > Win32_VideoController can help you?
> >
> > "M Taha Masood" wrote:
> >
> > > hi
> > >
> > >
> > > i want to know in my application whenever the monitor goes to
power
> off
> > > or power on state
> > >
> > > because of the expiration of inactivity in the monitor due to the
> > > following setting:
> > >
> > > Display Properties -> Screen Saver -> Power -> Power Schemes Tab
->
> > > Turn Off Monitor
> > >
> > > Currently i am doing it the hard way , i.e. adding escape codes
in
> my
> > > display driver that
> > >
> > > in turn talk to the video miniport driver through IoControl .
first
> my
> > > user mode app
> > >
> > > creates an event and sends event to the miniport this way.
whenever
> > > miniport driver gets
> > >
> > > power change status from vidoeport.sys it sets the user mode
event
> at
> > > whicch the app would
> > >
> > > query its value thru another escape code in a similar way.
> > >
> > > Given the complicated method of getting a simple piece of
> information ,
> > > i am forced to
> > >
> > > think there might be an easier way of doing the same , some API
or
> any
> > > other simpler method
> > > is there any?
> > >
> > > thanks in advance
> > > Taha
> > >
> > >


Re: how to detect "turn off monitor" activation? by M

M
Wed Jan 26 12:21:34 CST 2005

is there any other simpler way to achieve this?