Skip to main content
edited body
Source Link
George Shuklin
  • 710
  • 1
  • 7
  • 10

I was really bluffedbuffled by this problem. All tricks above with using setterm and redirect from/to /dev/tty0 didn't worked from my ssh.

Then I realized a way to disable it:

TERM=linux setterm -blank 0 -powerdown 0  -powersave off >/dev/tty0 </dev/tty0

TERM=linux replaces default TERM (which is xterm-256color on my machine), and helps setterm to query proper parameters from tty0.

You can check result by

cat /sys/module/kernel/parameters/consoleblank

It should be 0. If it is 600, trick hasn't worked out.

I was really bluffed by this problem. All tricks above with using setterm and redirect from/to /dev/tty0 didn't worked from my ssh.

Then I realized a way to disable it:

TERM=linux setterm -blank 0 -powerdown 0  -powersave off >/dev/tty0 </dev/tty0

TERM=linux replaces default TERM (which is xterm-256color on my machine), and helps setterm to query proper parameters from tty0.

You can check result by

cat /sys/module/kernel/parameters/consoleblank

It should be 0. If it is 600, trick hasn't worked out.

I was really buffled by this problem. All tricks above with using setterm and redirect from/to /dev/tty0 didn't worked from my ssh.

Then I realized a way to disable it:

TERM=linux setterm -blank 0 -powerdown 0  -powersave off >/dev/tty0 </dev/tty0

TERM=linux replaces default TERM (which is xterm-256color on my machine), and helps setterm to query proper parameters from tty0.

You can check result by

cat /sys/module/kernel/parameters/consoleblank

It should be 0. If it is 600, trick hasn't worked out.

Source Link
George Shuklin
  • 710
  • 1
  • 7
  • 10

I was really bluffed by this problem. All tricks above with using setterm and redirect from/to /dev/tty0 didn't worked from my ssh.

Then I realized a way to disable it:

TERM=linux setterm -blank 0 -powerdown 0  -powersave off >/dev/tty0 </dev/tty0

TERM=linux replaces default TERM (which is xterm-256color on my machine), and helps setterm to query proper parameters from tty0.

You can check result by

cat /sys/module/kernel/parameters/consoleblank

It should be 0. If it is 600, trick hasn't worked out.