GPM Configuration

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

 



Dear Friends,
I'm very sorry for the html messages posted few days ago...
Anyway I correctly configure gpm for runlevel 3 and 5.

Here the solution:


NOTES: SuSE 8.0; Kernel Linux 1.4.18; gpm 1.19.6; Serial Mouse Microsoft 2
Buttons 1 Wheel

My approch to the problem is:

1) Make gpm working in Text Mode (runlevel 3 == init 3)
2) Make gpm working with X (runlevel 5 == init 5)

1) I created the FIFO file /dev/gpmdata whith the command:

        'mknod /dev/gpmdata p'

   Gpm is installed in /usr/sbin and running with arguments "-R -t
$GPM_PROTOCOL -m $MOUSE -d 2 -a 5 -B 132 -p"

   Here is my config file /etc/sysconfig/mouse:

     # Starts /etc/sysconfig/mouse
     # Which device is the mouse ? (" ln  /dev/mouse  /dev/ttyS2 ")

         MOUSE="/dev/mouse"

      # /dev/mouse is a link pointing to the serial device /dev/ttys2

         MOUSETYPE="Microsoft"
     # the gpm protocol for the mouse device from the variable MOUSE
     # the default value is defined by YAST

         GPM_PROTOCOL="ms3"

     # if the variable GPM_PARAM is empty then gpm will start with option:
     # "-t $GPM_PROTOCOL -m $MOUSE"
     # otherwise you can fill its own parameters for gpm

         GPM_PARAM="-R -t $GPM_PROTOCOL -m $MOUSE -d 2 -a 5 -B 132 -p"

     # The full name of the attached mouse.

         FULLNAME="Microsoft"

     # The YaST-internal identifier of the attached mouse.

         YAST_MOUSE="none"

     # The number of buttons of the attached mouse.

         BUTTONS="2"

     # The number of wheels of the attached mouse.

         WHEELS="1"

         XEMU3="no"

        XMOUSETYPE="mousesystems"

     #EOF

   '/etc/init.d/gpm restart'

2) Here is part of my file /etc/X11/XF86Config the file to configure for
    gpm working whith X.

   # Srarts /etc/X11/XF86Config

                Section "ServerFlags"
                    Option       "AllowMouseOpenFail"
                EndSection

       # Comment out Mouse[1]'s whole input device section. X and gpm trying
       #  to use the same mouse device will have problems.

       #      Section "InputDevice"
       #          Driver       "mouse"
       #          Identifier   "Mouse[1]"
       #          Option       "Device" "/dev/mouse"
       #          Option       "Protocol" "AUTO"
       #          Option       "Name" "AutoDetected"
       #          Option       "Emulate3Buttons" "on"
       #          Option       "Vendor" "AutoDetected"
       #          Option       "Buttons"  "5"
       #          Option       "ZAxisMapping"  "4 5"
       #       EndSection

                Section "InputDevice"
                    Driver       "mouse"
                    Identifier   "Mouse[2]"
                   Option       "Device" "/dev/gpmdata"
                   Option       "Emulate3Buttons" "off"
                   Option       "Protocol" "MouseSystems"
                EndSection

                Section "ServerLayout"
                    Identifier        "Layout[all]"
                    InputDevice  "Keyboard[0]" "CoreKeyboard"
                #  InputDevice  "Mouse[1]" "CorePointer"
                    InputDevice  "Mouse[2]" "CorePointer"
                    Screen          "Screen[0]"
                EndSection

       # EOF

'/etc/init.d/gpm restart'

'startx'

Andrea Iocco www.webshoot.it
BEGIN:VCARD
VERSION:2.1
N:Iocco;Andrea;;web master
FN:Andrea Iocco
ORG:Web Shoot design solutions;Multimedia Production
TITLE:Project Manager
TEL;HOME;VOICE:+39 04044397
TEL;CELL;VOICE:+39 3805194549
ADR;WORK:;;Strada di Fiume 7;Ts;34100;Trieste;Italy
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Strada di Fiume 7=0D=0ATs, 34100 Trieste=0D=0AItaly
ADR;HOME:;;Via Commerciale 148/4;Ts;34100;Trieste;Italy
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Via Commerciale 148/4=0D=0ATs, 34100 Trieste=0D=0AItaly
URL:http://www.webshoot.it
URL:http://www.webshoot.it
EMAIL;PREF;INTERNET:iocco@xxxxxxxxx
REV:20030224T162147Z
END:VCARD

[Index of Archives]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Gimp]     [Yosemite News]