19

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

Andreas Hartmann
  • 2,613
  • 7
  • 29
  • 47

2 Answers2

15

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.

Aditya
  • 13,416
  • 2
    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. – Andreas Hartmann Sep 25 '13 at 13:02
3

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
    
Error404
  • 7,440
janot
  • 1,672
  • 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. – questionto42 Feb 03 '22 at 09:12