Getting Stretch to stay awake longer

Kernels & Hardware, configuring network, installing services

Getting Stretch to stay awake longer

Postby kendew » 2017-09-22 19:27

Running Debian Stretch with OpenBox WM with LightDM. The screen is blanking too fast for me. I'm targeting three areas to change this: xset, DPMS, and light-locker, the screen locker that gets installed with LightDM. I do not use, nor do I want to, Xscreensaver or other screen savers. My goal is not to disable blanking entirely but to extend it to an hour.

For xset I've written
Code: Select all
xset s 3600 3600 &
in OpenBox's autostart file.
For DPMS I've written a file /etc/X11/xorg.conf.d/10-monitor.conf:
Code: Select all
Section "ServerLayout"
    Identifier "ServerLayout0"
    Option "StandbyTime" "60"
    Option "SuspendTime" "60"
    Option "OffTime"     "60"
    Option "BlankTime"   "60"

My question so far is, so far do I have this right? Could it be better?
The next thing to deal with is light-locker because it seems to have the power to override above settings. I'm not sure how to deal with this. One possibility is to try uninstalling it. But in my OpenBox menu I am using dmtool to lock the screen and wonder if that would be affected. Also I'd prefer to edit rather than eliminate. I know there is a script which sets to DPMS values for Antergos. I wonder what can be done here for Debian.
There is a program called caffeine that I've used to good effect on Arch systems, but the Debian version in the repositories doesn't seem to work well at the moment. Maybe when it gets upgraded?
Code: Select all

** (caffeine:15178): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
/usr/bin/caffeine:25: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GObject, Gtk, GLib

Anyway, rather than caffeine, I'd prefer to just set screen locking or blanking myself.
Any suggestions appreciated.
Posts: 30
Joined: 2014-10-12 19:59

Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests