From owner-freebsd-hackers Thu Jan 27 15:45:56 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by hub.freebsd.org (Postfix) with ESMTP id C6F3D15892; Thu, 27 Jan 2000 15:45:50 -0800 (PST) (envelope-from yokota@zodiac.mech.utsunomiya-u.ac.jp) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:CG4pTjo7RtXohkvdoGYtJBVSSbo3Ooyu@zodiac.mech.utsunomiya-u.ac.jp [160.12.42.1]) by outmail.utsunomiya-u.ac.jp (8.9.3/3.7Wpl2) with ESMTP id IAA06633; Fri, 28 Jan 2000 08:45:17 +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 IAA11592; Fri, 28 Jan 2000 08:50:55 +0900 (JST) Message-Id: <200001272350.IAA11592@zodiac.mech.utsunomiya-u.ac.jp> To: John Baldwin Cc: Brian Fundakowski Feldman , hackers@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: VGA card (mis)behavior In-reply-to: Your message of "Thu, 27 Jan 2000 17:36:45 EST." <200001272236.RAA54160@server.baldwin.cx> References: <200001272236.RAA54160@server.baldwin.cx> Date: Fri, 28 Jan 2000 08:50:54 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >There is a way to detect monochrome or color via one of the 0x3dX registers. >It's the register that tells you if the rest of the vido registers are at 0x3b >X >(mono) or 0x3cX (color). I can't remember which bit in which register that is >though. If someone can find that out, then we can fix this properly. The word at 0x463 in the BIOS data area tells at which I/O address the CRTC is sitting on. It's 0x3b4 for the monochrome adapter and EGA/VGA in a monochrome mode, and 0x3d4 for CGA and EGA/VGA in a color mode. So, we should try to set the mode 3 when we find 0x3d4 and the mode 7 for 0x3b4. Kazu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message