User avatar
solar3000
Posts: 1051
Joined: Sat May 18, 2013 12:14 am

remote admin project, screen blanking adj

Fri Dec 20, 2013 4:44 am

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.
Antikythera

User avatar
jojopi
Posts: 3274
Joined: Tue Oct 11, 2011 8:38 pm

Re: remote admin project, screen blanking adj

Fri Dec 20, 2013 5:02 am

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.

User avatar
solar3000
Posts: 1051
Joined: Sat May 18, 2013 12:14 am

Re: remote admin project, screen blanking adj

Mon Dec 23, 2013 3:49 am

You understand perfectly well. You=genius. Thank you. It works.
Antikythera

Return to “General discussion”