Disable MacBook screen turn off at locked screen
Is it possible to prevent OSX from turning off displays when on the lockscreen? I'll lock my MBP with 2 external monitors, leave for 2-3 minutes, and come back and the monitor will be off. It then takes a bit of time for them to all come back on. I've tried Caffeine but it only appears to work when unlocked.
Solution 1:
There is a free and open-source tool named KeepingYouAwake that can be used as per your requirements.
Having KeepingYouAwake activated will prevent the screen from turning off when lock screen mode is activated.
Download the latest version here.
or install it via cask:
brew cask install keepingyouawake.
This utility will not harm your Mac because it is based on an official command-line tool by Apple. BUT I cannot guarantee anything, so use this tool AT YOUR OWN RISK.
Solution 2:
Settings > Power Management has the options that puts the display to sleep after some time.
It has two independent settings to be used if connected to a power source or using battery only.
Tweak these settings as per your requirement.