---
title: "Discussion on \"How to mute a MacBook when the lid closes\" | Hashnode"
description: "Discussion on \"How to mute a MacBook when the lid closes\". A MacBook kept awake overnight still plays agent alerts. Mute only the sound while the lid is closed, and get it back when you open it."
url: "https://hashnode.com/posts/mute-macbook-when-lid-closes/6af48e4a0a570d11988338b6"
---

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

Discussion

# [How to mute a MacBook when the lid closes](https://keepmacawake.hashnode.dev/mute-macbook-when-lid-closes?utm_source=hashnode&utm_medium=feed)

A MacBook kept awake overnight still plays agent alerts. Mute only the sound while the lid is closed, and get it back when you open it.

15h ago · 8 min read · keepmacawake.hashnode.dev  
Read the article

-   [#macos](https://hashnode.com/tag/macos)
-   [#macbook](https://hashnode.com/tag/macbook)
-   [#claude-code](https://hashnode.com/tag/claude-code)
-   [#codex](https://hashnode.com/tag/codex)

## 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.
