Page 1 of 1

how to make X read /dev/gpmdata?

Posted: Sat Aug 21, 2010 8:26 pm
by tqk
How do I generate an xorg.conf please? I've just installed on a desktop with which I'd like to use an old serial mouse. I need to tell xorg to read /dev/gmpdata:

Section "InputDevice"
Identifier "Configured Mouse"
Driver "Mouse"
Option "Device" "/dev/gpmdata"
Option "Protocol" "IntelliMouse"
Option "ZAxisMapping" "4 5"
EndSection

How do I do that when /etc/X11/xorg.conf doesn't exist?

Thanks.

Re: how to make X read /dev/gpmdata?

Posted: Sat Aug 21, 2010 8:50 pm
by dawgdoc
In a terminal enter

Code: Select all

sudo gedit /etc/X11/xorg.conf
This will open a text editor with an empty file.

Paste your code and save.

Hope that helps.

Re: how to make X read /dev/gpmdata?

Posted: Wed Aug 25, 2010 11:03 pm
by tqk
No, it doesn't help. I was hoping to find a xorg.conf somewhere that I could tweak. Dumping that fragment into /etc/X11/xorg.conf does nothing.

Re: how to make X read /dev/gpmdata?

Posted: Thu Aug 26, 2010 2:49 am
by dawgdoc
This post gives two methods to have your system generate an xorg.conf, rather than just creating a blank file.

If you are wanting a sample, hear is my xorg.conf from Gloria. Remember it will take editing on your part - your hardware is bound to be different. Cut and paste to your heart's content. Other than that, it would mean searching the web for a sample from a system similar to yours.

Code: Select all

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildd@palmer)  Sun Feb  1 20:21:04 UTC 2009

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Module"
    Load           "glx"
    Load           "dbe"
EndSection

Section "ServerFlags"
    Option         "DontZap" "False"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "Configured Monitor"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "LPL"
    HorizSync       30.0 - 75.0
    VertRefresh     60.0
EndSection

Section "Device"
    Identifier     "Configured Video Device"
    Driver         "nvidia"
    Option         "NoLogo" "True"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce Go 6150"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "Configured Video Device"
    Monitor        "Configured Monitor"
    DefaultDepth    24
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "1280x800 +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection