applying the vesa patch to stable for high console resolution

Ted Mittelstaedt tedm at toybox.placo.com
Tue Jun 14 05:06:55 GMT 2005


Hi,

  Has this patch beeen applied to CURRENT?  So it will be in the next
release of FreeBSD?

Ted

>-----Original Message-----
>From: owner-freebsd-questions at freebsd.org
>[mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Didier Wiroth
>Sent: Monday, June 13, 2005 1:46 PM
>To: freebsd-stable at freebsd.org
>Cc: freebsd-questions at freebsd.org
>Subject: applying the vesa patch to stable for high console resolution
>
>
>Hi,
>
>USE AT YOUR OWN RISK!!!!!
>
>this for the freebsd5 branch only!!!!
>
>Here is how to apply the patch to get the "long awaited" high
>console text modes under freebsd!
>I actually use it on my nc6000 hp laptop with the following mode:
>1400x1050x16
>damm .. really nice ;-))
>
>This patch is actually for freebsd current but it works (for
>me) with 5-stable and may be "release" or earlier versions (5.X) too.
>
>ONCE AGAIN BE WARNED!! USE AT YOUR OWN RISK!!!
>
>Let's go:
>1) Get the patch here:
>http://people.freebsd.org/~delphij/vesa/patchset-highres.20050522
>
>2) Remove the lines which are not required for us and rename
>the patch we will use to syscons.patch:
>split -p "Index: usr.sbin" patchset-highres.20050522 && mv xaa
>syscons.patch
>
>3) backup and patch your local (stable) sources:
>(/usr/src/sys/dev/syscons - will be patched)
>cp -Rp /usr/src/sys/dev/syscons /usr/src/sys/dev/BAK.syscons
>cd /usr/src
>patch < path_to_patch/syscons.patch
>
>4) recompile and install your kernel with sc_pixel_mode and
>vesa support see handbook for details!
>http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernel
config.html

5) backup your vidcontrol sources
cp -Rp /usr/src/usr.sbin/vidcontrol /usr/src/usr.sbin/BAK.vidcontrol

6) update your vidcontrol sources with the "current/HEAD" vidcontrol
sources
cd /usr/src
cvs -danoncvs at anoncvs.de.freebsd.org:/home/ncvs co -rHEAD
usr.sbin/vidcontrol

7) recompile vidcontrol and install
cd /usr/src/usr.sbin/vidcontrol && make clean && make all && make install

8) reboot

9) after having rebooted with your new kernel (with sc_pixel_mode and
vesa) issue a "vidcontrol -i mode"
You will get lots of ouput like this:
322 (0x142) 0x0000000f G 1400x1050x16 1  8x16  0xa0000 64k 64k 0x98000000
65472k
Test the mode in a shell by issuying:
vidcontrol MODE_322

If it works (I hope for you ;-)) but your corresponding mode in rc.conf
like this:
allscreens_flags="MODE_322"

Voilà :-))
Long live freebsd





_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-stable mailing list