I use my 2019 MacBook Pro with a Magic Keyboard via Bluetooth. When the MBP is in sleep mode, I can wake it up by pressing a key on the keyboard.

I would like to change it so key presses on the Magic Keyboard are ignored. I still want it to wake up easily otherwise - if possible by pressing any key on the integrated MBP keyboard, or by some other simple means (i.e. by a quick press on the on/off button).

I do not wish to turn off the Magic Keyboard, to disable Bluetooth or to disconnect the device in the Bluetooth settings.

Is there a way to achieve this? I checked the settings, and found no option to disallow a specific device to influence sleep mode...


Yes, you can achieve this through the Bluetooth settings. See this article for guidance: OSXDaily - Try Preventing the Bluetooth Wake Ability if Your Mac is Randomly Waking from Sleep

In summary:

  1.  Menu --> System Preferences --> Bluetooth
  2. Click the Advanced button (lower right corner)
  3. Uncheck the "Allow Bluetooth devices to wake this computer" option

If the option is not there, it may be related to a bug (feature?) with Monterey. Try setting the preference using terminal:

defaults -currentHost write com.apple.Bluetooth RemoteWakeEnabled 0

  • I do not have this option. If I click "Advanced" (in my German version: "Weitere Optionen..."), I only get to choose whether I want to start the Bluetooth Assistant if no device is available during startup (exactly the two options in the screenshot in that article), and the third option does not show at all for me...
    – AnoE
    Dec 3 '21 at 7:50
  • I think you are encountering a bug in the macos. I don't see it explicitly in your question but your tag makes me assume you are running Monterey. Can you confirm? As far as apple is concerned in their documentation, the option should be there: link Others have the same issue after upgrading link link
    – pmagwood
    Dec 4 '21 at 19:54
  • On a macos 10.13.6 system I was successfully able to edit this checkbox using the terminal. Please try the following to see if it affects the remote wake preference on your system: defaults -currentHost write com.apple.Bluetooth RemoteWakeEnabled 0 . (You can verify the setting was written by executing defaults -currentHost read com.apple.Bluetooth). You can always re-enable the preference by changing the 0 to a 1 in the above code
    – pmagwood
    Dec 4 '21 at 20:11
  • awesome, thanks! And yes, this is indeed on Monterey.
    – AnoE
    Dec 6 '21 at 9:52
  • This doesn't seem to work. Open my Airpod Pro still wake my Macbook pro all the time.
    – Louis Yang

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .