1 |
On 05/10/2017 12:59 PM, R0b0t1 wrote: |
2 |
> On Wed, May 10, 2017 at 9:03 AM, Walter Dnes <waltdnes@××××××××.org> wrote: |
3 |
>> I'd prefer to avoid hitting the monitor display on/off too often. In |
4 |
>> an xterm, the script... |
5 |
>> |
6 |
>> #!/bin/bash |
7 |
>> sleep 1 && xset -display :0.0 dpms force off |
8 |
>> |
9 |
>> ...shuts the screen off. Is there an equivalant command for a text |
10 |
>> console (e.g. where you end up if you hit CTRL-ALT-F1)? |
11 |
>> |
12 |
>> -- |
13 |
>> Walter Dnes <waltdnes@××××××××.org> |
14 |
>> I don't run "desktop environments"; I run useful applications |
15 |
>> |
16 |
> |
17 |
> `setterm -blank VALUE` where VALUE is specified in minutes. A value of |
18 |
> zero disables blanking. You can also add "consoleblank=0" to your |
19 |
> kernel's command line. It's probably worth looking at the other |
20 |
> `setterm` options. |
21 |
> |
22 |
> You can read /sys/module/kernel/parameters/consoleblank to see if your |
23 |
> changes applied properly. |
24 |
> |
25 |
> |
26 |
|
27 |
|
28 |
Additionally, "setterm --blank force" turns the console off immediately. |
29 |
|
30 |
-- |
31 |
Jonathan Callen |