Re: monitor turned off

new topic     » goto parent     » topic index » view thread      » older message » newer message

tone.skoda at gmx.net wrote:

> Can I find out, with code, if monitor was turned off?
> Or can I turn off monitor with code?

Not without specific hardware. The cable connecting a computer to a monitor
is (usually) one-way.

As for turning a monitor off, most CRT monitors have a physical on/off
switch due to the large voltages generated inside them. It would be totally
impossible to flip such a switch using software alone.

You might have better luck if you can find a way to send the monitor into
standby mode (if it has one) instead - to do that you would need to
interface with the graphics and monitor drivers and send the right calls.

Most operating systems detect whether the screen is on or off by asking the
user:
"Can you see this message?". If the answer is yes, chances are the screen is
on.

Of course, you could go 'mad scientist' and build a hardware/software
interface with power switching relays and stuff. ;)

--
[ Carl R White == aka () = The Domain of Cyrek = ]
[ Cyrek the Illogical /\ www.cyreksoft.yorks.com ]

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu