49

I like to use vnc on my ipad on my bed. I want the mac to go to a black screen so I can fall asleep while using the ipad, and not have to get up to shut down the mac afterwards. Is there anyway to turn off the imac screen without sleeping?

I'm open to anything that minimizes the light - so if the backlight is off, that would meet the needs even if the screen is still drawing content.

From a semantics standpoint, let's assume the following:

When the system sleeps, the display sleeps or a screensaver engages are all distinct states. The display is asleep when the backlight is off and the GPU doesn't bother drawing any signal to that display but continues to run. This is different than system sleep where everything except the RAM and network interfaces1 are shut off.

1: Network interfaces that support wake on lan (WOL) only do so when power not from a battery is available.

Harry
  • 2,210

8 Answers8

50

You can turn off your iMac (and your macbook) screen without sleeping via the following keyboard shortcut:

+ +

(Control +SHIFT + EJECT)

Machines like the Air and newer MacBook Pro with no optical drives have the power button in the same place as the eject key and it works similarly for display sleeping shortcuts.

bmike
  • 235,889
user1556373
  • 1,109
  • This command works, but the screen seems to continue to turn itself back on without my touching the keyboard or mouse... I think it's because I'm running an application (youtube playlist with new pages loading after every song). Is there any way to keep the screen off more securely? – Paul Apr 18 '12 at 03:25
  • 3
    The combination for new Macbook without "Eject" key is: Control + Shift + Fn + Power, FYI. – Ngoc Pham Jan 18 '13 at 15:20
  • how do you put the system to sleep without having to go to apple> sleep. I don't just want to put the screen to sleep. – SuperUberDuper Nov 26 '16 at 10:43
  • @SuperUberDuper Option+Command+Eject – Tim Oct 26 '17 at 00:43
  • 1
    @SuperUberDuper or just hold down the power button for about 1.5 seconds – redbeam_ Jul 12 '18 at 01:05
  • On my non-magical keyboard, it's Ctrl+Shift+Del – goodfellow Oct 14 '18 at 20:55
  • 1
    None of the suggested key combos work for me on an iMac Pro, Mojave. Not ctrl-shift-eject, ctrl-shift-del, option-command-eject, ctrl-shift-power or ctrl-shift-fn-power. This is not an Apple keyboard, but it's clearly designed for a Mac. Matias Tactile Pro. – door_number_three Nov 08 '18 at 15:33
  • I have an iMac Pro with a non-Apple mechanical keyboard. The tip from @redbeam_ about holding the Power button (on the back bottom left corner of the iMac) for about 1500ms works for me. That turns off the iMac screen and my two external LG UltraFine 5K monitors, without actually putting the machine to sleep. If you hold it a little too long, maybe 2000ms, then the system sleep dialog comes up, so the timing is a little funky. But it works, and I've gotten used to it. – Mason Jan 20 '19 at 00:45
  • What is the difference with COMMAND + CONTROL + Q ? – Ben2209 Aug 29 '19 at 06:19
29

In Terminal.app:

pmset displaysleepnow

https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/pmset.1.html

This also works for the lock and sleep functions:

pmset sleepnow
pmset lock
pkamb
  • 8,791
15

Your first stop should be the energy saver preference pane. Dial down the Display sleep slider as short as you can stand it.

enter image description here

If you don't want to wait for this time out, you could also set a hot corner and black screensaver so you could use VNC to set the mouse pointer to the corner to engage a black screensaver so the screen is as dim as possible until the sleep timer shuts off the LCD lighting as well as the data to the iMac screen.

bmike
  • 235,889
  • This doesn't work for me, it'll turn off the display if I'm watching a movie or such. – Harry Oct 12 '11 at 10:38
  • @bmike not sure if you're aware, but your screenshot is on a MacBook and a lot of those options are missing on an iMac. For example instead of a slider there's a checkbox "prevent computer from sleeping". – Abhi Beckert Jun 06 '19 at 00:56
2

On computers without an eject button (iMac with non-Apple keyboard; 2011 MacBook Air; etc.), it becomes difficult to put the display to sleep without using a hot corner. The following script will do the job (in Leopard and later), but it must be run with sudo:

#!/bin/bash
original_setting=`/usr/bin/pmset -g | /usr/bin/grep displaysleep | /usr/bin/awk '{print $2}'`
echo $original_setting
magic_number=2147483648
/usr/bin/pmset -a displaysleep $magic_number; sleep 1; /usr/bin/pmset -a displaysleep $original_setting
Daniel
  • 34,803
2

On of the quick and easy ways I use to put the device to sleep is to use "HOT CORNERS" in System preferences. Its quick, easy, and painless. All I have to do, is mouse over to my top right corner, and my screen goes instantly blank. It puts the screen without putting the computer to sleep. Hope my tip helps

PS:. In Mac OS X Lion you can access hot corners in the Preferences pane under Mission control.

1

You can use this great open source tool: https://github.com/Eun/DisableMonitor

Tested on iMac (20-inch, Early 2009) with OSX El Capitan 10.11.4 and Dell U2515H external monitor via DP

0

you just dim the screen all the way down. The controls are beside the escape button in the top left.

Sean
  • 9
-5

schedule you can set any time you want .I watch tv set it 1/2 hour in the future it works well