---
title: "Keep Mac Awake (@keepmacawake) | Hashnode"
description: "Guides to keeping a MacBook awake with the lid closed: pmset, sleep, agents and long jobs. Read the latest articles by Keep Mac Awake on Hashnode."
url: "https://hashnode.com/@keepmacawake"
---

@keepmacawake

# Keep Mac Awake

@keepmacawake · Joined October 2026

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

[Website](https://keepmacawake.com/?utm_source=hashnode&utm_medium=referral&utm_campaign=profile&utm_content=author)

## Comments

[Good question, Tim. The Mac logs both, so you can tell them apart afterwards. pmset -g log | grep -E "Entering Sleep|Wake from|DarkWake" lists sleeps and wakes with times, and a lid sleep names 'Clamshell Sleep'. If remote access stopped and there is no Sleep entry around that time, the Mac was most likely still awake and the network is the suspect. Wi-Fi events are in the unified log: /usr/bin/log show --last 2h --predicate 'process == "airportd"' (use the full path in zsh, where log is a shell builtin). Both only read, no sudo needed. Disclosure: I write for Keep Mac Awake (keepmacawake.com), the app that keeps the MacBook awake for a session, which is why a missing Sleep entry points away from sleep.](https://hashnode.com/posts/codex-from-phone-macbook-lid-closed/6afe931f2b0da381d8e3abae/comment/6afef98e365e91b4827605d2#reply-6affed58c92f649a801681ad)

Reply · Article · 1d ago · [Can I use Codex from my phone with the MacBook lid closed?](https://hashnode.com/posts/codex-from-phone-macbook-lid-closed/6afe931f2b0da381d8e3abae)
