Jump to content

How to Know If the Screen(Monitor) is On or Off?


Zohar
 Share

Recommended Posts

Though i am aware this is not what you asked for, but i thought i would post it anyways.

I know somewhere in the help-file is code that turns off your screen.

So you could hotkey this to a button, and then store the state has a varaible.

Screens = On

Hit-Hotkey

Code that turns screens off

Screen = Off

Edited by IanN1990
Link to comment
Share on other sites

Hi Ian

Thank you..

You know the saying

"The best way to predict the future, is to create it"?

So this is what you did here..

We can know the Screen's Power State programatically, If we changed it programatically ourselves..

It is indeed nice..

Yet I hope to achieve getting the status from the screen itself,

so I will be able to know even when the screen's power state was changed via the power button, and not only programatically..

Edited by Zohar
Link to comment
Share on other sites

Well

Instead of trying existing code of other people,

I think I want to try to create mine..

Let's check the sniffing way.

Is there a way to sniff the Control Data that is sent to the Screen?

(not the data that is displayed on the screen, but the stuff that tell it GetBrightness, ChangeBrightness, etc)

The screen should have some IO Port assigned to it, in Windows.

So If I can sniff it, I can then try to send it myself, and see what I'm getting..

Link to comment
Share on other sites

  • 2 weeks later...

May I ask what the importance of such a thing is anyway?

The last time I was confronted with this task was when a government official was trying to write a virus which would only be active when the screen of the infected computer showed "power off" status ... nothing worth supporting, IMHO.
Link to comment
Share on other sites

The last time I was confronted with this task was when a government official was trying to write a virus which would only be active when the screen of the infected computer showed "power off" status ... nothing worth supporting, IMHO.

Pretty lame virus, IMHO.

A virus can do its work without necessarily displaying anything to the screen.

So anyone wanting to write a virus, does not really need to wait for the screen to be Off.

In any case, that's not my aim, I hope you understand.

Link to comment
Share on other sites

Not that i can add a lot to this discussion but..

Does a monitor still accept input from a graphics card if its switched off, can you check the graphics card for things going on and try and differentiate between the states?

Work from the other end so to speak

Edited by Chimaera
Link to comment
Share on other sites

The video card output "brightness" and you display "brightness" are only connected by the perception of the product result. What you want to do is not possible at the moment. I don't like saying things are impossible, so maybe a better way of saying it is, unless you work with a consortium in the development of hardware standards and can convince the industry to enable a feature which presently does not exist, you will not have success. And since it doesn't exist yet, and it wouldn't be terribly difficult relative to the things they accomplished, there may be a good reason for it.

Edited by DicatoroftheUSA
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...