Article View: aus.computers.linux
Article #56320Re: Stting console type VGA vs MDA
From: Paul Gortmaker
Date: Sun, 09 Mar 1997 00:00
Date: Sun, 09 Mar 1997 00:00
27 lines
1633 bytes
1633 bytes
"Ian Ward" <ian@cyberpro.com.au> writes:
>I have a system that has both a VGA Adapter and one of the older Hercules
>Monochrome Adaper in.
>Normally I just have the MDA in so that I can use the VGA console on
>another system.
>I would rather not have to pull out the VGA card each time I want to run
>MDA.
>I have looked through the Kernel config and I am trying to find a way of
>overiding the BIOS
>declaration that there is a VGA connected (the system insists on VGA if it
>finds the adapter even if
>you have monochrome selected). There is a reference to "video_type" in the
>/drivers/char/console.c ,
>to be in MDA mode this would be "VIDEO_TYPE_MDA" (I wish there was a
>bootstring)
I don't think there is a magic bootstring for what you want, but the
code you want to play with is in linux/drivers/char/vga.c -- in the
routine con_type_init() you can just force MDA and all will be well.
Look for the else {...} and make it the default for your MDA kernel.
I think I have done this many moons ago with a 386sx-16 having both
vga and MDA and it worked fine regardless of what the BIOS/CMOS
reported to the kernel. (Isn't having the source a great bonus?)
Paul.
Technical Details
Message-ID:
<5fu27i$dk@leonard.anu.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bc2c59$990849e0$0a5237cb@mazda>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,2db7c095beee5450 X-Google-Attributes: gid102983,public From: gpg109@leonard.anu.edu.au (Paul Gortmaker) Subject: Re: Stting console type VGA vs MDA Date: 1997/03/09 Message-ID: <5fu27i$dk@leonard.anu.edu.au> X-Deja-AN: 224136730 References: <01bc2c59$990849e0$0a5237cb@mazda> Organization: Australian National University Newsgroups: aus.computers.linux