Matrox Card

From Gentoo-en
Jump to: navigation, search

Posted by tw001_tw (http://www.linuxquestions.org/questions/blog/tw001_tw-27416/some-notes-i-made-regarding-matrox-frame-buffer-in-gentoo-kernel-2-6-11-108/)

If you have a Matrox card, you have the option of using EITHER the Matrox OR vesa framebuffer.

Using the Matrox framebuffer

TIP: Do NOT, and I repeat, DO NOT, compile into your kernel "vesafb', or "vesafb-tng" if you choose "Matrox Acceleration".

cd /usr/src/linux
make menuconfig

This is what you need (how I did it):

Under Device Drivers -> Graphics support[*] Support for frame buffer devices[*] Enable Video Mode Handling Helpers[*] Matrox acceleration[*] G100/G200/G400/G450/G550 support[*] Multihead support

Under Device Drivers -> Graphics support -> Console Display driver support --- VGA text console[*] Video mode selection support[*] Framebuffer Console support[*] Select compiled-in fonts[*] VGA 8x8 font[*] VGA 8x16 font

Then edit your boot loader as follows:

# lilo.conf
image = /boot/vmlinuz-2.6.11-gentoo-r6
root = /dev/sdb1
label = Gentoo
read-only
append = "video=matroxfb:vesa:0x117"
# grub.conf
default 0
timeout 30
title Gentoo Linux 2.6.34-r1
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r1 root=/dev/sda3 video=matroxfb:vesa:0x117

Run /sbin/lilo, and reboot - all should be well

Using the vesa framebuffer

TIP: Do NOT, and I repeat, DO NOT, compile into your kernel "matrox acceleration', if you choose to use the vesafs!

cd /usr/src/linux
make menuconfig

This is what you need (how I did it): [*] VESA VGA graphics support VESA driver type (vesafb-tng) ---> (1024x768@60) VESA default mode

Then edit your boot loader as follows:

# Lilo.conf
image = /boot/vmlinuz-2.6.11-gentoo-r6
root = /dev/sdb1
label = Gentoo
read-only
append = "video=vesafb:mtrr,ywrap,1024x768-16@60"

Run /sbin/lilo, and reboot - all should be well
# Grub.conf
default 0
timeout 30
title Gentoo Linux 2.6.34-r1
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r1 root=/dev/sda3 video=vesafb:mtrr,ywrap,1024x768-16@60