How can I configure my Ubuntu laptop and set the blank screen and pc lockdown timers using the terminal?

I'm just lost. I found out that gsettings set org.gnome.desktop.session idle-delay lets me set the blank screen timer, but I can't find how to set the timer for the lockdown. The only solutions I find are on how to set it on or off.

I tried searching for gsettings commands but they are so many that I get lost. Also I couldn't find anything regarding setting a timer for the lockdown feature.

Answers 1

  • gsettings set org.gnome.desktop.screensaver lock-delay <time in seconds>

    The above command sets what you are looking for. The above setting also depends on other keys. You can find out more by reading this file.


Related Questions