XF86config for usb mouse

Here is a note from Thanassis Misaridis on the xf86config for using a usb mouse in conjunction with the built-in mousepad.

He has a zt1180 under mandrake 8.2, and has video working too

About the mouse: I am using two mice (built-in and an external USB mouse) They work both at the same time with no conflict under XFree86 4.2. The wheel works too for both.

You have to add two entries in your XF86Config file:

InputDevice    "Mouse1" "CorePointer"
InputDevice    "Mouse2" "SendCoreEvents"

I have attached my XF86Config. Remember to change your resolution for your laptop (Mine has 1400X1050). XF86Free 4.2 is great. Antialiasing fonts and graphics supported by Qt/KDE is fabuluous. XVideo extension works fine too and I can watch DVDs.

Sounds works fine too. Tell your friend to drop me a line if he needs help with configuring it under Mandrake.

Regards,
Thanassis



# File generated by XFdrake.
# **********************************************************************
# Refer to the XF86Config(4/5) man page for details about the format of
# this file.
# **********************************************************************
# **********************************************************************
# Server flags section.
# **********************************************************************
# **********************************************************************
# Input devices
# **********************************************************************
# **********************************************************************
# Keyboard section
# **********************************************************************
# **********************************************************************
# Pointer section
# **********************************************************************
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
# **********************************************************************
# Graphics device section
# **********************************************************************
# **********************************************************************
# Screen sections
# **********************************************************************

Section "ServerLayout"
	Identifier     "layout1"
	Screen         "screen1" 0 0
	Option	       "Xinerama" "on"
	InputDevice    "Mouse1" "CorePointer"
	InputDevice    "Mouse2" "SendCoreEvents"
	InputDevice    "Keyboard1" "CoreKeyboard"
EndSection

Section "Files"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	
	FontPath     "unix/:-1"
        FontPath     "/usr/X11R6/lib/X11/fonts/hellas"
        FontPath     "/usr/X11R6/lib/X11/fonts/hellas/misc"
        FontPath     "/usr/X11R6/lib/X11/fonts/hellas/Type1"
        FontPath     "/usr/X11R6/lib/X11/fonts/hellas/greekofc"
        FontPath     "/usr/X11R6/lib/X11/fonts/mozilla-fonts"
        FontPath     "/usr/X11R6/lib/X11/fonts/drakfont"
        FontPath     "/usr/X11R6/lib/X11/fonts/drakfont/ttf"
        FontPath     "/usr/X11R6/lib/X11/fonts/drakfont/Type1"
        FontPath     "/usr/X11R6/lib/X11/fonts/mdk/"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
        FontPath     "/usr/share/fonts/default/Type1"
        FontPath     "/usr/share/fonts/ISO8859-2/Type1"
        FontPath     "/win/windows/fonts/"
        FontPath     "/wxp/WINDOWS/Fonts/"
EndSection

Section "Module"
# This loads the DBE extension module.
# initialisation of the XFree86-DGA extension within that module.
# This loads the Type1 and FreeType font modules
	Load  "dbe"# This loads the Video for Linux module.
	Load  "v4l"# This loads the miscellaneous extensions module, and disables
	Load  "extmod"	#Option	"omit xfree86-dga"
	Load  "bitmap"
	Load  "type1"
	Load  "freetype"
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
    #NoTrapSignals
    # Uncomment this to disable the  server abort sequence
    # This allows clients to receive this key event.
    #DontZap
    # Uncomment this to disable the / mode switching
    # sequences.  This allows clients to receive these key events.
    #DontZoom
    # This  allows  the  server  to start up even if the
    # mouse device can't be opened/initialised.
	Option	    "allowmouseopenfail"
EndSection

Section "InputDevice"
	Identifier  "Keyboard1"
	Driver      "Keyboard"
	Option	    "AutoRepeat" "250 30"
	Option	    "XkbRules" "xfree86"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "us"
EndSection

Section "InputDevice"
#    Option "ChordMiddle"
	Identifier  "Mouse1"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/psaux"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons"
	Option	    "Emulate3Timeout" "50"# ChordMiddle is an option for some 3-button Logitech mice
EndSection

Section "InputDevice"
	Identifier  "Mouse2"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/usbmouse"
	Option	    "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
	Identifier   "Generic|Generic Laptop Display Panel 1400x1050"
	VendorName   "Generic"
	ModelName    "Unknown"
	HorizSync    31.5 - 90.0
	VertRefresh  59.0 - 75.0
	ModeLine     "1024x480" 65.0 1024 1032 1176 1344 480 488 494 563 -hsync -vsync
	ModeLine     "768x576" 50.0 768 832 846 1000 576 590 595 630
	ModeLine     "768x576" 63.1 768 800 960 1024 576 578 590 616
EndSection

Section "Device"
	Identifier  "Generic VGA"
	Driver      "vga"
    Option "BackingStore" "On"
EndSection

Section "Device"
#    VideoRam    15296
    # Clock lines
    # Uncomment following option if you see a big white block        
    # instead of the cursor!                                          
    #    Option      "sw_cursor"
	Identifier  "S3 Savage4"
	Driver      "savage"
	VendorName  "Unknown"
	BoardName   "Unknown"
	Option	    "DPMS" "on"
    Option "BackingStore" "On"
EndSection

Section "Screen"
	Identifier "screen1"
	Device     "S3 Savage4"
	Monitor    "Generic|Generic Laptop Display Panel 1400x1050"
	DefaultDepth     24
	SubSection "Display"
		Depth     8
		Modes    "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes    "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes    "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes    "1400x1050" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection