WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: turn off console screen blanking with setterm  (Read 2816 times)

Offline hagna

  • Newbie
  • *
  • Posts: 5
turn off console screen blanking with setterm
« on: April 02, 2015, 03:30:28 PM »
I don't want to use xset which is provided by Xorg or maybe Xlib according to tce-ab, because I am not using X.

I must get setterm so I can do this:

setterm -powersave off -blank 0

and turn console screenblanking off.  It seems like there would be a /proc interface for this, oh well.

tce-ab says ncurses-doc provides setterm, but it doesn't.  It also says util-linux does, but that give an ncurses error.

tc@box:~$ tce-load -i util-linux
sqlite3.tcz: OK
readline.tcz: OK
gdbm.tcz: OK
python.tcz: OK
libudev.tcz: OK
libcap-ng.tcz: OK
util-linux.tcz: OK
tc@box:~$ setterm
setterm: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
tc@box:~$

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: turn off console screen blanking with setterm
« Reply #1 on: April 02, 2015, 07:45:15 PM »
Your dep file is broken. Ncurses is a dep.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: turn off console screen blanking with setterm
« Reply #2 on: April 03, 2015, 01:29:56 AM »
FYI, setterm sends terminal codes, which you can also do manually.
The only barriers that can stop you are the ones you create yourself.

Offline hagna

  • Newbie
  • *
  • Posts: 5
Re: turn off console screen blanking with setterm
« Reply #3 on: April 03, 2015, 01:43:51 PM »
In case people from the future would like to know:

1. echo ^[[9;0] does the trick, and you make ^[ by pressing CTRL+V then ESC.

setterm -powersave off -blank 0 | hexdump -c will tell you the ANSI escape sequence to use.