lkml.org 
[lkml]   [2003]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Turning off automatic screen clanking
Date
Richard B. Johnson wrote:
> The 'kindest and gentlist' approach was to simply set the timer
> variable "blankinterval" (line 165 in console.c) to 0 instead of
> 10*60*HZ. This doesn't work. The screen still blanks in 10 minutes.

console.c line 2491 (function con_init:)

init_timer(&console_timer);
console_timer.function = blank_screen;
if (blankinterval) {
mod_timer(&console_timer, jiffies + blankinterval);
}


So the trick appears to be to not initialize console_timer. Then, on line
1283 (function setterm_command:)

case 9: /* set blanking interval */
blankinterval = ((par[1] < 60) ? par[1] : 60) * 60 * HZ;
poke_blanked_console();
break;


Do some "magic" to initialize console_timer if it is not.

I think blanking by default is bad. Many times it bite me in the past. Same
old history: only monitor, no keyboard, couldn't see what's going on until I
plugged a keyboard (which of course, was in another room.)

BTW:

Zwane Mwaikambo wrote:
> On Tue, 29 Jul 2003, Richard B. Johnson wrote:
> > If the machine had blanking disabled by default, then the
> > usual SYS-V startup scripts could execute setterm to enable
> > it IFF it was wanted.
>
> optimise for the common case, just fix your box and be done with it.

*IF* Linux primary target is the server market then, what kind of optimization
in console blanking if you need to hack your init script and insert "setterm
-blank 0" somewhere??



Regards,
Norberto

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.251 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site