Open System Settings
Click Lock Screen
Set “Turn display off on battery when inactive” to a longer time or Never
Set “Turn display off on power adapter when inactive” to a longer time or Never
Go to Battery
Turn off “Put hard disks to sleep when possible” if available
Turn on “Prevent automatic sleeping on power adapter when the display is off” if available
Keep the lid open
Plug in the MacBook to power
Use Terminal command: `caffeinate`
Use Terminal command: `caffeinate -dimsu`
Use a third-party app like Amphetamine
Keep an active video call or media playing if needed
