Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XF86Config for Dell Latitude CPi D300XT with NeoMagic nm2160
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
fmouse
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jul 2003
Posts: 101

PostPosted: Mon Jul 28, 2003 10:28 pm    Post subject: XF86Config for Dell Latitude CPi D300XT with NeoMagic nm2160 Reply with quote

The following XF86Config has X up and running on my Dell Latitude CPi DX300XT Laptop. Documentation for this laptop model is hard to come by on the Internet, and the best source I could find was at http://www.act.cmis.csiro.au/gjw/linux/dlcpid300xt.html, and this only for X version 3. I combined references from several sources to put this together and it appears to work well, at least as far as I can tell so far. Note that this setup requires xfs. If you're not using xfs, comment out the FontPath for the xfs server ("unix/:7100").
Code:
# $XConsortium: XF86Conf.cpp /main/22 1996/10/23 11:43:51 kaleb $

#XF86Config-4 for the Dell Latitude CPi D300XT w. NeoMagic nm2160
# chipset.

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

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"
    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/"

# 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


# **********************************************************************
# Module section -- this is an optional section which is used to specify
# which run-time loadable modules to load when the X server starts up.
# **********************************************************************

Section "Module"

# This loads the DBE extension module.

    Load        "dbe"

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.

    SubSection  "extmod"
        Option  "omit xfree86-dga"
    EndSubSection

# Module loading section

        Load  "dbe"             # Double-buffering
        Load  "GLcore"          # OpenGL support
        Load  "dri"             # Direct rendering infrastructure
        Load  "glx"             # OpenGL X protocol interface
        Load  "extmod"          # Misc. required extensions
        Load  "v4l"             # Video4Linux
        # You only need the following two modules if you do not use xfs.
        # Load  "freetype"      # TrueType font handler
        # Load  "type1"         # Adobe Type 1 font handler

EndSection

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is
# received.  This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

#    Option     "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option     "DontVTSwitch"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option     "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

#    Option     "DontZoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

#    Option     "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client.

#    Option     "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings.

#    Option     "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option     "AllowNonLocalModInDev"

# Set the basic blanking screen saver timeout.

    Option      "blank time"    "10"    # 10 minutes

# Set the DPMS timeouts.  These are set here because they are global
# rather than screen-specific.  These settings alone don't enable DPMS.
# It is enabled per-screen (or per-monitor), and even then only when
# the driver supports it.

#    Option     "standby time"  "20"
#    Option     "suspend time"  "30"
#    Option     "off time"      "60"

# On some platform the server needs to estimate the sizes of PCI
# memory and pio ranges. This is done by assuming that PCI ranges
# don't overlap. Some broken BIOSes tend to set ranges of inactive
# devices wrong. Here one can adjust how aggressive the assumptions
# should be. Default is 0.

# Option   "EstimateSizesAggresively" "0"

EndSection

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

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

Section "InputDevice"

    Identifier  "Keyboard0"
    Driver      "keyboard"

# Set the keyboard auto repeat parameters.
#
#   AutoRepeat delay (msecs)  rate (per second)
#       changes the behavior of the autorepeat of the key
#       board.  This does not work on all platforms.

    Option      "AutoRepeat"    "500 20"

# Specifiy which keyboard LEDs can be user-controlled (eg, with xset(1)).

    Option      "Xleds" "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.

#    Option     "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a European
# keyboard, you will probably want to use one of:
#
#    Option     "XkbModel"      "pc102"
    Option      "XkbModel"      "pc105"
#
# If you have a Microsoft Natural keyboard, you can use:
#
#    Option     "XkbModel"      "microsoft"
#
# If you have a US "windows" keyboard you will want:
#
#    Option     "XkbModel"      "pc104"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#
#    Option     "XkbLayout"     "de"
#
# or:
#
#    Option     "XkbLayout"     "de"
#    Option     "XkbVariant"    "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#
#    Option     "XkbOptions"    "ctrl:swapcaps"


# These are the default XKB settings for XFree86
#
#    Option     "XkbRules"      "xfree86"
#    Option     "XkbModel"      "pc101"
#    Option     "XkbLayout"     "us"
#    Option     "XkbVariant"    ""
#    Option     "XkbOptions"    ""

EndSection

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

Section "InputDevice"

# Identifier and driver

    Identifier  "Mouse0"
    Driver      "mouse"

# The mouse protocol and device.  The device is normally set to /dev/mouse,
# which is usually a symbolic link to the real device.

    Option      "Protocol"      "PS/2"
    Option      "Device"        "/dev/mouse"

# On platforms where PnP mouse detection is supported the following
# protocol setting can be used when using a newer PnP mouse:

#    Option     "Protocol"      "Auto"

#    Option     "SampleRate"    "150"

# Emulate3Buttons is an option for 2-button mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

    Option      "Emulate3Buttons"
    Option      "Emulate3Timeout"       "50"

# ChordMiddle is an option for some 3-button Logitech mice, or any
# 3-button mouse where the middle button generates left+right button
# events.

#    Option     "ChordMiddle"

EndSection


Section "Monitor"

# The identifier line must be present.

    Identifier  "Dell SyncMaster 17GLi"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync   31.5 - 48.5         # multisync

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    VertRefresh 55-65

# Modes can be specified in two formats.  A compact one-line format, or
# a multi-line format.

# For the Dell CPi w. NeoMagic video

   Modeline     "1024x768" 65 1024 1032 1176 1344 768 771 777 806 -hsync -vsync

EndSection


# **********************************************************************
# Setup for the NeoMagic Chipset
# **********************************************************************

# This setup is used when the notebook is not docked with display being to
# an external monitor. Both internal and external displays don't work
# together and so you need to manually edit the XF86Config file each time
# you change between the external and internal display (could be done with a
# script, but essentially you swap the "#" around, which is used to identify
# a comment line). It is reported that having both enabled can destroy the
# internal display. It certainly makes it go pretty ugly momentarily.
# According to the Linux on the Dell Latitude CPi A366XT page, you can't
# just switch between internal and external displays without updating your
# XF86Config and restarting X, or YOU CAN DAMAGE YOUR DISPLAYS!
#
# Thanks to Graham Williams for the above.  See
# http://www.act.cmis.csiro.au/gjw/linux/dlcpid300xt.html for more
# information

Section "Device"
        Identifier "NeoMagic"
        Driver "neomagic"
        BoardName "Unknown"
#   Option     "Rotate"
#   Option     "pciBurst"
#   Option     "ShadowFB"
#   Option     "NoStretch"
#   Option     "LcdCenter"
#    Option     "externDisp"            # Uncomment this for external video
    Option     "internDisp"             # Uncomment this for internal video
    Option     "overrideValidateMode"
#   Option     "noMMIO"
#   Option     "SWcursor"
#   Option     "NoAccel"
#   Option     "NoLinear"
#    Option     "XaaNoScanlineImageWriteRect"
#    Option     "XaaNoScanlineCPUToScreenColorExpandFill"
EndSection


Section "Screen"
    Identifier  "Screen0"
    Device      "NeoMagic"
    Monitor     "Dell SyncMaster 17GLi"
    DefaultColorDepth 16
    Subsection  "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480"
    EndSubsection
EndSection

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

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"
        Identifier "XFree86 Dell CPi D300XT"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum