Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Wokis

macrumors 6502a
Original poster
Jul 3, 2012
931
1,276
Hey! MBA M2.

So I've run into this odd issue. And it just MIGHT be from me doing something in the console I can't remember.

If any speaker, airpod, etc is paired to my device but isn't in range (say I'm at work and the speaker is at home), the macbook simply won't stay in standby. It will wake-up one second after the screen first goes off, and reset the timeout cycle on going into standby again. Rinse, repeat forever.

Unpairing all audio devices (means I can't have any airpods on my icloud account, even) "solves" the issue.

Other bluetooth-peripherals I've tested are fine and don't seem to cause this. Just audio-related products.

It started with battery-draining "darkwakes" (aka the macbook wakes up but doesn't turn on the screen), and then is when I started troubleshooting with running the commands

sudo pmset -a tcpkeepalive 0
sudo pmset -a powernap 0
sudo pmset -a ttyskeepawake 0
sudo pmset -a womp 0

and, probably related or not, now it doesn't even want to stop at DarkWake anymore. It's always a full wake, screen on and everything.

Any ideas?



excerpt from log:
2023-03-27 22:43:44 +0200 DarkWake DarkWake from Deep Idle [CDN] : due to SMC.OutboxNotEmpty smc.70070000 wifibt bluetooth-pcie/HID Activity Using BATT (Charge:93%) 1 secs
2023-03-27 22:43:45 +0200 Wake DarkWake to FullWake from Deep Idle [CDNVA] : due to HID Activity Using BATT (Charge:93%) 334 secs

these two lines on repeat pretty much.
 
Last edited:
I had a slightly different issue: my m1 mini would wake up any time I turned on a paired BT speaker. I tried this

Code:
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist DontPageAudioDevices 1

which supposedly prevents automatic connection to BT audio devices, but it seems to do nothing. You could try it (from the terminal, then reboot) and see if it works for you.

What I ended up doing was made a keyboard maestro macro to turn off BT when the system is about to sleep and turn it back on when the system wakes. This keeps the BT speaker from waking up the mac. Of course the drawback is I would not be able to wake the mac with a BT mouse or kbd, either.

There may be a way to do it with a built in tool like automator but I have keyboard maestro so that's what I used.
 
  • Like
Reactions: Wokis
I think I found the culprit, or a partial solution. Unfortunately, the command above did not help, but thanks anyway!

Seems a rogue Logitech Bluetooth to RCA adapter is the culprit. Even though it's not paired with my MBA, it somehow disrupts sleep of it. Pulling its plug immediately resulted in my MBA staying asleep.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.