Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Keep Music Playing with a Closed Laptop

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can keep music playing with your laptop closed, but only if you change a few power settings first. By default, most laptops sleep when the lid closes, which pauses or stops audio. The fix is to tell your operating system to do nothing (or only turn off the display) when the lid is closed, then plug in your laptop to avoid draining the battery. This guide walks you through the exact steps for Windows and macOS, plus what to do if your laptop still won't cooperate.

What You'll Need

  • Your laptop (Windows or macOS)
  • Access to your operating system's power settings (no extra software needed)
  • Your laptop's power adapter (recommended, because keeping the lid closed while running on battery can drain it quickly)

Step-by-Step

For Windows 10 and Windows 11

  1. Open Power Options. Click the Start button, type “Control Panel,” and open it. Then go to Hardware and Sound > Power Options. (In Windows 11, you can also search for “Power Options” directly in the Start menu.)
  2. Choose what closing the lid does. On the left side of the Power Options window, click “Choose what closing the lid does.” If you don't see that link, click “Choose what the power buttons do” first—it's usually right above it.
  3. Change the “On battery” and “Plugged in” settings. Next to “When I close the lid,” use the drop-down menus to select “Do nothing” for both battery and plugged-in modes. If you want the screen to turn off but the music to keep playing, choose “Turn off display” instead—but note that on some laptops, “Turn off display” still pauses audio. “Do nothing” is the safest choice.
  4. Save your changes. Click “Save changes” at the bottom of the window.
  5. Plug in your laptop. Even though you set “Do nothing” for battery mode, running with the lid closed on battery can overheat or drain the battery fast. Use the power adapter for reliable playback.

For macOS (MacBook)

  1. Open System Settings (or System Preferences). Click the Apple menu and choose System Settings (on macOS Ventura or later) or System Preferences (on older versions).
  2. Go to Battery settings. In System Settings, click Battery in the sidebar, then click the “Options” button on the right. In System Preferences, click Energy Saver (or Battery on newer macOS).
  3. Prevent sleep when the display is closed. Look for a setting called “Prevent automatic sleeping on power adapter when the display is closed” (or similar wording). Enable it. This option only appears when your Mac is plugged into power—it does not exist for battery mode.
  4. Plug in your Mac. This setting only works while connected to the power adapter, so make sure your MacBook is plugged in.
  5. Close the lid. Your Mac will stay awake, and music will continue playing (even if the screen turns off).

If You're Using a Music App That Pauses on Its Own

  1. Check the app's settings. Some music apps (like Spotify or YouTube Music) have a “pause when headphones are unplugged” or “pause when screen locks” option. Open the app's settings and look for anything related to playback behavior.
  2. Keep the app in the foreground. On some apps, if the window is minimized or the app is backgrounded, playback may pause. Try keeping the app window open (even if it's behind other windows) and check if that helps.

Common Mistakes

  • Not plugging in the laptop. On Windows, “Do nothing” on battery works, but the battery drains fast and the laptop may overheat. On Mac, the setting only exists when plugged in.
  • Choosing “Turn off display” instead of “Do nothing.” On some laptops, turning off the display still triggers sleep or pauses audio. Use “Do nothing” to be safe.
  • Forgetting to save changes. If you close the Power Options window without clicking “Save changes,” your settings revert.
  • Using third-party “keep awake” apps. Many of these are unnecessary and can cause conflicts. Stick to the built-in settings.

Tips

  • Use external speakers or headphones. If you're closing the lid, you're likely using external audio. Make sure your speakers or headphones are connected before closing the lid, because some laptops switch audio outputs when the lid closes.
  • Keep the laptop ventilated. Closing the lid can block airflow on some models. Place it on a hard, flat surface and avoid covering the vents.
  • Set a sleep timer for your music. If you're using this to fall asleep, most music apps have a built-in sleep timer (e.g., Spotify's “Sleep Timer” in the playback screen). Use that instead of letting it run all night.
  • Test with a short song first. Before relying on this for a long playlist, close the lid and play a 30-second clip to make sure everything works.

Troubleshooting

If the music still stops when you close the lid

  1. Check your power settings again. Go back to Power Options (Windows) or Battery settings (macOS) and confirm the lid action is set to “Do nothing” (Windows) or that “Prevent automatic sleeping” is enabled (macOS).
  2. Restart your laptop. Sometimes settings don't take effect until you restart. Save your work, restart, and try again.
  3. Update your audio drivers (Windows). Outdated audio drivers can cause weird behavior. Go to Device Manager, find “Sound, video and game controllers,” right-click your audio device, and select “Update driver.”
  4. Check if your laptop has a “clamshell mode” limitation. Some laptops (especially older ones) may not support “Do nothing” when the lid is closed, even if the setting is selected. In that case, you may need to use an external monitor—connect one via HDMI, and the laptop may stay awake when the lid is closed (this is a common workaround, but it requires a monitor).

If the screen turns off but the music pauses anyway

  • This is often an app-specific behavior. Try a different music app (e.g., VLC, Windows Media Player) to see if the problem persists. If it doesn't, the issue is with the app's settings, not your laptop.

Frequently Asked Questions

Will closing the lid damage my laptop?

No, not if you keep it plugged in and well-ventilated. The main risk is overheating if the vents are blocked, so place it on a hard surface.

Can I do this on battery power?

On Windows, yes—set “On battery” to “Do nothing.” However, the battery will drain quickly, and the laptop may heat up. On Mac, the setting only works when plugged in.

Does this work with any music app?

Yes, as long as the app itself doesn't have a “pause when backgrounded” feature. Most desktop apps (Spotify, iTunes, VLC) will keep playing once the laptop stays awake.

What if my laptop is a MacBook with an Apple Silicon chip?

The same steps apply. The “Prevent automatic sleeping” option is available in System Settings > Battery > Options, and it works on Apple Silicon Macs when plugged in.

I have a Windows laptop, but I don't see “Choose what closing the lid does.”

This link is usually on the left sidebar of Power Options. If it's missing, click “Choose what the power buttons do” first—it's usually right above it. If you still don't see it, your laptop manufacturer may have a custom power management app (like Lenovo Vantage or Dell Power Manager) that overrides Windows settings. Check that app's settings for lid behavior.

Can I keep the music playing and also lock the screen?

Yes. Locking the screen (Windows key + L on Windows, Control+Command+Q on Mac) does not put the laptop to sleep. It only locks the user interface, so music will continue.