On Wed, May 10, 2017 at 9:03 AM, Walter Dnes <waltd...@waltdnes.org> wrote:
>   I'd prefer to avoid hitting the monitor display on/off too often.  In
> an xterm, the script...
>
> #!/bin/bash
> sleep 1 && xset -display :0.0 dpms force off
>
> ...shuts the screen off.  Is there an equivalant command for a text
> console (e.g. where you end up if you hit CTRL-ALT-F1)?
>
> --
> Walter Dnes <waltd...@waltdnes.org>
> I don't run "desktop environments"; I run useful applications
>

`setterm -blank VALUE` where VALUE is specified in minutes. A value of
zero disables blanking. You can also add "consoleblank=0" to your
kernel's command line. It's probably worth looking at the other
`setterm` options.

You can read /sys/module/kernel/parameters/consoleblank to see if your
changes applied properly.

Reply via email to