[comp.os.minix] screen blankers

kjh@nunki.usc.edu (Kenneth J. Hendrickson) (10/22/90)

Has anybody implemented a screen blanker for Minix?  I've done some
thinking about it, and I think it would require just a small amount of
code in the keyboard and screen device driver in the kernel.  If nobody
has done it yet, and nobody will do it before Christmas, then maybe I'll
get around to it then.  If somebody has done it, please let me (and the
net) know.  Thanks.

Ken Hendrickson N8DGN/6      kjh@usc.edu      ...!uunet!usc!pollux!kjh

duncan@spectre.vlsi.sgi.com (Donald Duncan) (10/22/90)

In article <12681@chaph.usc.edu>, kjh@nunki.usc.edu (Kenneth J. Hendrickson) writes:
> Has anybody implemented a screen blanker for Minix?  I've done some
> thinking about it, and I think it would require just a small amount of
> code in the keyboard and screen device driver in the kernel.  If nobody
> has done it yet, and nobody will do it before Christmas, then maybe I'll
> get around to it then.  If somebody has done it, please let me (and the
> net) know.  Thanks.
> 
> Ken Hendrickson N8DGN/6      kjh@usc.edu      ...!uunet!usc!pollux!kjh


Yes - I have implemented one.  It required simple changes to
kernel/{clock.c, keyboard.c}.  I'll try to get the diffs posted this
week.

----------------------------
~Don WB6QMS
duncan@sgi.com

duncan@spectre.vlsi.sgi.com (Donald Duncan) (10/24/90)

In article <12681@chaph.usc.edu>, kjh@nunki.usc.edu (Kenneth J. Hendrickson) writes:
> Has anybody implemented a screen blanker for Minix?  I've done some
> thinking about it, and I think it would require just a small amount of
> code in the keyboard and screen device driver in the kernel.  If nobody
> has done it yet, and nobody will do it before Christmas, then maybe I'll
> get around to it then.  If somebody has done it, please let me (and the
> net) know.  Thanks.
> 
> Ken Hendrickson N8DGN/6      kjh@usc.edu      ...!uunet!usc!pollux!kjh
> 

Here is a uuencoded tar file for pc minix 1.5:
	kernel/{clock.c,keyboard.c,console.c,const.h,glo.h}.cdif

The screen blanks after about 5 minutes of keyboard inactivity.
The screen is restored by typing any key.  You can change the
timeout value by modifying DISPLAY_TIMEOUT in kernel/const.h .
Send mail if you have difficulties.


