Lock Mac without turning off the screen I have observed that the screen on my MacBook Pro turns off a few seconds after I activate lock screen.

Is there any way to keep the screen of my MacBook Pro on for an unlimited duration of time after I lock the screen? Or at least an hour as a workaround.
KeepingYouAwake is a free and open source app that can be used for this purpose.

The intended purpose of this app is to prevent your Mac from going into sleep. You can activate this app from 5/15/30 minutes to 1/2/5 hours to indefinite duration.

Having KeepingYouAwake activated will prevent screen from turning off when lock screen mode is activated.

KeepingYouAwake can be easily installed using Homebrew by running the following command:

brew cask install keepingyouawake