Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!tuegate.tue.nl!rc6.urc.tue.nl!rwc.urc.tue.nl!tgcpwd From: tgcpwd@rwc.urc.tue.nl (Wim van Dorst) Newsgroups: comp.os.minix Subject: Re: Screen blankers Summary: :-) :-) :-) :-) :-) :-) :-) Keywords: only small adjustments Message-ID: <205@rc6.urc.tue.nl> Date: 31 Oct 90 08:33:56 GMT References: <12681@chaph.usc.edu> <72802@sgi.sgi.com> <73038@sgi.sgi.com> Sender: News Administration Reply-To: tgcpwd@urc.tue.nl Organization: Eindhoven University of Technology, The Netherlands Lines: 49 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 :-) ---------------------------------------------------------------------