Subject: XFree86 config file for iBook SE (clamshell graphite model)
To: None <port-macppc@NetBSD.org>
From: David H.Gutteridge <dhgutteridge@sympatico.ca>
List: port-macppc
Date: 12/23/2005 18:59:44
Hi all,

I've noticed several people posting on here in the last few days
with X configuration questions for an original iBook.  I've been
running the NetBSD 1.6 release series on mine (iBook SE, 366MHz,
graphite clamshell) for over two-and-a-half years flawlessly
(starting with 1.6.1, which shipped with XFree86 4.2.1).  I've
attached my XFree86 config file in case it helps anyone else.
(With the caveat that, as above, I haven't tried it with 2.x or 3.x
or -current and their attendant versions of X, though I intend to
upgrade to 3.0 some time next week.)  It runs at 16 bit depth,
800x600.  (I didn't try tinkering with the file much, but now
that I think about it...)

Regards,

Dave

# ibook xfree 4.2.0 configuration
# base configuration from xf86cfg, tweaked using
# hints from Matsubayashi 'Shaolin' Kohji shaolin@rhythmaning.org
# and K. Hanai-san hanai@koto.kpu-m.ac.jp

Section "ServerLayout"
    Identifier     "ibook"
    Screen         "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    RgbPath      "/usr/X11R6/lib/X11/rgb"
    ModulePath   "/usr/X11R6/lib/modules"
    FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
    FontPath     "/usr/X11R6/lib/X11/fonts/TrueType/"
    FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
    FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
    Load  "dbe"
    Load  "extmod"
    Load  "glx"
    Load  "record"
    Load  "xtrap"
    Load  "speedo"
    Load  "type1"
    Load  "freetype"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "keyboard"
    Option      "Protocol" "wskbd"
    Option      "Device" "/dev/wskbd0"
    Option      "XkbRules" "xfree86"
    Option      "XkbModel" "macintosh"
    Option      "XkbLayout" "us"
    Option      "XkbVariant" "us"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "wsmouse"
    Option      "Device" "/dev/wsmouse"
    Option      "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Apple"
    ModelName    "LCD"
    HorizSync    31-80
    VertRefresh  56-76
EndSection

Section "Device"
    Identifier  "Card0"
        Driver      "ati"
        Option      "device" "/dev/ttyC0"
    VendorName  "ATI"
    BoardName   "Mach 64"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth 16

    SubSection "Display"
        Depth    8
        Modes "1024x768" "800x600"
    EndSubSection
    SubSection "Display"
        Depth     16
        Modes "1024x768" "800x600"
    EndSubSection
    SubSection "Display"
        Depth     24
        Modes "1024x768" "800x600"
    EndSubSection
EndSection