PC AccessoriesKeyboard

How To Put a Computer To Sleep With a Keyboard

How To Put A Computer To Sleep With A Keyboard

Keyboard shortcuts are a great way to complete tasks rapidly. There are hundreds of keyboard shortcuts that you can regularly use to perform actions, and one of them is to put the computer to sleep. Many people don’t know how to put a laptop to sleep with a keyboard.

Quick Answer

You can press the Window + X button, and a list will appear on the screen. Next, press the U and S keys, and your computer will go into sleep mode. 

You can use other methods and keyboard shortcuts to put your computer to sleep. Let’s discuss all the keyboard keys to put the computer to sleep.

What Is Sleep Mode on a Computer?

Sleep mode is a power-saving mode on your computer. Your computer’s recent files are saved automatically in this mode, and your computer enters a low-power state. When you wake up your computer, it will automatically return to its previous state.

Going into sleep mode uses very little energy, so your battery will last longer if you use sleep mode instead of shutting down or restarting your computer.

How To Put Computer To Sleep With Keyboard

As you may know, there are multiple keyboard shortcuts available in Windows for similar tasks. Similarly, there are different keys to put your computer on sleep with the keyboard. 

So, here are 3 primary methods to put your computer to sleep with the keyboard.

Method #1: Use Alt + F4 Keys

You can put your computer to sleep by following these steps.

  1. Press the Windows + T keys together.
  2. Press Alt + F4.
  3. Press the down arrow on your keyboard until “Sleep” appears under the prompt “What do you want the Computer to do?
  4. Press the Enter key.

This will put your computer to sleep.

Method #2: Use Windows + X Keys

If the above method is not convenient for you, you can also use this method by following the steps mentioned below.

  1. Press Windows + X keys together.
  2. Press the U key.
  3. Press the S key to finish the task if you see the “Sleep” option.

If the sleep option is not on the list, you can’t use this method to set your computer to sleep. You will have to move on to the following procedure.

Method #3: Create Your Keyboard Shortcut

If the methods above don’t work for you, you will have to create your keyboard shortcut. Follow these steps.

  1. Right-click anywhere in the space and take the cursor to the “New” tab.
  2. Click on “Shortcut“.
  3. Paste rundll32.exe powrprof.dll,SetSuspendState 0,1,0.
  4. Click “Next“, then “Finish“.
  5. Right-click on the shortcut and go into “Properties“.
  6. Enter a shortcut command in the “Shortcut Key” section. For example, Control + Shift + S.
  7. Press “OK“.

This will create a shortcut to put your computer to sleep using the given shortcut key.

How To Put MacBook or MacOS to Sleep With Keyboard

If you are using a MacBook or any other device that macOS operates, you will have to follow these methods to put your computer to sleep.

Method #1: Option + Command + Media Eject Keys

The most straightforward way to put your MacBook to sleep is by pressing the Option + Cmd + Media Eject keys


The Media Eject key is located at the top right corner of your Mac keyboard.

Method #2: Control + Shift + Media Eject 

If the above method doesn’t work for you, your macOS doesn’t have a sleep feature. So in this situation, you can put your computer’s display to sleep by pressing the Cmd + Shift + Media Eject keys together.

This will immediately turn off your computer’s display while all the programs are running in the background.


Here is a complete guide on putting your computer to sleep using the keyboard. I have given different methods for this, and I hope you will find the appropriate way according to your device and operating system.

Leave a Comment

Your email address will not be published. Required fields are marked *