Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 May 2002 15:30:33 +0100
From:      Nick Barnes <Nick.Barnes@pobox.com>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: XF86-4.2.0 + MGA driver 
Message-ID:  <3111.1020263433@thrush.ravenbrook.com>

next in thread | raw e-mail | index | archive | help
I am also using a Matrox card (G400) and just upgraded to XFree86-4
using the ports collection.  It was fairly painless, once I realised
that I needed to upgrade to imake-4 (the ports collection didn't
figure this out automatically; I don't know why, and the build failure
was obscure).

I made it like this:

# cd /usr/ports/x11/XFree86-4
# make FTP_PASSIVE_MODE=YES WITH_MATROX_GXX_DRIVER=YES
# make FTP_PASSIVE_MODE=YES WITH_MATROX_GXX_DRIVER=YES install

Making XFree86-4 actually work properly then took a little while.  The
config utilities didn't help much.  The mouse didn't work until I
switched the config from the Intellimouse protocol (always worked with
3.3.6, and my mouse _is_ an actual Microsoft Intellimouse) to PS/2.
Enlightenment didn't work (it needed the Shape extension, so I had to
Load "extmod").  I don't need xfstt any more, so I had to turn that
off.  And some of the font names changed, rather mysteriously, (from
-webfonts-* to -truetype-*).

Now it's working it seems fine.  I even got DRI working (first time)
by following the instructions at
<http://gladstone.uoregon.edu/~eanholt/dri/index.html>.  Whizzy OpenGL.

I ended up with the following XF86Config file.  Matrox Millenium
G400/32MB with Sony CPD-G500P (19" Pro), running 1600x1200 @ 85Hz.

Nick Barnes
Ravenbrook Limited

Section "Files"
   RgbPath    "/usr/X11R6/lib/X11/rgb"
   FontPath   "/usr/X11R6/lib/X11/fonts/local"
   FontPath   "/usr/X11R6/share/AbiSuite/fonts/"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
   FontPath   "/usr/X11R6/lib/X11/fonts/Type1"
   FontPath   "/usr/X11R6/lib/X11/fonts/Speedo"
   FontPath   "/usr/X11R6/lib/X11/fonts/misc"
   FontPath   "/usr/X11R6/lib/X11/fonts/75dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/100dpi"
   FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic"
   FontPath   "/usr/X11R6/lib/X11/fonts/TrueType"
   FontPath   "/usr/X11R6/lib/X11/fonts/URW"
   FontPath   "/usr/X11R6/lib/X11/fonts/PCF"
   FontPath   "/usr/X11R6/lib/X11/fonts/cmpsfont"
   FontPath   "/usr/X11R6/lib/X11/fonts/webfonts"
EndSection

Section "Module"
    Load        "dbe"
    Load        "extmod"
    Load        "bitmap"
    Load        "speedo"
    Load        "type1"
    Load        "xtt"
    Load        "glx"
    Load        "dri"
EndSection

Section "ServerFlags"
    Option      "standby time"  "10"
    Option      "suspend time"  "15"
    Option      "off time"      "20"
EndSection

Section "DRI"
  Mode 0666
EndSection

Section "InputDevice"
   Identifier "Keyboard1"
   Driver "keyboard"
   Option "XkbModel" "pc102"
   Option "XkbLayout" "gb"
EndSection

Section "InputDevice"
   Identifier "Mouse1"
   Driver "mouse"
   Option "Protocol" "PS/2"
   Option "Device" "/dev/psm0"
EndSection

Section "Monitor"
   Identifier      "Monitor1"
   VendorName      "Sony"
   ModelName       "CPD-G400P"
   HorizSync       30-107
   VertRefresh     48-120
   Modeline  "1600x1200" 220    1600 1616 1808 2080 1200 1204 1207 1244 
   Modeline  "1280x1024" 157.50 1280 1344 1504 1728 1024 1025 1028 1072
   Modeline  "1152x864"  137.65 1152 1184 1312 1536  864  866  885  902
   Modeline  "1024x768"  115.50 1024 1056 1248 1440  768  771  781  802
   Modeline  "800x600"    69.65  800  864  928 1088  600  604  610  640
   Modeline  "640x480"    45.80  640  672  768  864  480  488  494  530
   Option "dpms"
EndSection

Section "Device"
   Identifier      "Card1"
   VendorName      "Matrox"
   BoardName       "Matrox Millennium G400 32MB"
   VideoRam 32768
   Driver          "mga"
EndSection

Section "Screen"
   Identifier      "Screen1"
   Device          "Card1"
   Monitor         "Monitor1"
   DefaultDepth 24
   SubSection "Display"
      Depth        8
      Modes        "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
   EndSubSection
   SubSection "Display"
      Depth        15
      Modes        "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
   EndSubSection
   SubSection "Display"
      Depth        16
      Modes        "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
   EndSubSection
   SubSection "Display"
      Depth        24
      Modes        "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
   EndSubSection 
EndSection

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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