T221 Config on Linux + nVidia
[ topping ] 05:21, Sunday, 30 January 2005

I decided to move over to Fedora, and it was a bit of work to get the T221 working on it. So I thought I would pass along what I found.

The first step is getting the most recent drivers installed from the nVidia site. Their installer is very reliable, if it cannot get the driver from the FTP site, it will cook it for you there on the spot. Very handy. My desktop is running the AMD64 version of Fedora, and it installed the driver without a hitch.

But one of the tricky parts is that it does not give you *everything* that you need. There are still two tweaks to insert:

  • The first is to update your /etc/grub.conf, removing the 'rhgb' from the boot arguments for your kernel. This is for the Red Hat Graphical Boot, which does not work with the nVidia Driver.
  • Secondly, you need to create a couple of device entries at boot, apparently they get overwritten or not created properly. I put these changes in /etc/rc.d/rc.local:
         mknod /dev/nvidia0 c 195 0
         mknod /dev/nvidiactl c 195 255
    

One of the things that's not obvious about getting the driver installed is how to get the system to stop X. GDM is running, and it restarts X in case it should die. So as root, execute 'telinit 3'. That will drop you down into a shell prompt in a hurry. When you are ready to restart X, execute 'telinit 5'. To get a shell when GDM is running, you may have to SSH to your machine over the network with a different machine.

Once the driver is installed, you need to edit /etc/X11/xorg.conf. I've attached the file I created inline, minus the comments. I've only set it up for one mode, so it should be easier to see what is going on. Of course, you can add more modes if that helps you.

When debugging what happens during a launch of X, just keep checking /var/log/Xorg.0.log.

Good luck!

+=+=+=+=


Section "ServerLayout"
Identifier "dual-head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "IBM"
ModelName "IBM T221"
ModelName "LCD Panel 1920x2400"
Option "dpms"
UseModes "T221 Modes"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "NVIDIA Quadro FX"
Option "TwinView"
Option "TwinViewOrientation" "RightOf"
Option "MetaModes" "1920x2400,1920x2400"
Option "ConnectedMonitor" "dfp,dfp"

EndSection

Section "Modes"
Identifier "T221 Modes"
ModeLine "1920x2400" 124.620 1920 1928 1980 2048 2400 2401 2403 2434 +hsync +vsync
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Virtual 3840 2400
Viewport 0 0
Depth 24
Modes "1920x2400"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection


Comments
Post a comment









Remember personal info?