The Fastest Way to Lock or Sleep Your Screen in macOS (Mac OS X)

Locking your Mac’s display (or “sleeping” the display) can be a great security measure when paired with a user account password. While it won’t prevent the outright theft of your Mac, it can be a quick and easy way to prevent nosy family members or coworkers from getting access to your data.

The Fastest Way to Lock or Sleep Your Screen in macOS (Mac OS X)

Of course, sometimes laptops get stolen from coffee shops, offices, and homes, and a locked MacBook at least provides some protection of your date.

Before doing anything else, set your “Require Password” system preferences…

Configure Your System Preferences

In order for a MacBook lock screen command to be effective, you’ll first need to configure System Preferences to require your user account password when unlocking or waking up. To do this, follow these instructions:

  1. Click on System Preferences.
  2. Next, click on Security & Privacy.
  3. Make sure you are on the General tab.
  4. Check he checkbox next to Require Password
  5. Then, select the time interval from the Require Password
  6. From the Require Password pulldown menu select the amount of time you want the elapse “after sleep or screen saver begins” to require a password from these choices: immediately, 5 seconds, 1 minute, 5 minutes, 15 minutes, 1 hour, 4 hours, or 8 hours.

If you want the highest level of security, set it to “immediately” all the way up to the lowest level of security, which is 8 hours. Those who travel with their Macbook or use it in a public space might want to set the time interval to immediately, while those who only use their laptop at home might set it to longer. It’s probably not a good idea to set the time interval to re-enter the password to 8 or even 4 hours as laptops can fall into the wrong hands.

If you often find yourself accidentally locking your screen, set it to 5 seconds so that you can quickly unlock the display without having to enter your password.
Lock Screen Shortcut Mac
Next, you’ll need to decide on the exact functionality you want: lock (sleep) the display only, or sleep the entire system.

Locking or sleeping the display will shut the display off but keep the Mac running in the background.

If you performed the steps above to require a password, users will need to enter the correct account password in order to unlock the display.

Locking your Mac’s Screen Quickly with a Keyboard Shortcut

If you have a Mac running macOS Mojave, press these three keys simultaneously to lock your screen: Command+Control+Q keys.

To lock your Mac’s screen on an older Mac, press these keys simultaneously to lock your screen: Control+Shift+Power

For older Macs with that has a built-in drive, simultaneously press the following keys to lock your screen: Control + Shift + Eject.

In both cases, you’ll see your Mac’s display shut off immediately, while the system continues to run in the background. You’ll have to login again to resume using your Mac.

Performing a lock or display sleep command is useful for situations in which you’ll only be gone for a few minutes, as it allows you to jump immediately back to work. It’s also a good idea to use if you want to lock your Mac but have applications running in the background, such as a rendering operation or an encryption sequence.

Your Mac will still chug away at its task; the only difference is that anyone without the password won’t be able to access it, interrupting the process or otherwise messing around with your Mac.

Putting your Your Mac to Sleep with Keyboard Shortcuts

This option will put your Mac’s CPU to sleep rather than just locking the screen. MacBook owners are familiar with sleep; it occurs every time they shut their computer’s lid, or automatically after a user-defined period of time.

On macOS Mojave and other newer versions of macOS, press these three keys simultaneously to put your Mac to sleep: Command + Option + Power.

If you have an older Mac with an optical drive, you can put it to sleep by pressing these three keys simultaneously: Command + Option + Eject.

These commands will cause your Mac’s CPU to sleep immediately, shutting down all functions and requiring a password to resume using your MacBook.

Locking or putting your Mac to sleep from the Apple Menu

If you prefer to use the Apple Menu to keyboard combinations, you can choose either the sleep or the lock option from the Apple Menu. You can always find the Apple menu in the upper left of your Mac screen, scrolling down to select either Sleep or Lock Screen.

The Apple Menu

When to Put your Mac to Sleep

Users running on battery power may prefer to put their Mac to sleep to save power. The practical effect is the same (preventing others from accessing your Mac), but this latter option saves battery power while the user is away.

On the other hand, putting your Mac to sleep will stop all background tasks as it puts the CPU to sleep, so it may not be the ideal option for users who want their Macs to keep working while they grab a coffee or stop for a bathroom break.

