topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 5:02 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Ehtyar

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,237
    • View Profile
    • Donate to Member
Re: idea: Application to turn off a laptop's display.
« Reply #25 on: January 18, 2008, 10:34 PM »
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 18, 2008, 11:44 PM by Ehtyar »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: idea: Application to turn off a laptop's display.
« Reply #26 on: January 19, 2008, 06:13 AM »
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..

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,885
    • View Profile
    • Donate to Member
Re: idea: Application to turn off a laptop's display.
« Reply #27 on: January 19, 2008, 10:51 PM »
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

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 641
  • I will eat Cody someday.
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: idea: Application to turn off a laptop's display.
« Reply #28 on: February 17, 2008, 06:29 PM »
http://soerennielsen...GAdummy/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
    • View Profile
    • Donate to Member
Re: idea: Application to turn off a laptop's display.
« Reply #29 on: April 23, 2010, 09:47 PM »
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