Utility to turn off laptop display

8

0

laptop: Alienware M17x

I am using win+P to switch to projector only to turn off display (it's a tricky way, since there's no projector connected). And by press and key to turn on display.

Since the fn+F1 (suspend mode) seems not only turn off display, but also turn off hard drive and something else. And I can't find a way to configure it to only turn off display.

I was wondering if anyone has a better way to turn on/off display? By using a utility? Or configure the suspend mode (how, though). Please advise, thanks.

Stan

Posted 2011-01-30T07:30:31.320

Reputation: 6 535

If I do win+p / projector only, an error message appears and the screen lights back on : No projector was detected – Benjamin Crouzier – 2012-01-10T23:56:57.300

Answers

6

A quick google search pointed me towards this small (~85kB) utility. It works fine in Win7 for me, but it requires .net framework.

Greg

Posted 2011-01-30T07:30:31.320

Reputation: 752

5

Display Power Off Utility:

Display power off utility. Allows to power off desktop/notebook display and optionally lock workstation. Useful for keeping display's USB hub active while display is in power save mode.

  • Turns off monitor to save power or launches screensaver.
  • Optionally locks workstation.
  • Small and does not require installation or any additional frameworks.
  • x64 build is available.
  • Highly configurable. Details: doff /?

To simplify usage create desktop shortcut and assign hotkey.

user72527

Posted 2011-01-30T07:30:31.320

Reputation: 51

5

Here's a 1-KiB program that does that... no .NET Framework or anything else needed. :)

The source code is literally 3 lines:

#include <windows.h>
int main(void)
{ return SendMessage(GetShellWindow(), WM_SYSCOMMAND, SC_MONITORPOWER, 2) != 0;}

Base64 encoding of executable:

TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAAABkNvfRfG1jEXxtYxF8bWMhv7ojEbxtYxF8bSMR/G1jIb+1oxE8bWMhv7vjETxtYxSaWNoRfG1jAAAAAAAAAAAAAAAAAAAAABQRQAATAEBAB0o1E4AAAAAAAAAAOAADwELAQcKAAIAAAAAAAAAAAAADBAAAAAQAAAAIAAAAABAAAAQAAAA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31.320

Reputation: 21 330

Invalid or deleted file – Benjamin Crouzier – 2012-01-10T23:52:55.433

@pinouchon: Ah, shoot. :( See my updated answer. – user541686 – 2012-01-11T00:05:10.593