Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Nov 2000 20:40:50 +0000
From:      Mark Ovens <marko@freebsd.org>
To:        Gabor Zahemszky <ZGabor@CoDe.hu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Screen saver for syscons
Message-ID:  <20001108204050.G254@parish>
In-Reply-To: <20001108194732.D254@parish>; from marko@freebsd.org on Wed, Nov 08, 2000 at 07:47:32PM %2B0000
References:  <20001107153731.A850@zg.CoDe.hu> <20001107195543.B253@parish> <20001108120025.A554@zg.CoDe.hu> <20001108193920.C254@parish> <20001108194732.D254@parish>

next in thread | previous in thread | raw e-mail | index | archive | help
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;i<scp->xsize;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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001108204050.G254>