Date: Mon, 13 Jun 2005 22:46:26 +0200 From: Didier Wiroth <didier.wiroth@mcesr.etat.lu> To: freebsd-stable@freebsd.org Cc: freebsd-questions@freebsd.org Subject: applying the vesa patch to stable for high console resolution Message-ID: <19891a045407.42ae0cc2@etat.lu>
next in thread | raw e-mail | index | archive | help
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/kernelconfig.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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19891a045407.42ae0cc2>
