Getting XF4.01, linux 2.2.18 and a Rage Orion working on a 9600


Subject: Getting XF4.01, linux 2.2.18 and a Rage Orion working on a 9600
From: Iain Stevenson (iain@IainStevenson.com)
Date: Tue Dec 26 2000 - 13:45:42 MST


Here's a note about my experience with several upgrades. Starting point:
9600/200 as shipped to the UK but with the IMSTT graphics card replaced with
a Rage Orion.

XFree86 4.01
============

I installed Hollis' RPMs - it is necessary to remove the previous X
installation or you may get some error messages when installing the new RPMs
(these look superficially like errors in the RPM files, but they're not). I
checked the symlinks as per Stefan's notes.

The 9600/200 has the graphics card in a dedicated slot. Unfortunately, this
is not recognised by Xautoconfig4 which produces an XF86Config-4 configuring
the frame buffer device (fbdev) for graphics and including the line:

  BusID "PCI:0:0:0"

which causes X to crash. Removing this line will allow X to start with the
frame buffer. I did a "cat /proc/pci" and this does not show the graphics
card - raising the question of whether any 9600 (or similar) model will
configure with the new X correctly.

The solution was to put the original IMSTT card back in the graphics slot
and to install the Rage Orion in a standard pci slot. It is then recognised
correctly. XF86Config-4 should contain:

Section "Device"
        Identifier "Card0"
        Driver "r128"
        BusID "PCI:0:x:0"
EndSection

Where 'x' varies depending on your machine (it's 14 on mine) and is found
from the results of the "cat /proc/pci" command. The Rage Orion is
recognised and gives accelerated video (cool!). I've included the
XF86Config at the end of this message.

kernel 2.2.18
=============

I built a stock 2.2.18 kernel from kernel.org. I configured USB support as
required for the input layer - even though there is no USB on my mac. I
enabled HID and ADB support (an extract from my config file is included at
the end). The kernel built and installed with no problems. I edited the
XF86Config-4 as appropriate to use the new input layer.

Keyboard map
============

I found the keyboard mapping to be incorrect - but downloading and
installing the suggested (not by Yellowdog!) xkb replacement from another
web site just made things worse. The problem was that the tilde/single
quote key did not work at all and the section/+- key did what the tilde key
should have done. I also found that the mouse button handling was not
correct in KDE.

I included the a .Xmodmap file in the home directory containing the
following:

    pointer = 1 3 2

    keycode 18 = grave asciitilde
    keycode 58 = section plusminus

... that fixed the keyboard and KDE.

It took me quite a while to sort this out - I hope it saves someone else the
effort and frustration.

  Iain

My XF86CConfig-4

# File generated by Xautoconfig4.
Section "ServerLayout"
        Identifier "XFree86 Configured"
        Screen 0 "Screen0" 0 0
        InputDevice "Mouse0" "CorePointer"
        InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
# The location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

        RgbPath "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)

        FontPath "unix/:7100"
        # If we don't have a font server for some reason, we still have
fonts

        FontPath "/usr/X11R6/lib/X11/fonts/local/"
        FontPath "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
        FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
        FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
        FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"

# ModulePath can be used to set a search path for the X server modules.
# The default path is shown here.

# ModulePath "/usr/X11R6/lib/modules"

EndSection

Section "Module"
        Load "GLcore"
        Load "dbe"
        Load "extmod"
        Load "glx"
        Load "pex5"
        Load "record"
        Load "xie"
        Load "bitmap"
        Load "type1"
        Load "speedo"
        Load "freetype"
# Load "v4l"
EndSection

Section "InputDevice"
        Identifier "Keyboard0"
        Driver "keyboard"
        Option "XkbModel" "macintosh_old"
        Option "XkbLayout" "us"
EndSection

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

Section "Monitor"
        Identifier "Monitor0"
        UseModes "Modes0"
        ModelName "Monitor Model"
# Option "DPMS"
        HorizSync 30-70
        VertRefresh 50-160
EndSection

Section "Modes"
        Identifier "Modes0"

        # Apple iMac modes
        Modeline "1024x768" 78.525 1024 1049 1145 1312 768 769 772
800 +hsync +vsync
        Modeline "800x600" 62.357 800 821 901 1040 600 601 604
632 +hsync +vsync
        Modeline "640x480" 49.886 640 661 725 832 480 481 484
514 +hsync +vsync
        # Apple monitors tend to do 832x624
        Modeline "832x624" 57 832 876 940 1152 624 625 628
667 -hsync -vsync
        # Apple PowerBook G3
        Modeline "800x600" 100 800 816 824 840 600 616 624
640 -hsync -vsync
        # Generated
        # D: 100.000 MHz, H: 93.985 kHz, V: 116.318 Hz
        Modeline "1024x768" 100.000 1024 1040 1048 1064 768 784 792 808
-HSync -VSync
EndSection

Section "Device"
        Identifier "Card0"
# Option "fbdev" "/dev/fb0"
        Driver "r128"
        BusID "PCI:0:14:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device "Card0"
        Monitor "Monitor0"
        DefaultDepth 24
        DefaultFbBpp 32
        SubSection "Display"
                Depth 8
                FbBpp 32
                Modes "1024x768"
        EndSubSection
        SubSection "Display"
                Depth 16
                FbBpp 32
                Modes "1024x768"
        EndSubSection
        SubSection "Display"
                Depth 24
                FbBpp 32
                Modes "1024x768"
        EndSubSection
EndSection

Extract from kernel configuration ....

#
# USB support
#
CONFIG_USB=y
CONFIG_USB_DEBUG=y
CONFIG_USB_DEVICEFS=y
CONFIG_HOTPLUG=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_UHCI is not set
# CONFIG_USB_UHCI_ALT is not set
CONFIG_USB_OHCI=y
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_SCANNER is not set
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_ACM is not set
# CONFIG_USB_SERIAL is not set
# CONFIG_USB_IBMCAM is not set
# CONFIG_USB_OV511 is not set
# CONFIG_USB_DC2XX is not set
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_STORAGE is not set
# CONFIG_USB_DABUSB is not set
# CONFIG_USB_PLUSB is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_DSBR is not set
# CONFIG_USB_BLUETOOTH is not set
# CONFIG_USB_KAWETH is not set
CONFIG_USB_HID=y
# CONFIG_USB_WACOM is not set
# CONFIG_USB_WMFORCE is not set
CONFIG_INPUT_KEYBDEV=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_EVDEV=y

#
# Mac device drivers
#
CONFIG_INPUT_ADBHID=y
CONFIG_MAC_HID=y
CONFIG_MAC_ADBKEYCODES=y
CONFIG_MAC_EMUMOUSEBTN=y
CONFIG_PPC_RTC=y
CONFIG_MAC_FLOPPY=y
CONFIG_MAC_SERIAL=y
# CONFIG_SERIAL_CONSOLE is not set



This archive was generated by hypermail 2a24 : Tue Dec 26 2000 - 13:51:05 MST