[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XF86Config for PowerBook G4 (AGP 500MHz)



弾です。ここに質問をするのは久しぶりです。

御用もめでたくおさまったので、先代のメインマシンのPowerBook G4 (AGP 500MHz)(現代のメインマシンはPowerBook 
G4 (AGP 800MHz))をいろいろいじって楽しんでます。とりあえず、MacOS 9/X/Vine Linux/NetBSDのQuad 
Boot にしました。OSのインストールも一通り落ち着いたところで、久しぶりにXF86Configと格闘しました。

最近のi386なマシンだと、XF86Configはほとんど XFree86 -config 
まかせで、あとはせいぜいFontPathまわりに手を入れる程度なので、いろいろ格闘した結果、以下の設定まではたとりつけました。

* XFree86のバージョンは4.2.0-current
   ftp://ftp.jp.netbsd.org/pub/NetBSD/arch/macppc/X-4.2.0-current/
* Kernel は options INSECURE を付けて作り直し
* XF86Config のベースは上記URIにあるものがベース。ただし Modeline 
を手書きしないとうまくいかず、ModelineはVine Linux 2.6が自動生成したものを拝借

これでとりあえず動くようにはなったのですが、

* delete を押すと ~ (tilde)が出てくる
   Section "InputDevice" をいろいろいじってもらちがあかない
* X を抜けても Console がきちんと復活しない
   まあこれはそれほどcriticalではないので
  (wsconsは遅いので、shell onlyで使いたい時はsloginしちゃてtます)

という問題が残っています。Xに関しては万年ドシロートなので、どなたかお知恵を拝借したく質問した次第です。なお、

Dan the Man with Too Many OSes to Play With

#
# 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/75dpi/:unscaled"
     FontPath    "/usr/X11R6/lib/X11/fonts/100dpi/: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      "XkbDisable"
     Option      "AutoRepeat"    "500 5"
     Option      "XkbRules"      "xfree86"
     Option      "XkbModel"      "macintosh"
     Option      "XkbLayout"     "us"
     #Option     "XkbVariant"    "us"
     Option      "XkbVariant"    "nodeadkeys"
EndSection

#Section "InputDevice"
#        Identifier      "Keyboard1"
#        Driver          "keyboard"
#        Option          "XkbDisable"
#EndSection


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

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

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

Section "Modes"
         Identifier      "Modes0"
         # Shamelessly stolen from Vine Linux 2.6
         # Generated
         # D: 78.740 MHz, H: 54.681 kHz, V: 68.351 Hz
         Modeline "1152x768" 78.740 1152 1186 1282 1440  768 769 772 800 
  +HSync +VSync
EndSection

# Any number of monitor sections may be present

Section "Monitor"
     Identifier  "Generic"
     UseModes    "Modes0"
     HorizSync   30-100
     VertRefresh 50-160
     Option      "dpms"
EndSection

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

Section "Device"
     #Chipset    "ati"
     Identifier  "ATI Rage 128"
     Driver      "r128"
     BusID       "PCI:0:16:0"
     # Option    "noaccel"
EndSection

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

Section "Screen"
     Identifier          "Screen1"
     Device              "ATI Rage 128"
     Monitor             "Generic"

# XXX 24bpp may be broken

#  DefaultDepth        16
    DefaultDepth        24

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

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

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