centos 7: control idle (screen blanking) time?

12

2

OS: CENTOS 7 / Gnome 3 GUI

How do I the time that must elapse until the OS thinks that the computer is idle and blanks out the screen?

I am aware of the new Settings | Privacy | Screen Lock feature, however this feature simply prevents the screen from locking, when the screen black. I turned this feature off.

I am also aware of the setterms --powersave off command line feature. This feature prevents blanking the screen and going into power save mode.

I want to control the time. The default is about a minute or so.

With CENTOS 6.5, there was a screensaver applet that controlled the time and behavior. I am aware that GNOME 3 thought nobody in their right mind would want a screensaver, so they got rid of it. The applet, gnome-screensaver, is not possible to install, but as I read does not solve the problem.

Thoughts?

Sarah Weinberger

Posted 2014-09-23T17:18:24.430

Reputation: 523

as an additional answer: Under the "Power" option within Settings area you can control the delay time in steps of: 1 min / 2 min / 3 min / 4 min / 5 min / 8 min / 10 min / 12 min / 15 min / never So found with CentOS 7 and GNOME Version 3.8.4 – codefan-BK – 2015-12-08T10:11:32.630

Answers

19

You can control the delay time with a setting under "Power" option within Settings area.

David

Posted 2014-09-23T17:18:24.430

Reputation: 206

3Sadly, the selection here is 15-minutes or never. The GNOME team needs to put back a user definable field. – Sarah Weinberger – 2015-01-09T15:16:11.697

@SarahWeinberger See Jim's answer for CLI way to set this – Vadim Kotov – 2018-04-12T13:55:27.167

8

GUI way:

1. In the upper right corner "USERNAME" menu select "Settings"
2. Go to "Power"
3. "Power Saving->Blank Screen" = can be set from 1 - 15 minutes

Command line way (to view and set it to 5 minutes):

gsettings get org.gnome.desktop.session idle-delay
gsettings set org.gnome.desktop.session idle-delay 300

Jim

Posted 2014-09-23T17:18:24.430

Reputation: 81

2Note that any number of seconds works Eg. "gsettings set org.gnome.desktop.session idle-delay 3600" to set it to an hour. – James Antill – 2018-01-02T16:32:13.320

3

OS: CentOS Linux 7 Gnome: Version 3.14.2 Virtualization: KVM

I was having the same issues. This is the path I took to resolve the timer issue.

Settings / Privacy / Screen Lock (Click on the Screen Lock tab... the whole thing is the tab :-) ) Select the new timer or turn it off. Problem solved!

KoalaJoe

KoalaJoe

Posted 2014-09-23T17:18:24.430

Reputation: 31

This should be the accepted answer. Thanks!! – WesternGun – 2017-11-16T11:46:07.297

1

Just in case we have any minimal centos users here. Where there is not a GUI. Use the command setterm (command for adjusting various time based settings) -blank (screen blank out from inactivity) 30 (the new length of time you wish the event out to occur). In this case, 30 minutes.

setterm -blank 30

dustbuster

Posted 2014-09-23T17:18:24.430

Reputation: 111