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.

  • If I do win+p / projector only, an error message appears and the screen lights back on : No projector was detected Jan 10, 2012 at 23:56

3 Answers 3


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


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:

  • Invalid or deleted file Jan 10, 2012 at 23:52
  • @pinouchon: Ah, shoot. :( See my updated answer.
    – user541686
    Jan 11, 2012 at 0:05

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .