mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andries.Brouwer@cwi.nl
To: clepple@ghz.cc, root@chaos.analogic.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Turning off automatic screen clanking
Date: Tue, 29 Jul 2003 15:02:52 +0200 (MEST)	[thread overview]
Message-ID: <UTC200307291302.h6TD2q310517.aeb@smtp.cwi.nl> (raw)

    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 */

             reply	other threads:[~2003-07-29 13:04 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-29 13:02 Andries.Brouwer [this message]
2003-07-29 13:53 ` Richard B. Johnson
     [not found] <eFZJ.6X7.29@gated-at.bofh.it>
     [not found] ` <eH5i.7XC.15@gated-at.bofh.it>
     [not found]   ` <eNaA.4vE.1@gated-at.bofh.it>
     [not found]     ` <eRHk.85K.5@gated-at.bofh.it>
     [not found]       ` <fmBF.48z.41@gated-at.bofh.it>
     [not found]         ` <fotH.5J2.17@gated-at.bofh.it>
     [not found]           ` <frB6.8gE.7@gated-at.bofh.it>
2003-08-03 10:40             ` Julien Oster
2003-08-04  0:56               ` Ian Hastie
2003-08-05 18:52               ` Timothy Miller
  -- strict thread matches above, loose matches on Subject: below --
2003-07-31 20:08 Petr Vandrovec
2003-07-30  6:14 Erik Andersen
2003-07-30 13:07 ` Richard B. Johnson
2003-07-31 19:15   ` Norberto BENSA
2003-07-31 21:50     ` Zwane Mwaikambo
2003-07-29 13:56 Andries.Brouwer
2003-07-28 20:00 Richard B. Johnson
2003-07-28 20:01 ` Ben Collins
2003-07-28 20:08 ` Frank v Waveren
2003-07-28 20:25   ` Richard B. Johnson
2003-07-28 20:45     ` Charles Lepple
2003-07-29 11:06       ` Richard B. Johnson
2003-07-29 16:51         ` James Simmons
2003-07-29 17:01           ` Andries Brouwer
2003-07-29 17:54           ` Richard B. Johnson
2003-07-29 18:31             ` Alan Cox
2003-07-30  0:17             ` Zwane Mwaikambo
2003-07-30  1:25               ` Jamie Lokier
2003-07-30  1:37                 ` Zwane Mwaikambo
2003-07-30  7:14                   ` Alex Riesen
2003-07-30  8:00                     ` David Lang
2003-07-31 14:33                   ` Timothy Miller
2003-07-31 14:57                     ` Zwane Mwaikambo
2003-07-31 15:20                       ` Jamie Lokier
2003-07-31 21:41                         ` Zwane Mwaikambo
2003-08-01 15:25                           ` Jamie Lokier
2003-08-01 17:11                             ` Zwane Mwaikambo
2003-07-30  1:40                 ` Petr Vandrovec
2003-07-30  2:35                   ` Petr Vandrovec
2003-07-30  5:22               ` Ville Herva
2003-07-30  5:44                 ` Gene Heskett
2003-07-31 14:36                 ` Timothy Miller
2003-07-31 16:20                   ` Herbert Pötzl
2003-07-31 16:56                     ` Mike Dresser
2003-07-31 19:55                     ` Timothy Miller
2003-07-31 23:35                       ` Ian Hastie
2003-07-30  6:03               ` jw schultz
2003-07-30  2:16             ` Miles Bader
2003-07-30  5:45               ` jw schultz
2003-07-28 20:19 ` Samuel Thibault
2003-07-28 20:27 ` Andries Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=UTC200307291302.h6TD2q310517.aeb@smtp.cwi.nl \
    --to=andries.brouwer@cwi.nl \
    --cc=clepple@ghz.cc \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®