Also, it takes longer to wake up from a sleep state than from a display lock state, although on modern Macs with fast SSD storage the time difference between the two sleep options has shrunk considerably.

We at TechJunkie recommend that Mac users experiment with both options to find the one that suits them best for different situations. It’s also likely that users, especially those “on the go” with MacBooks, will find occasion to use both options more frequently than those who mostly use their Macs at home.Road warriors are more likely to need to save battery life and be more concerned about their Macbook being lost or stolen.

Of course, it’s not a good idea to leave your Mac in a public place but realistically you might go get a coffee refill leaving your Mac at your table. It’s at least some peace of mind to know that your data will be protected from opportunistic thieves that might grab your Mac.

Regardless, having a strong user account password and taking a moment to ensure that your Mac is locked even if you only step away for a few seconds are both crucial steps to protecting your data.

If you enjoyed this article, you might also like this TechJunkie tutorial: How to Edit the Hosts File on macOS (Mac OS X).

Do you have any tips or tricks with regard to putting your MacBook to Sleep or locking your MacBook’s screen? If so, please tell us about it in a comment below.

28 thoughts on “The Fastest Way to Lock or Sleep Your Screen in macOS (Mac OS X)”

Peter says:
Lock Screen doesn’t play nice with sidecar. The iPad doesn’t lock and simply becomes available.
The ugly part was, that it takes a while before the iPad comes out of sidecar mode, so you do not see it right away, and you are gone from your Mac the moment it falls back into unlocked iPad mode.
On the iPad I use logitech stand/sleeve with a keyboard that has a lock key. Locking the iPad keeps sidecar active. This seems to be a valid workaround.
Irl says:
My late-2013 Macbook Pro Retina doesn’t respond to any of the above, but I stumbled on a Terminal command that does what I want: It basically activates Fast User Switching to go to the login screen. I use Keyboard Maestro to invoke this one-line script, but you could also do it via Applescript, I expect.
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
Abraham Kim says:
The GateKeeper does this automatically. If the user walks away the computer locks automatically. If the user walks back the computer will unlock automatically. It works by communicating with a bluetooth keyfob. The keyfob communicates with the computer to make sure the computer gets locked once the user is out of range,
Kris McDonald says:
Doing this works…. sorta. However, on my iMac it also closing some programs which is not good.
vipin says:
very nice, it was surprisingly tough to find this information since the sleep drop down does not show this shortcut.Also its silly MacBook gives no options of changing the default settings like preventing sleep of MacBook when the lid is closed. I could not find a place where i can change the shortcut keys for putting a mac to sleep as well.
Arun Kumar says:
Shift+Control+Power worked..thanks
Arun Kumar says:
doesnt work in MacBook Air…
Control+Shift+Power
Emerson says:
What would the combination be for the new MacBook Pros with TouchBar?
Fiyero109 says:
command option power is the same as control shift power, sorry
fengyao.me says:
thanks
Pingback: Bloquear pantalla en OSX – Lock screen shortcut - Franz Neuenschwander
Marius Piedallu van Wyk says:
I don’t have an eject button on my new external keyboard… how to do that now?
Marius Piedallu van Wyk says:
Ok, found a way, even though it will sleep my computer instead of just locking it (dropping any active connections if you have any). Add Keyboard shortcut to “All Applications” called “Sleep” and link it to the keys of my choice.
Tuna Fish #5 says:
just be really careful with Command + Option + Power: it’s only 1 fatfinger away from an instant reboot via Command + Control + Power!!
Elijah Kyungu Elie says:
thanks very helpful!
Angel Chat says:
Love this solution, is almost like in windows…. im a new mac user 🙂
Joe says:
Why can this setting be changed without the “lock” in the lower left hand corner being clicked?
TekRevue says:
The “Require Password” option can be changed without admin privileges (i.e., clicking the lock icon) because it’s a user-specific setting that only affects that individual user account. If a standard user sets a password requirement and walks away from the Mac, an admin user can always gain access by clicking “switch user” on the lock screen and then logging into their own admin account. From there, they can shut down the Mac or modify the standard user account as necessary.
Pingback: My Migration to Mac – Part 1 | Elworth Consulting LLC
Pingback: 10 security tips for users | Global Asset
BB says:
One addition to the steps listed : You need to restart your mac to take this changes effective.
GrumpyCat says:
Don’t need to restart to enable changes to screen sleep or security of sleep.
Pingback: What is the hotkey to lock screen on my macbook pro early 2015 with Yosemite? - Quora
virae says:
This little app that does the trick — http://keylock.io
Pingback: 11 Simple Keyboard Shortcuts That You Didn't Know About! ⋆ The NEW N!FYmagThe NEW N!FYmag
Amon Bennett says:
Great, now how do I unlock it?
I was just trying out shortcuts to see if it would work, it clearly works and now I don’t know how to unlock my computer. Please help.
TekRevue says:
Amon,
If you have a password on your user account, press any key on your keyboard to wake the Mac up. It will then prompt you for your user password. If you don’t have a user password, the system should just wake up with a key press.
If you’re having trouble, make sure your Mac’s screen brightness is up. If the Mac still won’t respond, hold the power button down for about 7 to 10 seconds. Note that this is called a “hard reset” and may result in the loss of unsaved data (such as open unsaved documents). The Mac should power off. Wait about 10 seconds once it’s off then press the power button once to turn it back on. If you notice that your Mac is not waking up after sleep and requires a hard reset to work again, it may indicate a hardware issue such as a failing hard drive or bad RAM.
Amon Bennett says:
Thanks. I pressed every key possible and never got the prompt to enter my password. ( in theory, I assume the password I would be prompted to enter would be the same password used for logging onto the system.) I did eventually have to turn the computer off and reboot as the function did not work as described. (that was scary)
Balachander Ganesan says:
Typical mac user.
Completely dumb!
Christian Henry says:
Typical Mac user. “You must be holding it wrong!”
Amon Bennett’s probably more like a typical *MacBook Air* user.
For well over a year, some of the MBAs had an issue where, under certain conditions, if you put your Mac to sleep, it *won’t* wake up.
I, myself, ran into this just this past weekend on my wife’s MBA running 10.8.x. I selected Apple Menu -> Sleep, while plugged in. About a minute later, I tried waking it up, and no key sequence would wake it up. Even holding down the power button for 15+ seconds didn’t work.
I ended up having to Control-Command-Power, because even Control-Command-Option-Power didn’t work.
Aleks says:
Get on Mavericks, just hit the power button.
Pingback: 7 Tips to Boost Your Digital Security — TechPatio
Milo says:
Thank you for this article it helped me very good. I love to use the keyboard shortcuts. Only for me it looks like that the keychain way is the most easy way, because the icon in the upper right corner. I’ve found a youtube instruction guide what tells how to enable the Keychain icon. Maybe it’s helpful for other people..
http://youtu.be/OVKrF7eTnp8
tedd4u says:
I use “Preferences > Desktop & Screen Saver > Hot Corners …” and set the top left corner to “Start Screen Saver.” Along with the “require immediately” setting described above. Just fling the cursor to the top left when you walk away.
Amr Lotfy says:
That’s Excellent, thank you very much !
Dan says:
Personaly I like the keychain way. I have it pushed out to our labs so users can lock the screen this way as well. In keychain.app preferences you can Show keychain status in the menu bar and it shows as a little lock icon. Simply select the lock and lock screen and the screen saver kicks on. Also ways to set it to ctrl+alt+delete like Windows if needed. But I like the Lock Icon in the menu bar way. Visual and easy to use.
TekRevue says:
That’s true, Dan. Visual indicators like the padlock icon can be helpful, especially in multi-user environments. But I’m always going to be a keyboard shortcut guy 🙂
Lik Fenix says:
Thanks Dan – that’s exactly what I needed!
The keyboard shortcuts described in the article still respect the setting in the security & privacy tab – so if I don’t have an immediate lock there, they don’t actually lock the screen, just put the screen or computer to sleep.

Comments are closed.

Disclaimer: Some pages on this site may include an affiliate link. This does not effect our editorial in any way.

Todays Highlights
How to See Google Search History
how to download photos from google photos