How to prevent my screens from turning off, when the screen is locked?

41,746

Solution 1

Open your System Settings. We need to make changes to Power and Brightness & Lock settings.

System Settings

Power Settings

Change the value of Suspend when inactive for to Don't suspend.

Power Settings

Brightness & Lock Settings

Change the value of Turn screen off when inactive for to Never.

Brightness & Lock Settings

This should help to achieve your desired result.

Solution 2

I had to install additional screensaver program XScreenSaver and use it instead of default one because accepted answer had no effect for me on Ubuntu 16.04 and 17.10.

  1. Install XScreenSaver:

     sudo apt install xscreensaver
    
  2. Add this command to Startup Applications:

     xscreensaver -nosplash
    
  3. Disable default Super+L shortcut

    • Install CompizConfig Settings Manager

      sudo apt install compizconfig-settings-manager
      
    • Launch it and click "Ubuntu Unity Plugin"

    • Click the button next to "Key to lock the screen."

    • Disable

  4. Add this command to enable Super+L shortcut for XScreenSaver in System SettingsKeyboardShortcutsCustom Shortcuts:

     xscreensaver-command -lock
    
Share:
41,746

Related videos on Youtube

Andreas Hartmann
Author by

Andreas Hartmann

I am a nerd, or so they say. SOreadytohelp

Updated on September 18, 2022

Comments

  • Andreas Hartmann
    Andreas Hartmann over 1 year

    I would like to have my screen fully powered at all times, but it goes to standby once I lock my PC.

  • Andreas Hartmann
    Andreas Hartmann over 10 years
    Thanks. For my particular issue (my speakers which were powered by the monitor would turn off when the screen gets locked) I just had to disable a setting of the display itself. Still, this answers the question I asked.
  • questionto42standswithUkraine
    questionto42standswithUkraine over 2 years
    How can I add Super (=Windows button / CMD) + L as a custom shortcut if pressing that makes me logout directly :) when I want to set the shortcut? /// found out myself. Go to Settings --> Keyboard Shortcuts --> roughly in the middle, you find the topic System, at the 3rd line, there is Log out with Super+L Shortcut. Click on it and give it something you do not need like Super+;. Then go down to Custom Shortcuts and add Super+L for the custom logout command.