DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Last post Author Topic: idea: Application to turn off a laptop's display.  (Read 40,050 times)

Ehtyar

  • That News Guy
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • Plugin Coding Medal
    • Gathering Badge
Re: idea: Application to turn off a laptop's display.
« Reply #25 on: January 19, 2008, 04:34 AM »
I imagine ring0 is the only place we're going to get any glory here. If i have some extra spare time in the next few days I'll do some poking around, but I'm no driver guru, so if anyone has any hits I'd appreciate them.

Ehtyar.

[edit]
Found some interesting info here at OSROnline (surprise surprise). It would seem you can send an IOCTL to your monitor to get it to turn off, and windows will not interfere. Of course for the average user this may be a problem if the application were to crash or whatever, but in this case i believe it would be the perfect solution. Unfortunately i am not even close to the level of experience required for something like this so perhaps someone else *prods f0dder?* is up to the task.
[/edit]

Ehtyar.
« Last Edit: January 19, 2008, 05:44 AM by Ehtyar »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: idea: Application to turn off a laptop's display.
« Reply #26 on: January 19, 2008, 12:13 PM »
just saw this & remembered that utilities like Nirsoft's NirCmd and Wizmo from Grc.com have commands for switching off monitors. Another simple tool is MonOff.. all three might be worth a try.

regarding the subsequent key-strokes activating the monitor, Wizmo seems to have the answer. note the following..

Quote
Wizmo - monoff  —  turns off all monitors

Any system monitors that support Windows advanced power management (APM) will be immediately powered down until they are awakened by the keyboard or mouse movement. Since this is a Wizmo hosted mode, the mouse sensitivity "shake=" command can precede the "monoff" command to set or disable subsequent mouse movement unblanking. Other Wizmo commands to change system settings may be placed before and after the "monoff" command to alter the system's operation while the monitors are powered down.

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,888
    • Participated in NANY Challenge Six Times
    • Coding Snacks
    • Gathering Badge
    • Cody Award
    • Volunteers/Staff
Re: idea: Application to turn off a laptop's display.
« Reply #27 on: January 20, 2008, 04:51 AM »
Found some interesting info here at OSROnline (surprise surprise). It would seem you can send an IOCTL to your monitor to get it to turn off, and windows will not interfere. Of course for the average user this may be a problem if the application were to crash or whatever, but in this case i believe it would be the perfect solution. Unfortunately i am not even close to the level of experience required for something like this so perhaps someone else *prods f0dder?* is up to the task.

I found similar info on MSDN late last night.

If his display supports a brightness level of 0, it could probably be done.

There are 3 different related IOCTL's for this to find out what is supported, what the current settings for both AC & DC are, and to change them.

Just like you, this isn't something I feel comfortable messing around with, and I really have no way to test anything I could possibly make, any way. I don't have a laptop and my LCD monitor most likely doesn't support DC power levels.

scancode

  • I will eat Cody someday.
  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
    • Cody Award
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Furry Fandom Badge - Furry Fandom
    • DJ Badge - DJ
Re: idea: Application to turn off a laptop's display.
« Reply #28 on: February 18, 2008, 12:29 AM »
http://soerennielsen.dk/mod/VGAdummy/index_en.php
^^ build that cute little adapter, and tell the laptop to use an external monitor only using the hotkey
Worked like a charm on my laptop, and no more weird businesscard tricks ;)

AmericanoInPhils

  • Participant
  • Joined in 2010
  • *
  • Posts: 8
Re: idea: Application to turn off a laptop's display.
« Reply #29 on: April 24, 2010, 02:47 AM »
are you still looking for a solution musicman?

I have a post in Developers Corner: OCX or API call to control notebook LCD brightness

I am close to my solution and was alerted to your post. I need to ask you what is an obvious question to me. Why would you ever want to turn the display back on? I ask this because you can solve your problem easily by:

1. Disconnecting the graphics/monitor plug on a PC
2. Disconnecting the florescent tube plug on an LCD/notebook (internal)

If those two solutions are not fitting your needs then maybe another simple method that I wrote a few years ago will. I wrote it due to ummmmmmmm "prying eyes". The application is rapid acting since it sits silently in wait for you to press a "hotkey". Once you do this it opens full screen and covers the entire screen with total blackness. To get your screen back you need to enter a password of you choosing.

It doesnt actually turn the screen off but its a fast screen cover and nobody can override it without shutting the computer down. No I am not selling it .... just wrote it for myself and its too simple to make money off of! LOL

Original address: https://www.donationcoder.com/forum/index.php?topic=11867.0