Re: Two questions

From: Richard B. Johnson (
Date: Fri Jun 02 2000 - 06:58:31 EST

On Fri, 2 Jun 2000, Andries Brouwer wrote:

> On Thu, Jun 01, 2000 at 04:05:22PM -0400, Richard B. Johnson wrote:
> > How do I turn off console blanking
> Try "setterm -blank 0".

Pretty hard to do without including setterm in PROM on an embedded
system. `strace` shows that setterm just sends an escape-sequence. It
does not use an ioctl for this function.

This does it:

const char blk[]={27, '[', '9', ';', '0', ']', 0};

However, including this in the code to keep the console on is, err...
somewhat hokey.

Looking through the console code, I see how to keep the screen from
timing out. However, I can't seem to locate an external entry point.

Basically, I was looking for the functional equivalent of:

                ioctl(1, DO_NOT_BLANK_THIS_EVER);

Dick Johnson

Penguin : Linux version 2.3.41 on an i686 machine (800.63 BogoMips).

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:15 EST