Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jul 2005 19:01:52 -0500
From:      Nikolas Britton <nikolas.britton@gmail.com>
To:        Giorgos Keramidas <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@freebsd.org, Nicolas Blais <nb_root@videotron.ca>
Subject:   Re: Boot in 1024x768x16
Message-ID:  <ef10de9a050717170169974b9f@mail.gmail.com>
In-Reply-To: <20050716173115.GB1490@beatrix.daedalusnetworks.priv>
References:  <200507161318.10377.nb_root@videotron.ca> <20050716173115.GB1490@beatrix.daedalusnetworks.priv>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/16/05, Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
> On 2005-07-16 13:17, Nicolas Blais <nb_root@videotron.ca> wrote:
> > Hi,
> > Can anyone tell me how to boot in 1024x768x16 (vidcontrol MODE_279) or
> > at least have all the ttyv at that resolution after boot. I have seen
> > the sc flag 0x0080 to set it at 800x600 but I would want 1024 since my
> > lcd native resolution is 1024x768 and in 800x600 the refresh rate
> > causes flicker.
>=20
> Does the video mode switch to 1024x768 as expected when you run as root
> the following command?
>=20
>         # vidcontrol MODE_279
>=20
> If it does, then you can add "MODE_279" to allscreens_flags in your
> /etc/rc.conf file.
>=20

They finally got the raster VESA modes patch into FreeBSD??? Will it
be in FreeBSD 6.x?

If anyone whats this in FreeBSD 5.x I have a basic script that will
apply that patch. The patch I have might be outdated (someone have a
more current one???) Anyways:

Run this script as root (make sure the patch was applied cleanly):
---------------------
cd /tmp
rm current-vesa_patch.tar.gz
fetch http://www.nbritton.org/uploads/current-vesa_patch.tar.gz
rm -r current-vesa_patch
tar -zxvf current-vesa_patch.tar.gz
cd /usr/src/sys/dev/syscons
patch </tmp/current-vesa_patch/current-syscons.diff
cd /usr/src/usr.sbin/vidcontrol
cp /tmp/current-vesa_patch/current-vidcontrol.1 ./vidcontrol.1
cp /tmp/current-vesa_patch/current-vidcontrol.c ./vidcontrol.c
make && make install && make clean
----------------------

Add this to your kernel file:
---------------------
options VESA
options SC_PIXEL_MODE
---------------------
and then recompile your kernel.

Add this to your /etc/rc.conf file:
----------------------
allscreens_flags=3D"MODE_279"
----------------------
and then reboot. It will complain something about vidcontrol and your
mouse, just ignore it.


The patch can also do higher modes like MODE_282 (1280x1024) etc. if
you update your system via cvsup you will have to run the script again
because cvsup will over write the files.

This patch also fixes the problems with older ATI cards that don't
have a real VESA BIOS.



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