From owner-freebsd-hackers Sun Nov 1 03:30:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA19155 for freebsd-hackers-outgoing; Sun, 1 Nov 1998 03:30:23 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA19143 for ; Sun, 1 Nov 1998 03:30:11 -0800 (PST) (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:2wtTrl8lcd6Dep9DVPl7a84DhrFCh2nj@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by outmail.utsunomiya-u.ac.jp (8.9.1/8.9.1) with ESMTP id UAA28011; Sun, 1 Nov 1998 20:30:03 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.7.6+2.6Wbeta7/3.4W/zodiac-May96) with ESMTP id UAA15844; Sun, 1 Nov 1998 20:31:26 +0900 (JST) Message-Id: <199811011131.UAA15844@zodiac.mech.utsunomiya-u.ac.jp> To: Christopher Masto cc: hackers@FreeBSD.ORG, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: Some curiosity about syscons In-reply-to: Your message of "Mon, 26 Oct 1998 23:02:08 EST." <19981026230208.A8159@netmonger.net> References: <19981026230208.A8159@netmonger.net> Date: Sun, 01 Nov 1998 20:31:24 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [...] >Rather than back up and start over with a different approach, I added >a tiny ioctl to syscons to call scrn_update(). With that and some >fudging, I actually have the damned thing working. Um, scrn_update() can be called on certain conditions. See scrn_timer() for correct timing. All in all, it is very difficult to guarantee that the screen is update at precisely 60Hz. >If anyone is still following this, and particularly if you Know From >Experience, perhaps you can comment on some of these architectural >issues. I need a 60Hz vertical refresh rate, and I need to be able to >display 18 lines of text every frame. This needs to happen during the >vertical retrace interval, as a single glitched frame will cause a >failure. Ideally I would like the cursor not to be present, but it >isn't actually a problem if I can make sure it is always at the top or >bottom of the screen. You have to poll a CRTC status port for vertical retrace period. As Mike has already suggested, it is probably best to do this sort of things as a screen saver LKM. The screen saver can do whatever it wants (just like DOS programs... :-) The tricky thing is that syscons will instantly deactivate the screen saver LKM as soon as a key is pressed (or mouse is moved). Kazu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message