How to keep your WiFi on with Mac lid closed in 3 easy steps • MacTips

April 2023 · 4 minute read
keep wifi on when lid closed macbook Keep your Mac prepared to face all kinds of problems
A cluttered system causes Mac errors. Cleaning and optimizing it keeps your system up and running day by day. Download it now, and make your Mac OS faster and safer in just three easy steps:
  • Download and install MacKeeper.
  • Once installed, open it and start the auto scan to find the issues.
  • Click Clean to get rid of all possible troubles.
  • Sometimes you need to keep your Wi-Fi connection active even if your MacBook lid is closed. This is relatively simple to do, and in this article, we’ll show you how to achieve that.

    How to keep Wi-Fi on when my MacBook lid is closed?

    1. Use the Terminal

    This is a quick little workaround that should keep your Wi-Fi on even if the MacBook lid is closed. To do that, you first need to find the application that you want to use to keep your Wi-Fi active. To do that, follow these steps:

  • Open Finder.
  • Click on Applications > Utilities.
  • Now double-click on Activity Monitor.
  • When the Activity Monitor opens, look for the PID Write down the PID value of the application that you want to use to keep your Wi-Fi awake.
    activity monitor macbook how to keep wifi on when lid closed
  • After getting the PID number, you need to run a command in the Terminal by following these steps:

  • Go to Applications > Utilities and start the Terminal.
  • Run the following command:
    • caffeinate -t 600 -w PID
  • After doing that, your MacBook should stay awake as long the process with the specified PID is running. You might also want to experiment with different values for the -t parameter.

    2. Set Computer sleep value to Never

    According to users, you can fix this problem by setting Computer sleep to Never. By doing so, your MacBook won’t go to sleep on its own, and your Wi-Fi will keep working at all times. To change this setting, follow these steps:

  • Go to Apple menu > System Preferences.
  • Click on Energy Saver.
  • Move the Computer sleep slider all the way to the right to Never for both Battery and Power Adapter modes.
    energy saver settings macbook how to keep wifi on when lid closed
  • We have to mention that by turning off Computer sleep mode, your MacBook might consume more power.

    3. Use third-party tools

    If the previous methods didn’t work for you, perhaps it would be best to use third-party tools in order to deal with this issue. The following tools can come in handy if you have problems with Wi-Fi and Sleep Mode:

    There you go, a couple of easy solutions that should help you keep your Wi-Fi on even if your MacBook lid is closed.

    FAQ: Learn more about WiFi on MacBook

    The most common reasons for the WiFi not working on MacBook are router problems. To see more details about how to resolve this issue, visit this easy-to-follow guide.

    To see who else is connected to your WiFi on Mac, you can simply press the Option key and click the WiFi icon.

    The most common reason for this error is caused by a badly configured network. To solve this issue, navigate to System Preferences, click on Network, and select the WiFi option. Next, you will need to click the drop-down menu found inside the Location box and set it to Automatic.

    Your WiFi shows that it has a self-assigned IP address because of your system’s network setting. You will need to navigate to System Preferences, click Network, select WiFi, click the Advanced option, and enable DHCP.

    This is the name of the password that you use to connect to your WiFi network.

    ncG1vNJzZmivmaOxsMPSq5ypp6Kpe6S7zGikmptfoq6krs6oomavmZu2brjInWScpJ%2BosqV7