Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How do I turn off text console screen in software?
Date: Wed, 10 May 2017 23:08:56
Message-Id: 20170510230820.GA29258@waltdnes.org
In Reply to: [gentoo-user] Re: How do I turn off text console screen in software? by Jonathan Callen
1 On Wed, May 10, 2017 at 03:36:05PM -0400, Jonathan Callen wrote
2
3 > Additionally, "setterm --blank force" turns the console off immediately.
4
5 Thank you; that's exactly what I was looking for. My script
6 ~/bin/dark now reads...
7
8 #!/bin/bash
9 sleep 1 && xset -display :0.0 dpms force off
10 setterm --blank force
11
12 ...so I can execute "dark" in either X or a true text console, and it
13 works in both cases.
14
15 --
16 Walter Dnes <waltdnes@××××××××.org>
17 I don't run "desktop environments"; I run useful applications

Replies