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.

  • Thank you, same question. Surprisingly little info out there about this. It seems to turn off after 10 seconds of locking the screen by default. – Matt Feb 14 '19 at 16:24

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

  • 1
    Brilliant! It works! – r_metal Aug 13 '18 at 11:10
  • 1
    Works, thank you! Make sure the cup is lit up (activated), I thought it wasn't working until I clicked on the icon. – Matt Feb 14 '19 at 16:25
  • I did it with with brew install keepingyouawake. – Muhamed Huseinbašić Feb 6 at 16:38

I had the same problem, I used the free app Amphetamine from the app store. After installing, I selected the indefinitely option to keep the screen for awake forever. I locked the screen and the screen is still on.

enter image description here


On Mojave 10.14, I try this

  • Install Caffeine to activate for indefinitely.
  • In 'System Preference'->'Security & Privacy'->'General', check 'Require password...' and set to 1 minutes (anything that is not 'immediately')
  • In 'System Preference'->'Energy Saver', set 'Turn display off..' to never and check 'Prevent computer from sleeping...'
  • using screen saver activated by 'System Preference'->'Desktop & Screen Saver'->'Screen Saver'->'Hot Corners' and set one of the corner to start screen saver.

Then, activate the screen saver by moving mouse to the chosen corner.

This seems to help me.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .