The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 520     Votes:  2 
Tags: suspend   screen  
Link: 🔍 See Original Answer on Ask Ubuntu 🔗

URL: https://askubuntu.com/q/1000745
Title: Prevent a Workstation Screen from dimming
ID: /2018/01/28/Prevent-a-Workstation-Screen-from-dimming
Created: January 28, 2018    Edited:  January 28, 2018
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Terminal CLI method

OP requests a CLI (Command Line Interface) methodology.

For battery timeout:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout <time_in_seconds>

For AC timeout:

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout <time_in_seconds>

So for both Battery and A/C set the time to 0 (never).

For Login screen:

gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
⇧ Screen turning off when idle even with power settings disabled KASLR disabled: could not find suitable E820 region!  ⇩