20
  • open MacBook Pro + connected external display -> no power cable required
  • closed MacBook Pro + connected external display -> power cable required

Why? Why not allow or require it in both cases? Why require the power cable in the case, in which the battery will last longer?

2 Answers2

14

Why? Why not allow or require it in both cases?

The default behavior when you close the lid on your MacBook is to put it to sleep. According to Apple:

To further expand on this point, let's look at the default behavior when the lid is open(ed) - the MacBook is awake. This makes sense as this is the generally accepted method of using a notebook. The external display, and USB ports are also, by the inherent nature of the computer being awake, functional.

You can save energy by putting your Mac to sleep when you're not using it. When your Mac is sleeping, it's on but consumes less power. And waking your Mac from sleep is quicker than starting it up after it's been shut down. To put your Mac to sleep immediately, do one of the following:

  • Choose Apple () menu > Sleep.
  • If you use a Mac notebook computer, close its built-in display.
  • Press Command (⌘)–Media Eject(⏏).
  • Tap the power button on your computer.

(Emphasis mine)

Having the AC adapter connected is just one of the components needed to override the default behavior; you need to have the AC power, keyboard and mouse connected, as well as a monitor. See Use your Mac notebook computer in closed-display mode with an external display for more details.

Why did Apple do it this way? Ultimately, only they can give you the official answer, but a little deduction tells us that if closing the lid puts the machine to sleep, how would it know to stay awake if the user wanted to operate in closed-clamshell mode? Answer: attach a monitor and the AC adapter.

Can you override the default behavior

Yes. Using pmset

To disable wake/sleep on lid state:

sudo pmset -a lidwake 0

To undo the last setting

sudo pmset -a lidwake 1

Though you can do this, I don't recommend it, because disabling this feature means when you close the lid on your laptop it remains awake; even when you pack it in your laptop bag and put it in the overhead compartment. It (the battery) will most likely be DOA, plus it tends to get quite hot in that scenario, shortening the life of the battery.

Allan
  • 101,432
  • 1
    Thank you @Allan. I think you give an answer to what, but not to the why. You explain what needs to be done in order to use the mac in closed-clamshell mode, but not why they decided that. I mean, it should be possible to override the default behavior by having a keyboard and mouse only. – Alexander Popov Aug 25 '17 at 13:20
  • 1
    The why is explained in my very first sentence - it's the default behavior. And yes, you can override the default behavior. – Allan Aug 25 '17 at 13:28
  • O.K., so let me paraphrase my question: "When your mac is connected to an external monitor and to the power and you close the lid, you can wake up your mac with the mouse. When your mac is connected to an external monitor and is NOT connected to the power, you can wake up your mac with the mouse, but in a few seconds it goes back to sleep. Why?" – Alexander Popov Aug 25 '17 at 13:45
  • Just to be clear, the question is no longer about why an AC adapter is required in closed clamshell mode, but why the different wake behavior depending on the presence of an AC adapter. Is this correct? – Allan Aug 25 '17 at 13:49
  • I think we are talking now about what words to use and how to formulate the question, but basically, it boils down to the same thing. Closing the lid causes the mac to go to sleep. O.K., cool. So I have an external monitor, I need to wake it up. So I click the mouse and it wakes up. But in a few seconds, it goes back to sleep, if it's not plugged in. Why? I mean, clearly they have a way to know, that user would like to have their laptop awake (an external monitor is attached) and thus override the default behavior of going to sleep. Why would they require you to plug it in? – Alexander Popov Aug 25 '17 at 13:56
  • Why? I mean, clearly they have a way to know, that user would like to have their laptop awake (an external monitor is attached). Yes. It's called attaching the power cable. This is how Apple chose to do it. Lid closed, on battery = go to sleep. Open lid = wake. Lid already open = can be put to sleep. Regardless of what you do with your mouse, those conditions don't change until you manually change them. – Allan Aug 25 '17 at 14:12
  • Just like to point out I can have my apple ext display connected with keyboard and mouse - no power and lid shut and it works fine (no dropouts but I am aware of the battery - usually small tasks...) . No I did not do any special changes to any settings ... And when it has power connected it works , sleeps as usual. When it is not connected to ext display it behaves as it should sleep / wake etc. – Solar Mike Aug 25 '17 at 19:38
  • 1
    Claiming someone is being emotional is just a way to attack the other person. Whether I am emotional or not has no bearing on whether I am correct. This logical fallacy is commonly known as tone policing, and actually is an emotional argument, not a logical one. – trlkly Aug 25 '17 at 19:52
  • 1
    The OP did not change the question. He pointed out that you did not fully answer it by pointing out what was missing. You did not actually answer the question "why." The word "why" means "What is the logic behind the decision?" You did not answer that question. You simply say "it's the default." If you asked me "why is this word offensive" and I just said "It's the default," you would not have answered my question either. – trlkly Aug 25 '17 at 19:54
  • 1
    And you are doing something that should not be done on a Q&A site. You are arguing that your answer is correct, rather than trying to fix it. That is using the meta to try and get points rather than making sure your answer is the best it can be. It is a downside of gamification, so I choose to downvote this to try and stop this anti-pattern that makes the site less useful. I can't tell if your answers are really the best, or you just argued your way into getting people to think it was. – trlkly Aug 25 '17 at 19:57
  • Doesn't seem to work on Mojave, MacBook Pro 2015 – EliadL Jan 13 '19 at 11:04
  • 3
    Not working on Catalina either. – dlsso Mar 04 '20 at 19:41
  • Not working in Big Sur. – eethirteenzz Sep 27 '22 at 03:25
5

The why only Apple can answer. There's no technical reason why it cannot be done.

However, I would guess that the reason is that if you have an open MacBook Pro, you know that you're using it and draining energy.

If you have a closed MacBook Pro, the average home user might think that the laptop is "turned off" and not consuming energy. I.e. you could create a situation where the user runs low on battery even though they thought the system was passive.

jksoegaard
  • 77,783