lkml.org 
[lkml]   [2003]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRe: Turning off automatic screen clanking
    Yes. This is f*ing absurb. A default that kills the screen and the
requirement to send some @!_$%!@$ sequences to turn it off. This
is absolute crap, absolutely positively, with no possible justification
whatsoever. If I made an ioctl, it will probably be rejected.........

What language. What about the below (not compiled, not tested)?

diff -u --recursive --new-file -X /linux/dontdiff a/drivers/char/vt.c b/drivers/char/vt.c
--- a/drivers/char/vt.c Mon Jun 23 04:43:32 2003
+++ b/drivers/char/vt.c Tue Jul 29 15:36:58 2003
@@ -2294,6 +2294,12 @@
case TIOCL_BLANKEDSCREEN:
ret = console_blanked;
break;
+ case TIOCL_SETBLANKINTERVAL:
+ if (get_user(data, (char *)arg+1))
+ ret = -EFAULT;
+ else
+ blankinterval = ((unsigned)data)*60*HZ;
+ break;
default:
ret = -EINVAL;
break;
diff -u --recursive --new-file -X /linux/dontdiff a/include/linux/tiocl.h b/include/linux/tiocl.h
--- a/include/linux/tiocl.h Sun Jun 15 01:41:07 2003
+++ b/include/linux/tiocl.h Tue Jul 29 15:34:39 2003
@@ -34,5 +34,6 @@
#define TIOCL_SCROLLCONSOLE 13 /* scroll console */
#define TIOCL_BLANKSCREEN 14 /* keep screen blank even if a key is pressed */
#define TIOCL_BLANKEDSCREEN 15 /* return which vt was blanked */
+#define TIOCL_SETBLANKINTERVAL 16 /* in minutes; 0: don't blank */

#endif /* _LINUX_TIOCL_H */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.061 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site