From owner-freebsd-current@FreeBSD.ORG Tue Jul 14 20:40:29 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63BA41065679 for ; Tue, 14 Jul 2009 20:40:29 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 2965D8FC0C for ; Tue, 14 Jul 2009 20:40:29 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 8EDD21CF34; Tue, 14 Jul 2009 22:40:28 +0200 (CEST) Date: Tue, 14 Jul 2009 22:40:28 +0200 From: Ed Schouten To: Vladimir Grebenschikov Message-ID: <20090714204028.GT48776@hoeg.nl> References: <4A5C9CE2.6060801@free.fr> <20090714155513.GO48776@hoeg.nl> <1247599592.2232.27.camel@localhost> <20090714194726.GP48776@hoeg.nl> <1247603171.2105.38.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+ByKXx16ztm00L4d" Content-Disposition: inline In-Reply-To: <1247603171.2105.38.camel@localhost> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-current@freebsd.org, Franck Royer Subject: Re: UTF-8 on 8.0-CURRENT: Yes We Can! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2009 20:40:29 -0000 --+ByKXx16ztm00L4d Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Vladimir, * Vladimir Grebenschikov wrote: > In past graphical console draw text not too quick. > I've tried to live with VESA mode of sc (to match high resolution of > notebook display). But it was really slow. > Probably, your driver will be much faster ? Even though I like VESA, it's probably hard, if not impossible to get it working, mainly because we need vm86 to reprogram the hardware, which is not present on amd64. One of the things on my todo list is to figure out how the Intel hardware works, so we have an accelerated driver on those systems. This should also make it a lot more attractive to implement things like kernel modesetting somewhere in the future. Right now I'm using the VGA driver that Marcel Moolenaar wrote for vtc(4) in 2005. I basically made two optimisations: - Similar to syscons, I use a 25 Hz timer to refresh the modified portion of the screen, instead of handling input synchronously, like vtc(4) does. This timer will not be used during boot or while in the kernel debugger/experiencing a kernel panic. Writing data to the TTY will just store data in buffers, which means I can write data to the TTY at approximately 5 MB/sec on my 2.2 GHz MacBook. - I made some optimisation to prevent unneeded reads/writes to the VGA hardware. I have to say the speed is acceptable. Using my console driver in VMware Fusion is still a bit slow, but not driving you insane. Because it can't use the 25 Hz timer during boot, it takes some extra time to print the startup messages there. There is still room for improvement, so I suspect it won't be a problem by the time I'm done. --=20 Ed Schouten WWW: http://80386.nl/ --+ByKXx16ztm00L4d Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkpc7TwACgkQ52SDGA2eCwWRJACeMhUyIV6aVZN4q6NFV97RAsAx drUAn1uCgWW0S4F2SbiZ2kRhH6QCj0Wh =YUoG -----END PGP SIGNATURE----- --+ByKXx16ztm00L4d--