From owner-freebsd-questions Wed Nov 8 12:41:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta01-svc.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by hub.freebsd.org (Postfix) with ESMTP id 198EC37B4C5 for ; Wed, 8 Nov 2000 12:41:28 -0800 (PST) Received: from parish ([62.253.84.98]) by mta01-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20001108204125.YIGS277.mta01-svc.ntlworld.com@parish>; Wed, 8 Nov 2000 20:41:25 +0000 Received: (from mark@localhost) by parish (8.11.0/8.11.0) id eA8Keof05462; Wed, 8 Nov 2000 20:40:50 GMT (envelope-from mark) Date: Wed, 8 Nov 2000 20:40:50 +0000 From: Mark Ovens To: Gabor Zahemszky Cc: freebsd-questions@freebsd.org Subject: Re: Screen saver for syscons Message-ID: <20001108204050.G254@parish> References: <20001107153731.A850@zg.CoDe.hu> <20001107195543.B253@parish> <20001108120025.A554@zg.CoDe.hu> <20001108193920.C254@parish> <20001108194732.D254@parish> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20001108194732.D254@parish>; from marko@freebsd.org on Wed, Nov 08, 2000 at 07:47:32PM +0000 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Nov 08, 2000 at 07:47:32PM +0000, Mark Ovens wrote: > On Wed, Nov 08, 2000 at 07:39:20PM +0000, Mark Ovens wrote: > > > > Check out Andrzej's website http://people.freebsd.org/~abial/ there is > > already a 4.x version there (albeit 4.0-CURRENT so maybe it won't work > > under 4.[12]. > > > > Just tried it myself under 4.1-STABLE, it doesn't work: > > /usr/root{101}# kldload matrix_saver > kldload: can't load matrix_saver: Exec format error > /usr/root{102}# Nov 8 19:44:02 parish /kernel: link_elf: symbol set_border undefined > Nov 8 19:44:02 parish /kernel: link_elf: symbol set_border undefined > > If you get it working please send me a copy. > The following patch fixes it --- matrix_saver.c.orig Wed Nov 8 19:53:39 2000 +++ matrix_saver.c Wed Nov 8 20:04:31 2000 @@ -135,14 +135,14 @@ /* sc_vtb_clear(&scp->scr, sc->scr_map[0x20], (FG_LIGHTGREY | BG_BLACK) << 8); */ (*vidsw[adp->va_index]->set_hw_cursor)(adp, -1, -1); - set_border(scp, 0); + sc_set_border(scp, 0); } if (blanked++ < 2) return 0; blanked = 1; /* Move the contents down 1 line */ sc_vtb_ins(&sc->cur_scp->scr,0,scp->xsize,sc->scr_map[0x20], - scp->term.cur_color); + 0); /* Draw new glyphs */ for(i=0;ixsize;i++) { gly=random() & 0x007f; I don't know what scp->term.cur_color should really be replaced with, but 0 seems to work OK. > -- > 4.4 - The number of the Beastie > ________________________________________________________________ > 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org > 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark > mailto:marko@freebsd.org http://www.radan.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message