Score:2

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

in flag

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.

in flag
What do you mean by “lockdown”? You want your system to require a password a specified idle time?
ff yeins avatar
in flag
Yes. I want my screen to go blank at 30 minutes of inactivity, but my session to be locked at 5 hours of inactivity.
Score:0
br flag
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.

/usr/share/glib-2.0/schemas/org.gnome.desktop.screensaver.gschema.xml
ff yeins avatar
in flag
I'm trying the command you gave me but I can't set it to work right. The laptop won't lock the session. I'm doing `gsettings set org.gnome.desktop.session idle-delay 10` and `gsettings set org.gnome.desktop.screensaver lock-delay 10`. Am I doing something wrong?
br flag
Yes. In that case you should set it to lock when screen is blank. The first 10sedonds needs some few more seconds to fade the screen to complete blank. So try second command with 20seconds.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.