--snip snip--
begin 664 cdif.uue
M8VQO8VLN8RYC9&EF````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````"`@(#8V-"``("`R,C`P(``@("`@,3(@`"`@("`@("`R-3<R
M("`T-S$Q,30R-C<U("`@-S0V-P`@````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````````````````S-S<W-S<W-S<W-R``
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````J*BH@+BXO+BXO+BXO<C$N-2]U<W(O<W)C+W-Y
M<R]K97)N96PO8VQO8VLN8PE4=64@3V-T(#(S(#$T.C(V.C4W(#$Y.3`*+2TM
M('-Y<R]K97)N96PO8VQO8VLN8PE4=64@3V-T(#(S(#$U.C`X.C0T(#$Y.3`*
M*BHJ*BHJ*BHJ*BHJ*BHJ"BHJ*B`U-2PV,"`J*BHJ"BTM+2`U-2PV,B`M+2TM
M"B`@4%))5D%412!T:6UE7W0@;F5X=%]A;&%R;3L)+RH@<')O8F%B;&4@=&EM
M92!O9B!N97AT(&%L87)M("HO"B`@4%))5D%412!T:6UE7W0@<&5N9&EN9U]T
M:6-K<SL)+RH@=&EC:W,@<V5E;B!B>2!L;W<@;&5V96P@;VYL>2`J+PH@(%!2
M259!5$4@=&EM95]T(')E86QT:6UE.PDO*B!R96%L('1I;64@8VQO8VL@*B\*
M*R!054),24,@=&EM95]T(&1I<W!L87ET:6UE.PDO*B!D:7-P;&%Y('1I;65O
M=70@=&EM97(@*B\**R!054),24,@=&EM95]T(&1T:6UE;W5T(#T@1$E34$Q!
M65]424U%3U54.PDO*B!D:7-P;&%Y('1I;65O=70@=&EM97(@*B\*("!04DE6
M051%(&EN="!S8VAE9%]T:6-K<R`](%-#2$5$7U)!5$4["2\J(&-O=6YT97(Z
M('=H96X@,"P@8V%L;"!S8VAE9'5L97(@*B\*("!04DE6051%('-T<G5C="!P
M<F]C("IP<F5V7W!T<CL)+RH@;&%S="!U<V5R('!R;V-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Y=&4@*B\*('!E;F1I;F=?=&EC:W,["2\J("HO
M"BL@"2`@("`@:68@*&1I<W!L87ET:6UE(#P](#`I('L**R`)"61I<W!L87ET
M:6UE(#T@+3$["BL@"0ES8W)?9&ES86)L92`H*3L**R`)("`@("!]"BL@("`@
M("!]"B`@("`@("!P96YD:6YG7W1I8VMK97EB;V%R9"YC+F-D:68`````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````("`@-C8T(``@(#(R
M,#`@`"`@("`Q,B``("`@("`@("`V-S4@(#0W,3$Q-#(W,#$@(#$P,30T`"``
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````#,W-S<W-S<W-S<W(```````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````````````````````````````"HJ*B`N
M+B\N+B\N+B]R,2XU+W5S<B]S<F,O<WES+VME<FYE;"]K97EB;V%R9"YC"51U
M92!/8W0@,C,@,30Z,3DZ,#4@,3DY,`HM+2T@<WES+VME<FYE;"]K97EB;V%R
M9"YC"51U92!/8W0@,C,@,34Z,#@Z-#@@,3DY,`HJ*BHJ*BHJ*BHJ*BHJ*BH*
M*BHJ(#(V,RPR-C@@*BHJ*@HM+2T@,C8S+#(W,B`M+2TM"B`@("`J:V(M/FEP
M='(@/2!C;V1E.PH@("`@:68@*&MB+3YI<'1R(#P@:V(M/FEB=69E;F0I('L*
M("`);&]C:R@I.PD)"2\J('!R;W1E8W0@<VAA<F5D('9A<FEA8FQE("HO"BL@
M"6EF("AD:7-P;&%Y=&EM92`\(#`I('L**R`)"7-C<E]E;F%B;&4@*"D["BL@
M"7T**R`)9&ES<&QA>71I;64@/2!D=&EM96]U=#L*("`)='1Y7V5V96YT<R`K
M/2!%5D5.5%]42%)%4TA/3$0["2\J($,@9&]E<VXG="!G=6%R86YT964@871O
M;6EC("HO"B`@"75N;&]C:R@I.PH@(`DK*VMB+3YI<'1R.PIM92`]("TQ.PHK
M(`D)<V-R7V1I<V%B;&4@*"D["BL@"2`@("`@?0HK("`@("`@?0H@("`@("`@
M<&5N9&EN9U]T:6-K8V]N<V]L92YC+F-D:68`````````````````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````"`@(#8V-"``("`R,C`P(``@("`@,3(@
M`"`@("`@("`T-3`T("`T-S$Q,30R-C<V("`Q,#`S-``@````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````````````````````````````````S
M-S<W-S<W-S<W-R``````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````````````J*BH@+BXO+BXO+BXO<C$N
M-2]U<W(O<W)C+W-Y<R]K97)N96PO8V]N<V]L92YC"51U92!/8W0@,C,@,30Z
M,C<Z,#,@,3DY,`HM+2T@<WES+VME<FYE;"]C;VYS;VQE+F,)5'5E($]C="`R
M,R`Q-3HP.#HT-2`Q.3DP"BHJ*BHJ*BHJ*BHJ*BHJ*@HJ*BH@."PQ,R`J*BHJ
M"BTM+2`X+#$U("TM+2T*("`C:6YC;'5D92`B='1Y+F@B"B`@"B`@+RH@1&5F
M:6YI=&EO;G,@=7-E9"!B>2!T:&4@8V]N<V]L92!D<FEV97(N("HO"BL@(V1E
M9FEN92!6241?14Y!0DQ%"0DP>#!$"2\J(&UA<VL@9F]R(&5N86)L92`J+PHK
M("-D969I;F4@5DE$7T1)4T%"3$4)"3!X,#4)+RH@;6%S:R!F;W(@9&ES86)L
M92`J+PH@("-D969I;F4@0U]6241?34%32R`@("`P>#-&1D8)+RH@;6%S:R!F
M;W(@,39+('9I9&5O(%)!32`J+PH@("-D969I;F4@35]6241?34%32R`@("`P
M>#!&1D8)+RH@;6%S:R!F;W(@(#1+('9I9&5O(%)!32`J+PH@("-D969I;F4@
M0U]2151204-%("`@("`P>#`S,#`)+RH@:&]W(&UA;GD@8VAA<F%C=&5R<R!T
M;R!D:7-P;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E("HO"BL@("!O=71?8GET92AM;V1E7W!O<G0L
M(%9)1%]%3D%"3$4I.PDO*B!S970@=&AE(&UO9&4@<F5G:7-T97(@*B\**R`@
M('5N;&]C:R@I.PHK('T**R`**R!054),24,@=F]I9"!S8W)?9&ES86)L92`H
M*0HK('L**R`@(&QO8VLH*3L)"0DO*B!T<GD@=&\@<W1O<"!H+W<@;&]A9&EN
M9R!I;BUB971W965N('9A;'5E("HO"BL@("!O=71?8GET92AM;V1E7W!O<G0L
M(%9)1%]$25-!0DQ%*3L)+RH@<V5T('1H92!M;V1E(')E9VES=&5R("HO"BL@
M("!U;FQO8VLH*3L*("!]"BHJ(#@P,BPX,#4@*BHJ*@HM+2T@.#$P+#@R-R`M
M+2TM"B`@("!S971?-C@T-2A6241?3U)'+"`P*3L*("`@('!R:6YT9B@B7#`S
M,UM(7#`S,UM*)7-W87)E('-C<F]L;&EN9R!E;F%B;&5D+EQN(BP*("`)('-O
M9G1S8W)O;&P@/R`B4V]F="(@.B`B2&%R9"(I.PHK('T**R`**R!054),24,@
M=F]I9"!S8W)?96YA8FQE("@I"BL@>PHK8V]N<W0N:"YC9&EF````````````
M````````````````````````````````````````````````````````````
M`````````````````````````````````````````````"`@(#8V-"``("`R
M,C`P(``@("`@,3(@`"`@("`@("`@-3(Q("`T-S$Q,30R-S`T("`@-S0W,``@
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````S-S<W-S<W-S<W-R``````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````````````````````````````J*BH@
M+BXO+BXO+BXO<C$N-2]U<W(O<W)C+W-Y<R]K97)N96PO8V]N<W0N:`E4=64@
M3V-T(#(S(#$U.C,T.C4W(#$Y.3`*+2TM('-Y<R]K97)N96PO8V]N<W0N:`E4
M=64@3V-T(#(S(#$U.C,T.C0P(#$Y.3`**BHJ*BHJ*BHJ*BHJ*BHJ"BHJ*B`Q
M-3,L,34U("HJ*BH*+2TM(#$U,RPQ-38@+2TM+0H@("-E;F1I9@H@(`H@("-D
M969I;F4@<')I;G1F("`@("`@("!P<FEN=&L)+RH@=&AE(&ME<FYE;"!R96%L
M;'D@=7-E<R!P<FEN=&LL(&YO="!P<FEN=&8@*B\**R`C9&5F:6YE($1)4U!,
M05E?5$E-14]55"`R,#`P,`DO*B!D:7-P;&%Y('1I;65O=70@=F%L=64@+2!A
M8F]U="`U(&UI;G5T97,@*B\**BH*+2TM(#@Q,"PX,C<@+2TM+0H@("`@<V5T
M7S8X-#4H5DE$7T]21RP@,"D["B`@("!P<FEN=&8H(EPP,S-;2%PP,S-;2B5S
M=V%R92!S8W)O;&QI;F<@96YA8FQE9"Y<;B(L"B`@"2!S;V9T<V-R;VQL(#\@
M(E-O9G0B(#H@(DAA<F0B*3L**R!]"BL@"BL@4%5"3$E#('9O:60@<V-R7V5N
M86)L92`H*0HK('L**V=L;RYH+F-D:68`````````````````````````````
M````````````````````````````````````````````````````````````
M```````````````````````````````@("`V-C0@`"`@,C(P,"``("`@(#$R
M(``@("`@("`@,3(R,R`@-#<Q,3$T,C<P,"`@(#<Q,S<`(```````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M,S<W-S<W-S<W-S<@````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````*BHJ("XN+RXN+RXN+W(Q
M+C4O=7-R+W-R8R]S>7,O:V5R;F5L+V=L;RYH"51U92!/8W0@,C,@,30Z,C<Z
M,#8@,3DY,`HM+2T@<WES+VME<FYE;"]G;&\N:`E4=64@3V-T(#(S(#$U.C`X
M.C0W(#$Y.3`**BHJ*BHJ*BHJ*BHJ*BHJ"BHJ*B`T,BPT-R`J*BHJ"BTM+2`T
M,BPU,B`M+2TM"B`@15A415).(&EN="!E9V$["0D)+RH@;F]N>F5R;R!I9B!C
M;VYS;VQE(&ES($5'02`J+PH@($585$523B!I;G0@<V-A;E]C;V1E.PD)+RH@
M<V-A;B!C;V1E(&]F(&ME>2!P<F5S<V5D('1O('-T87)T(&UI;FEX("HO"B`@
M15A415).(&EN="!S;F]W.PD)+RH@;F]N>F5R;R!I9B!S8W)E96X@;F5E9',@
M<VYO=R!R96UO=F%L("HO"BL@15A415).(&EN="!M;V1E7W!O<G0["0DO*B!M
M;V1E('!O<G0@*B\**R!%6%1%4DX@=&EM95]T(&1I<W!L87ET:6UE.PD)+RH@
M9&ES<&QA>2!T:6UE;W5T('1I;65R("HO"BL@15A415).('1I;65?="!D=&EM
M96]U=#L)"2\J(&1I<W!L87D@=&EM96]U="!T:6UE<B`J+PHK($585$523B!V
M;VED('-C<E]E;F%B;&4@*"D["BL@15A415).('9O:60@<V-R7V1I<V%B;&4@
M*"D["B`@"B`@+RH@365M;W)Y('-I>F5S+B`J+PH@($585$523B!U;G-I9VYE
M9"!E>'1?;65M<VEZ93L)+RH@:6YI=&EA;&EZ960@8GD@87-S96UB;&5R('-T
M87)T=7`@8V]D92`J+PHM(#0R+#4R("TM+2T*("!%6%1%4DX@:6YT(&5G83L)
M"0DO*B!N;VYZ97)O(&EF(&-O;G-O;&4@:7,@14=!("HO"B`@15A415).(&EN
M="!S8V%N7V-O9&4["0DO*B!S8V%N(&-O9&4@;V8@:V5Y('!R97-S960@=&\@
M<W1A<G0@;6EN:7@@*B\*("!%6%1%4DX@:6YT('-N;W<["0DO*B!N;VYZ97)O
M(&EF('-C<F5E;B!N965D<R!S;F]W(')E;6]V86P@*B\**R!%6%1%4DX@:6YT
M(&UO9&5?<&]R=#L)"2\J(&UO9&4@<&]R="`J+PHK($585$523B!T:6UE7W0@
M9&ES<&QA>71I;64["0DO*B!D:7-P;&%Y('1I;65O=70@=&EM97(@*B\**R!%
M6%1%4DX@=&EM95]T(&1T:6UE;W5T.PD)+RH@9&ES<&QA>2!T:6UE;W5T('1I
M;65R("HO"BL@15A415).('9O:0``````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
9````````````````````````````````````
`
end
--snip snip--


----------------------------
~Don WB6QMS
duncan@sgi.com

tgcpwd@rwc.urc.tue.nl (Wim van Dorst) (10/31/90)

Kenneth J. Hendrickson writes:
> Has anybody implemented a screen blanker for Minix? 

Donald Duncan writes:
>Here is a uuencoded tar file for pc minix 1.5:
>	kernel/{clock.c,keyboard.c,console.c,const.h,glo.h}.cdif
>
>begin 664 cdif.uue

It works great. A screen blanker was just the sort of thing I had
been wanting for a long time without knowing: I just kept on turning
the screen on and off and on, or I just kept on turning it bright and
low and bright and low..... Thanks Donald, now keep hoping to get it
in the next release.

I have some small remarks on the things I had to adjust to _get_ it to
work. First the name of cdif.uue should have been cdif.tar. Of course :-)
I didn't read the preceding text properly, so I didn't realise it was
a tar file and did stupid things with it. Well, no big deal, stupid me.

The other thing is:
In clock.c I had to remove the declarations
	PUBLIC time_t dtimeout;
	PUBLIC time_t displaytime=DEFAULTTIMEOUTORSOMETHING;
because in clock.c is included the header file kernel.h, which again
included glo.h, which defines dtimeout and displaytime to be EXTERN.
dtimeout and displaytime get therefore automatically declared PUBLIC
in table.c, so they were declared twice. I moved the initialization 
of the variables to the function init_clock(), like in 
	dtimeout = displaytime = DEFAULTTIMEOUTORSOMETHING;
Also I removed the declaration
	PUBLIC ... mode_port;
from console.c for the same reason.

Both of these removals were necessary, because my compiler (ACK on
Minix 1.5.10) could be made to understand it. I even believe it is
wrong C, but I am not really sure. 

On the whole I am extremely pleased with this new feature, be it as 
small as it is. At last I got rid of turning the screen on (the machine
Wiesje _is_ on permanently).

Hoping to have informed you, met vriendelijke groeten,
Wim 'Blue Baron' van Dorst
-- 
---------------------------------------------------------------------
Blue Baron = Wim van Dorst, Voice (+31) 074-443937, (+31) 02152-42319
(-:       baron@wiesje.hobby.nl           tgcpwd@urc.tue.nl       :-)
---------------------------------------------------------------------

duncan@spectre.vlsi.sgi.com (Donald Duncan) (11/02/90)

In article <205@rc6.urc.tue.nl>, tgcpwd@rwc.urc.tue.nl (Wim van Dorst) writes:
> I have some small remarks on the things I had to adjust to _get_ it to
> work. First the name of cdif.uue should have been cdif.tar. Of course :-)
> I didn't read the preceding text properly, so I didn't realise it was
> a tar file and did stupid things with it. Well, no big deal, stupid me.
> 

Now that I have shar on my system...


> The other thing is:
> In clock.c I had to remove the declarations
> 	PUBLIC time_t dtimeout;
> 	PUBLIC time_t displaytime=DEFAULTTIMEOUTORSOMETHING;
> because in clock.c is included the header file kernel.h, which again
> included glo.h, which defines dtimeout and displaytime to be EXTERN.
> dtimeout and displaytime get therefore automatically declared PUBLIC
> in table.c, so they were declared twice. I moved the initialization 
> of the variables to the function init_clock(), like in 
> 	dtimeout = displaytime = DEFAULTTIMEOUTORSOMETHING;
> Also I removed the declaration
> 	PUBLIC ... mode_port;
> from console.c for the same reason.
> 

After looking at the code I realize of course that you
are correct.  I wasn't paying attention to
what table.c was doing.  Now I understand :-)

Also note that if you declare DEFAULTTIMEOUTORSOMETHING to be 0, the
timeout feature is disabled.


I'll post update cdiffs in the near future.


----------------------------
~Don WB6QMS
duncan@sgi.com

kjh@pollux.usc.edu (Kenneth J. Hendrickson) (11/03/90)

Does anybody know how to program the EGA and VGA hardware directly?

I was working on getting Donald Duncan's screen blanker going, and it
doesn't work for EGA.  I studied it, and I see that it should work well
with MDA or CGA (after making a couple of very minor changes so it would
link).

I have a couple of "good" books on the subject, that only show how to do
this using the BIOS.  Of course, the BIOS can't be used in protected
mode.  The hardware must be programmed directly.  Neither the Norton
"Guide to IBM PC and PS/2" nor the Wilton "Programmer's Guide to PC &
PS/2 Video Systems" book show how to program the hardware directly.  :-(
(They do show how to program CGA and MGA hardware directly.)

Of course, if you know how to program the hardware directly, then you
can just fix the screen blanker yourself.  However, I would still like
to have to information, so I can go ahead and do it.

-- 
Ken Hendrickson N8DGN/6       kjh@usc.edu      ...!uunet!usc!pollux!kjh

L.Parkes@comp.vuw.ac.nz (Lloyd Parkes) (11/05/90)

In article <27857@usc> kjh@pollux.usc.edu (Kenneth J. Hendrickson) writes:

   I have a couple of "good" books on the subject, that only show how to do
   this using the BIOS.  Of course, the BIOS can't be used in protected
   mode.  The hardware must be programmed directly.  Neither the Norton
   "Guide to IBM PC and PS/2" nor the Wilton "Programmer's Guide to PC &
   PS/2 Video Systems" book show how to program the hardware directly.  :-(
   (They do show how to program CGA and MGA hardware directly.)

Surely Wilton's book contains code to map out video memory. Near the
back, (I need an office here at University, so that I can keep all my
book etc. near the machines with the news feed, but I am an
undergraduate :-) there is some discussion on bit planes, and how to
map them in and out. Surely you can just map the all out. Near the
front, there is a discussion on the hardware in various boards, and I
know that when I played around with the memory mapping stuff discussed
there, I managed to blank the screen.

Sorry this is all a bit vague, but my manuals are at home.

					Lloyd

p.s. If anyone has any more information about programming the
attribute controller that Wilton's rather terse stuff, please let me
know.
--
------------------------------------------------------------------------
Lloyd Parkes		|  The stereotypical young adult male in New
lloyd@comp.vuw.ac.nz	|  Zealand is a good reason for being lesbian.
------------------------------------------------------------------------

roger@imagen.imagen.com (roger wang) (01/15/91)

In article <40653@usc>, kjh@pollux.usc.edu (Kenneth J. Hendrickson) write:
>
> In late Oct '90 or early Nov '90, Donald Duncan posted a screen blanker
> for Minix.  It didn't work for my machine (EGA), and so I wrote another
> and posted it in early Nov '90.  My screen blanker worked by copying the
> data from the screen to an array in the kernel - instead of diddling
> with the bits on the video card.
>
> I think that sometime after I posted my screen blanker, somebody else
> posted another screen blanker that works the same way as Donald
> Duncan's - by diddling the video card bits.  They claimed that it worked
> on EGA displays.  I'm looking for it, and I can't find it.  If anybody
> has it, please post it again or email it to me.  Thanks.

Please post it again or email it to me too. Thanks.