How to prevent MacBook M2 Pro from sleeping with lid closed and display connected?
I've had an M2 pro for work for about 18 months.
This morning, my external display stopped working (connected via USB-C docking station, with DisplayLink). This has happened before, displaylink can be buggy, so I power cycled the dock and the mac, and all working again.
However, now the mac goes to sleep with the lid shut and display is connected. It's never done this to me before, it's always stayed on if an external display is connected.
I've done some googling, and checked various system settings:
- Settings -> Battery -> Options -> Prevent automatic sleeping on power adapter (on)
- Lock screen -> Turn display off on power adapter when inactive (never)
- Display -> Options (could not find any relevant options)
Most google results say use amphetamine, or caffeine. Amphetamine works and stops it sleeping, so I know it's not a fault with my laptop. Just a bug in Apples OS.
Thing is, I don't really want to have to use 3rd party apps here there and everywhere, to get basic functionality working. I want to be able to configure this natively in the OS.
Does anyone know how to fix this?
[Re-Titled By Moderator]