---
title: "Discussion on \"Why does my Mac sleep when the lid is closed? Read the reason with pmset\" | Hashnode"
description: "Discussion on \"Why does my Mac sleep when the lid is closed? Read the reason with pmset\". It usually did not shut down, it slept. How to read the reason in pmset -g log and fix the usual causes."
url: "https://hashnode.com/posts/mac-sleeps-lid-closed-why/6afd432d75b058ba59b099eb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why does my Mac sleep when the lid is closed? Read the reason with pmset](https://keepmacawake.hashnode.dev/mac-sleeps-lid-closed-why?utm_source=hashnode&utm_medium=feed)

It usually did not shut down, it slept. How to read the reason in pmset -g log and fix the usual causes.

9h ago · 3 min read · keepmacawake.hashnode.dev  
Read the article

-   [#macos](https://hashnode.com/tag/macos)
-   [#macbook](https://hashnode.com/tag/macbook)
-   [#productivity](https://hashnode.com/tag/productivity)
-   [#apple](https://hashnode.com/tag/apple)

## Written by

[Keep Mac Awake](https://hashnode.com/@keepmacawake)

@keepmacawake

  
[View profile](https://hashnode.com/@keepmacawake)

Guides to keeping a MacBook awake with the lid closed: pmset, sleep, agents and long jobs.

Keep Mac Awake is a Mac menu bar app and command line tool that keeps a MacBook awake with the lid closed for a session you start. These guides explain Mac sleep, pmset and long jobs with the lid closed, and first appear on keepmacawake.com.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
