1. Open system preferences.

2. Click on the energy saver icon.

3. Adjust the settings you require.

4. Close the window to save all changes.