Page 1 of 1

remote admin project, screen blanking adj

Posted: Fri Dec 20, 2013 4:44 am
by solar3000
so we already know that setterm -blank 10 in /etc/kbd/ will blank console after 10 minutes.

I'm off site. So how do I setterm the remote pi running raspbian? Also I can't just reboot the machine just because I feel like it.

Re: remote admin project, screen blanking adj

Posted: Fri Dec 20, 2013 5:02 am
by jojopi
If I understand the question correctly:

Code: Select all

sudo sh -c 'TERM=linux setterm -blank 0 >/dev/tty0'
TERM=linux is to convince setterm that it is on a Linux console, otherwise it will refuse to output Linux-specific codes. >/dev/tty0 directs the output to the currently active virtual console. The convoluted sudo syntax is because otherwise the redirection would be attempted before the privileges were escalated.

Re: remote admin project, screen blanking adj

Posted: Mon Dec 23, 2013 3:49 am
by solar3000
You understand perfectly well. You=genius. Thank you. It works.