Click here to Skip to main content
15,888,210 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi guys,
I need to have access my home PC from office and I would like to turn off its monitor permanently via code from distance. So I used below address to turn off monitor:
Turn on/off monitor[^]

But monitor turns back on with any activity of PC like moving mouse or hitting a key.
I don't want it turns back on!!!
How can I do that?

Any help please????

(BTW, Teamviewer has a feature that can turn off monitor permanently. So I believe that it is possible to write a code like that.)

What I have tried:

I tried the code in this address:
Turn on/off monitor[^]
Posted
Updated 8-Jul-16 12:58pm
v4
Comments
Sergey Alexandrovich Kryukov 22-Jun-16 18:51pm    
Does the technique described in the article you reference do the trick?
—SA
Sh.H. 22-Jun-16 19:24pm    
Yes...
But there is nothing about turn off permanently.
Even if you know any other technique, please share, if you don't mind.
Sergey Alexandrovich Kryukov 22-Jun-16 19:26pm    
Thank you for answering.
Sorry, if I knew the solution I would certainly answer. Just want to know what's going on...
—SA
Patrice T 23-Jun-16 2:01am    
Why not just switch off the monitor when you are not in front.
Sh.H. 23-Jun-16 6:43am    
Because if I switch off, then anyone (like children) can switch it on again. But if I can turn off via a code, then there is no way to turn it on by others.

Most monitors don't support being turned off completely by this command. Doing so normally just puts the monitor to sleep, not power it off. There is no way for you to get around this behavior and no documentation that I know of to tell you which monitors support this and which don't.
 
Share this answer
 
Comments
Sh.H. 22-Jun-16 19:26pm    
Ok... do you have any idea to put monitor in sleep permanently?
Dave Kreskowiak 22-Jun-16 23:58pm    
Apply your finger to the power button?

Seriously, what part of "Most monitors don't support this" do you not get?
Sh.H. 23-Jun-16 6:45am    
Because if I switch off the button, then anyone (like children) can switch it on again. But if I can turn off via a code, then there is no way to turn it on by others.
.
.
.
And ok, please help me with the code, and let me see if my monitor support it or not!
Dave Kreskowiak 23-Jun-16 14:34pm    
There is no way to can turn off the monitor to the point where it will no longer respond to the power button.
Dave Kreskowiak 23-Jun-16 14:37pm    
There's a few articles on the site about this. Like "Complete Guide on How To Turn A Monitor On/Off/Standby[^]".
Why instead of turning your monitor permanently off just disable the mouse and keyboard then put the monitor at sleep then if the keyboard or mouse move the screen won't power on but don't forget to include in your app a function to enable those our you my friend will have a serious problem.
Good luck
 
Share this answer
 
Quote:
Teamviewer has a feature that can turn off monitor permanently. So I believe that it is possible to write a code like that.

No they do not turn off the monitor, they hide the display and hijack the hooks related to display. Not the same thing.

They have their own screen saver which eat the monitor wakeup events contrary to usual screen savers. Reason old monitors can not be turned off.
Be sure they hijack all necessary system hooks.
This kind of stuff is far beyond normal programmer knowledge, it is a specialist job which means deep knowledge about Windows internals.

your first step would be to write your own screen saver from scratch (without library that hide all difficulties).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900