If you're running on battery power, your Mac's sleep and Energy Saver functions are important.

It's important to know how to manage your Mac's energy settings so that you don't get frustrated when your computer's wi-fi goes off in the middle of a download.

Here is a guide to scheduling your computer's sleep and wake times.

How to keep your Mac from going to sleep

This is the first thing. Select System Preferences by clicking the Apple logo on the top- left corner of your screen.

There are two You can click on the battery in the system preferences.

The System Preferences window on a Mac, with “Battery” highlighted.
Click on "Battery."
Stefan Ionescu

There are three. There are options on the left side menu for the battery and power accessory. You can set sleep times from one minute to three hours, or never.

The Power Adapter settings window of the Battery settings on Mac.
Switch between the Battery and Power Adapter settings on the left side menu and slide the "Turn display off after" bar to your desired setting.
Stefan Ionescu

There are four. If you want to keep your Mac awake, you have to use the Never tab.

If you're the kind of person who likes to turn down the brightness on their screen when not using it but doesn't want the computer going to sleep, you'll want to check to prevent the computer from sleeping when the display is turned off.

How to disable sleep mode temporarily on Mac using Terminal

The "caffeinate" Terminal command can be used to turn off sleep mode for a short time. If you don't close the terminal window when you run the command, your computer will stay awake.

This is the first thing. Click on the icon in the dock.

There are two On the left side menu, click applications.

There are three. Double-click to open the Utilities folder after scrolling down.

The Applications Windows on a Mac, with the “Utilities” folder highlighted.
Open the "Utilities" folder.
Stefan Ionescu

There are four. To open the terminal window, double click the terminal icon.

The Utilities folder on Mac, with the “Terminal” icon highlighted.
Launch the Terminal window.
Stefan Ionescu

There are five. Don't close the windows afterwards if you type caffeinate in the terminal window.

The Terminal window on Mac, with the “caffeinate” command typed in and executed.
Run the "caffeinate" in Terminal to temporarily disable sleep mode.
Stefan Ionescu

How to schedule sleep on your Mac

It is possible to schedule your computer's sleep cycles. This is how.

This is the first thing. Select System Preferences by clicking the Apple logo on the top- left corner of your screen.

There are two You can click on the battery in the system preferences.

The Power Adapter settings window of the Battery settings on Mac.
Switch between the Battery and Power Adapter settings on the left side menu and slide the "Turn display off after" bar to your desired setting.
Stefan Ionescu

There are three. You can schedule the battery in the system preferences window.

The Battery settings window on Mac, with the “Schedule” option highlighted in the left side menu.
Select the "Schedule" option in the left side menu.
Stefan Ionescu

There are four. Set a wake up time by checking the two boxes.

A pop-up for setting the sleep and waking times on a Mac.
Set sleep and wake times.
Stefan Ionescu

There are five. If you choose a sleep time, do the same thing.

You can choose the number of days your Mac follows your sleep/wake schedule from specific days to every day.

How to use other sleep settings on a Mac

There are other settings that can affect sleep mode that you should be aware of.

"Put hard disks to sleep when possible"

If you have a hard disk on your Mac, it's a good idea to spin it down to save power. It would take a minute to get going again if your Mac has been inactive.

This option only applies to Macintosh computers that have spinning hard drives. There's no need to "spin down" since Solid-State Drives are solid-state.

"Enable Power Nap while on battery power" 

This setting will allow the computer to wake up and perform certain tasks if you don't want it to be fully awake. It's a good compromise.

"Wake for Wi-Fi network access"

The setting wakes the computer when someone tries to access file sharing on it.