Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 1997 13:29:54 +0900
From:      Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
To:        jbryant@tfs.net
Cc:        freebsd-hackers@freebsd.org, sos@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp
Subject:   Re: vidcontrol under 2.2.2 
Message-ID:  <199705300429.NAA07290@zodiac.mech.utsunomiya-u.ac.jp>
In-Reply-To: Your message of "Thu, 29 May 1997 12:42:31 EST." <199705291742.MAA01750@argus.nuke.net> 
References:  <199705291742.MAA01750@argus.nuke.net> 

next in thread | previous in thread | raw e-mail | index | archive | help

>> (Um, please be explicit about the model of your video card and the
>> video mode which you are attempting to change to.)
>
>Cirrus Logic, 1534...

>> The mode parameter table in your VGA card's ROM is not organized the
>> way the console driver expects. There are unfortunately such cards out
>> there.  You can still use other functions of the console driver (such
>> as mouse pointer), but can not change video modes. (X is OK, in case
>> you are wondering :-)
>
>never had a problem before...  1.1.5.1-RELEASE through 2.1.x-RELEASE

Were you able to set all the video modes?

>> To verify if this is the case with your card, boot the system with the
>> "-v" option at the "Boot:" prompt and check the output from the
>> `dmesg' command afterwards. You will see "sc0: VGA registers upon
>> power-up" followed by 64 bytes of hex dump.  If you don't see another
>> hex dump headed "sc0: VGA registers for mode:xx", the console driver
>> found the mode parameter table of your VGA ROM strange and decided not
>> to use it.
>
>if this is new, i suggest it be trashed or the old code #ifdef'ed in...
>nothing ticks me off more than someone messing with my x and y
>settings...  i had no problems before i upgraded to 2.2.2, if it ain't
>broked, don't muck with it!

Well, I wonder trashing the code will be wise. You may not have had
any problems with the old code, but there are built-in VGA in laptops
and VGA cards (from Diamond, Trident, etc) which didn't work that way.

I guess that bringing back, or #ifdef'ing, 2.1.X code in 2.2 won't be
a trivial task, as it will require adjusting quite a few things added
after 2.1.

Anyway, we had better seek Soeren's opinion on this matter. He is
the authority.

In the meantime, the following patch for /sys/i386/isa/syscons.c will
remove the test on the mode table in the VGA ROM, so that the syscons
driver will use the table, whatever it looks like. It doesn't entirely
bring the old 2.1.X behavior back.  You may be able to set VGA 80x60
mode, because it used to work for you under the old code.  But you may
not be able to use other modes (such as EGA 80x25, 80x43).

(As there are VGA cards which requires the new code, I don't think
this patch will be made permanent in the source tree, though.)

I would be very grateful if you could send the output of `dmesg' after
patching the source and booting the kernel with the `-v' option, so
that we can know exactly which part of the table looks unfamiliar to the
console driver.

Kazu

--- syscons.c-1.182.2.18	Sun May 11 06:09:02 1997
+++ syscons.c	Fri May 30 10:49:30 1997
@@ -2462,11 +2462,13 @@
     init_scp(console[0]);
     cur_console = console[0];
 
+#if 0
     /* discard the video mode table if we are not familiar with it... */
     if (video_mode_ptr) {
         if (comp_vgaregs(vgaregs, video_mode_ptr + 64*console[0]->mode)) 
             video_mode_ptr = NULL;
     }
+#endif
 
     /* copy screen to temporary buffer */
     sc_bcopy(Crtat, sc_buffer,


>in the mean time, please remove the Cirrus Logic cards from the kernel
>compat video card list in the advertising...

Do we have the list of specific video cards supported by the kernel?
Not in the handbook, FAQ, various *.TXT files in the root directoty of
the distribution, and in help files of the installation program...

XF86 documentation DOES have a list of supported cards and chips. But
as I said in the last mail, X should run fine with the new code.



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