The 3 Button Serial Mouse mini-HOWTO: XF86Config and Xconfig file examples

Next Previous Contents

## 10. XF86Config and Xconfig file examples

The location of your configuration file for X depends on the particular release and distribution you have. It will probably be either `/etc/Xconfig, /etc/XF86Config` or `/usr/X11/lib/X11/XF86Config.` You should see which one it is when you start X - it will be echoed to the screen before all the options are displayed. The syntax is slightly different between the XF86Config and Xconfig files, so both are given.

Microsoft Serial Mouse

- XF86config:

  > `

  >     Section "Pointer"
  >         Protocol "microsoft"
  >         Device "/dev/mouse"
  >     EndSection

  > `

- Xconfig:

  > `

  >     #
  >     # Mouse definition and related parameters
  >     #
  >     Microsoft      "/dev/mouse"

  > `

Microsoft Serial Mouse with Three Button Emulation

- XF86config:

  > `

  >     Section "Pointer"
  >         Protocol "microsoft"
  >         Device "/dev/mouse"
  >         Emulate3Buttons
  >     EndSection

  > `

- Xconfig:

  > `

  >     #
  >     # Mouse definition and related parameters
  >     #
  >     Microsoft      "/dev/mouse"
  >     Emulate3Buttons

  > `

MouseSystems Three Button Serial Mouse

- XF86config:

  > `

  >     Section "Pointer"
  >         Protocol "mousesystems"
  >         Device "/dev/mouse"
  >         ClearDTR            #  These two lines probably won't be needed,
  >         ClearRTS            #  try without first and then just the DTR
  >     EndSection

  > `

- Xconfig:

  > `

  >     #
  >     # Mouse definition and related parameters
  >     #
  >     MouseSystems    "/dev/mouse"
  >     ClearDTR                #  These two lines probably won't be needed,
  >     ClearRTS                #  try without first and then just the DTR

  > `

Microsoft Serial Mouse with gpm -R

- XF86config:

  > `

  >     Section "Pointer"
  >         Protocol "MouseSystems"
  >         Device "/dev/gpmdata"
  >     EndSection

  > `

- Xconfig:

  > `

  >     #
  >     # Mouse definition and related parameters
  >     #
  >     MouseSystems      "/dev/gpmdata"

  > `

Next Previous Contents