ब्लॉग पर वापस जाएँ
Guide

How to Keep a Laptop Awake With the Lid Closed (Windows and Mac)

On Windows, set closing the lid to Do nothing in Power Options. On a Mac, use clamshell mode: power adapter, external display, keyboard and mouse. Commands for both, the admin and heat caveats, and why Slack still shows you away with the lid closed.

Slack Green Team
September 23, 2026
September 23, 2026
5 min read
Share:
windows
mac
remote work

To keep a Windows laptop awake with the lid closed, open Control Panel, Power Options, Choose what closing the lid does, and set When I close the lid to Do nothing for Plugged in. On a Mac, use clamshell mode: connect the power adapter, an external display, and a keyboard and mouse, then close the lid; the Mac keeps running on the external display. Without a display, a Mac needs an admin command (sudo pmset -a disablesleep 1) or an app like Amphetamine.

A laptop that stays awake with the lid closed still shows you as away in Slack after 10 minutes, because nobody is giving Slack input. To stay green with the lid closed, the session has to come from somewhere else: Slack Green keeps your Slack presence active from its own servers during the working hours you set, and the laptop can sleep.

Keep a laptop awake with the lid closed: Windows Do nothing, powercfg, Mac clamshell, pmset, Slack away at 10 minutes

Ways to keep a laptop running with the lid closed

Ways to keep a laptop running with the lid closed on Windows and Mac
MethodSystemAdminNotes
Closing the lid: Do nothingWindowsUsually notIT can lock it
powercfg LIDACTION 0WindowsUsually notSame setting, command line
Clamshell modeMacNoPower, display, keyboard and mouse
pmset disablesleep 1MacYesNo display needed
Amphetamine closed-display modeMacHelper installApp Store app

Windows 11 and 10: keep the laptop awake with the lid closed

  • Open Control Panel and go to Hardware and Sound, Power Options.
  • Click Choose what closing the lid does.
  • Next to When I close the lid, set Plugged in to Do nothing. Leave On battery on Sleep unless you need it.
  • Click Save changes.
  • Newer Windows 11 builds also show lid settings under Settings, System, Power & battery. The same change from a terminal, for the current power plan while plugged in:

    powercfg /setacvalueindex SCHEME_CURRENT SUB_BUTTONS LIDACTION 0
    powercfg /setactive SCHEME_CURRENT

    0 means do nothing; 1 is sleep. On a company laptop the option may be greyed out by policy.

    Mac: keep a MacBook awake with the lid closed

Slack पर फिर कभी "away" न दिखें

क्लाउड-आधारित। कोई डाउनलोड नहीं। लैपटॉप बंद होने पर भी 24/7 काम करता है।

Clamshell mode (no admin). Plug in the power adapter, connect an external display and a keyboard and mouse (or trackpad), then close the lid. The Mac keeps running on the external display. Unplug power or the display and it sleeps.

Without an external display. macOS sleeps when you close the lid. This command stops all sleep, needs an admin password, and should be undone afterwards:

sudo pmset -a disablesleep 1   # keep awake, lid closed too
sudo pmset -a disablesleep 0   # back to normal

A closed MacBook running this way in a bag can overheat. Amphetamine from the App Store offers a closed-display mode with its own helper. caffeinate alone does not stop lid-close sleep; see our caffeinate guide.

Does Slack stay active with the laptop closed?

Lid closed and awake: what keeps working, and what Slack does anyway

No. If the laptop sleeps, Slack sets you away within seconds. If you keep it awake with the lid closed, Slack still counts no input in its window and sets you away 10 minutes after your last one. Either way your coworkers see the grey dot. The rules are in how long does Slack stay active, and the desktop options in how to keep Slack always active on desktop.

What does work with the lid closed:

  • Your phone, with Slack on screen. See keep Slack active on your phone.
  • A server-side session. Slack Green keeps your presence active on your schedule with every device off. Nothing runs on the laptop, so you can close it and let it sleep.
  • Before you leave a laptop running closed

  • • Keep it on a hard, open surface, not in a bag.
  • • Plug it in; battery drain is fast with the lid closed and awake.
  • • Check your company's policy on changing power settings on managed laptops. For methods that need no admin rights, see keep a work computer awake without admin rights.
  • FAQ

    Slack पर फिर कभी "away" न दिखें

    क्लाउड-आधारित। कोई डाउनलोड नहीं। लैपटॉप बंद होने पर भी 24/7 काम करता है।

    How do I keep my laptop running with the lid closed?

    Windows: set closing the lid to Do nothing in Power Options. Mac: clamshell mode with power and an external display.

    How do I keep a MacBook awake with the lid closed without a monitor?

    sudo pmset -a disablesleep 1, which needs admin rights, or Amphetamine's closed-display mode. Undo it afterwards.

    Is it bad to run a laptop with the lid closed?

    It is fine on a hard surface with airflow and power. It can overheat in a bag.

    Does Slack stay active when my laptop is closed?

    No. A sleeping laptop sets you away at once, and an awake one after 10 minutes without input in Slack.

    Does Teams stay green with the laptop closed?

    No. Teams shows Offline when the computer sleeps, and Away after a few minutes without input if it stays awake.

    Always Active

    माउस हिलाना बंद करें।

    सैकड़ों रिमोट वर्कर्स अब Slack स्टेटस की चिंता नहीं करते। एक बार सेटअप करें, हमेशा के लिए हरे रहें।

    Related Articles

    Guide

    Can Slack Admins See What You Search? And What Else They See

    No. Slack gives admins no record of your search terms. On Enterprise they can see how many searches you ran each day. What admins see about edits, private channels, scheduled messages, analytics and read receipts.

    Slack Green Team5 min read
    Guide

    Does Slack Notify When You Leave a Channel? Leave, Edit, Delete and More

    Slack does not ping anyone when you leave a channel, but it posts a line saying you left, unless an admin turned join and leave messages off. Edits show (edited), deletes leave no alert, forwards do not tell the author, and removing someone does notify them. What each action shows, and how to leave quietly.

    Slack Green Team5 min read
    Guide

    How to Connect Slack and Microsoft Teams: Calls, Messages and Status

    Slack and Teams do not connect natively for chat. You can start Teams calls from Slack with the free Microsoft Teams Calls app, relay messages with a paid bridge such as Mio, and sync your Teams status to Slack with a short script. Every option, what it costs, and the setup steps.

    Slack Green Team5 min read
      Keep a Laptop Awake With the Lid Closed: Windows, Mac