Shell – Prevent monitors from going to sleep in lock screen on GNOME

displayportfedoragnomegnome-shellgnome3

I have two monitors running on my Fedora 22 machine, however due to this bug sometimes the second monitor will not wake up after the computer goes to sleep, requiring me to unplug the DisplayPort cable and plug it back it after a few seconds.

I can set GNOME to never put my screens to sleep, however I cannot simply leave my computer unlocked all of the time when I'm not at my desk, so I'm curious if I can have my computer be locked, but the screens not go to sleep?

I'm using Fedora Workstation 22 with GNOME Shell 3.16.2.

Best Answer

One solution is to use slock (apt-get install suckless-tools) which does not put the display to sleep. You'll need xautolock if you want to run it automatically.

Related Question