Subject: xfree almost
To: None <port-macppc@netbsd.org>
From: None <brendan@cs.uchicago.edu>
List: port-macppc
Date: 07/30/2001 15:32:00
ok, i almost have xfree working. i only have one problem left: my
keyboard mapping is screwy. the InputDevice section in XF86Config(1)
is really sparse. so i don't know what keywords to use to get it to
use my powerbook keyboard correctly. i suppose i could experiment
and xmodmap several hundred keys but there has got to be a better
way. it does recognize the keyboard, but 8 -> return, d -> 1, etc.
everything is mapped in an incorrect way.

thanks,
brendan

my (otherwise working) XF86Config follows:

#
# XF86Config example
#

# The ordering of sections is not important in version 4.0 and later.

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"
    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/75dpi/"
    FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

# **********************************************************************
# Server flags section.  This contains various server-wide Options.
# **********************************************************************

Section "ServerFlags"
    Option	"blank time"	"10"	# 10 minutes
    Option	"standby time"	"20"
    Option	"suspend time"	"30"
    Option	"off time"	"60"

#    Option	"PCI type"	"UniNorth"
#    Option	"PCI type"	"Bandit"
    Option	"PCI type"	"Grackle"
EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"
    Identifier	"Keyboard1"
    Driver	"keyboard"
    Option	"Protocol"	"wskbd"
#    Option	"Device"	"/dev/wskbd"
    Option	"Device"	"/dev/wskbd0"

#    Option	"AutoRepeat"	"500 5"
    Option	"XkbRules"	"xfree86"
#    Option	"XkbModel"	"macusb"
    Option	"XkbModel"	"macadb"
#    Option	"XkbModel"	"macintosh"
    Option	"XkbLayout"	"us"
#    Option	"XkbVariant"	"altjp"
EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"
    Identifier	"Mouse1"
    Driver	"mouse"
    Option	"Protocol"	"wsmouse"
    Option	"Device"	"/dev/wsmouse0"
#    Option	"Device"	"/dev/wsmouse1"
EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"
    Identifier	"Generic Monitor"
    HorizSync	27-82         # multisync
    VertRefresh	50-72         # multisync
    Option	"dpms"
EndSection

# **********************************************************************
# Graphics device section
# **********************************************************************

Section "Device"
    #Chipset	"mach64"
    Identifier	"ati rage"
    Driver	"ati"
    #BusID	"PCI:0:16:0"
    #Option	"noaccel"
    Option	"accel"
EndSection

# **********************************************************************
# Screen sections.
# **********************************************************************

Section "Screen"
    Identifier		"Screen1"
    Device		"ati rage"
    Monitor		"Generic Monitor"

# XXX 24bpp may be broken

#   DefaultDepth	8
    DefaultDepth	16
#   DefaultDepth	24

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


# **********************************************************************
# ServerLayout sections.
# **********************************************************************

Section "ServerLayout"
    Identifier	"Main Layout"
    Screen	"Screen1"
    InputDevice	"Mouse1"	"CorePointer"
    InputDevice	"Keyboard1"	"CoreKeyboard"
EndSection