From owner-freebsd-stable Sun Jan 6 7:42:39 2002 Delivered-To: freebsd-stable@freebsd.org Received: from pt-quorum.com (pt-quorum.com [209.10.167.210]) by hub.freebsd.org (Postfix) with ESMTP id 1C81637B417 for ; Sun, 6 Jan 2002 07:42:36 -0800 (PST) Received: from gw.tex.bogus (d179236.avr.PT.KPNQwest.net [193.126.179.236]) by pt-quorum.com (Postfix) with ESMTP id E86F7ECD1 for ; Sun, 6 Jan 2002 15:44:49 +0000 (WET) Received: by gw.tex.bogus (Postfix, from userid 1000) id 8A8755F5D; Sun, 6 Jan 2002 15:42:30 +0000 (WET) Date: Sun, 6 Jan 2002 15:42:30 +0000 From: Nuno Teixeira To: freebsd-stable@freebsd.org Subject: Is VESA_800x600 hardcoded to 80x25? Message-ID: <20020106154230.GD1141@gw.tex.bogus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.25i X-Operating-System: FreeBSD 4.5-PRERELEASE Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello to all, For the first time I configured VESA and SC_PIXEL_MODE in kernel to reach VESA_800x600 (100x37). When I used vidcontrol to do this I noted that I only can get a smaller "window" in the middle of the screen (80x25). I've searched groups.google.com and I find: http://groups.google.com/groups?q=freebsd%2BVESA_800x600&selm=F79hEUsebmspH2q6Dqa0000bf3c_hotmail.com%40ns.sol.net&rnum=8 --------------------------------------------------------------------------- Message: >... knowing that 800x600 / 8x16 = 100x37.5 I should be able to do better. >I switched to VESA_800x600, but instead of getting 100x37 I just get 80x25 >in a smaller "window" in the middle of the screen. > >1) Is VESA ... hardcoded to 80x25? > >2) Is this combo hardcoded to 4-bit color? 1) Yes, VESA_800x600 is hardcoded to 80x25 in vidcontrol.c, but it is easy to fix. Just make the following change and recompile: if (mode == SW_VESA_800x600) { --> size[0] = 100; /* columns */ --> size[1] = 37; /* rows */ size[2] = 16; /* font size */ to get this automatically when you boot up just insert the following line into rc.conf: allscreens_flags="VESA_800x600" If you would prefer the thinner font, insert the following line instead: allscreens_flags="-f 8x16 iso-thin-8x16 VESA_800x600" 2) Yes, 4-bit color also seems to be hardcoded into vidcontrol.c and the other VGA logic. But that requires someone who knows C. 8) ---------------------------------------------------------------------------- Does I have to change the code too? Or there is other way of geting the maximum resolution in console? Thanks very much, -- Nuno Teixeira pt-quorum.com /* PGP Public Key: http://www.pt-quorum.com/pgp/nunoteixeira.asc Key fingerprint: 8C2C B364 D4DC 0C92 56F5 CE6F 8F07 720A 63A0 4FC7 */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message