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

Bug#2351: xdm doesn't detect gpm mouse lock



On Sun, 18 Feb 1996, Chris Walker wrote:

>
> Kevin M Bealer <kmb203@psu.edu> wrote:
> >Package: xbase
> >Version: 3.1.2-7
> >
> >According to dpkg -l :
> >
> >ii  xbase            3.1.2 7    XFree86 3.1.2 base distribution.
> >ii  gpm               1.00 11   A mouse event server for the Linux
> >console ii  xserver-s3       3.1.2 3    XFree86 3.1.2 S3 server
> >
> [Snip]
>
> >
> >If I run startx it complains that it cannot get the mouse resource, and
> >when
> >I kill gpm, it runs without a problem.  It appears that xdm is fine, but
> >the
> >X server keeps failing.
>
>
> I had this problem when using a PS/2 mouse. The solution was to use MCONV2
> which allowed both X and gdm to have control of the mouse. I used this
> solution with an old Slackware installation, but have not tested it with
> Debian.
>
> The lsm entry for mconv2 is:
> > Begin3
> > Title:          mconv2
> > Version:        0.1
> > Entered-date:   Fri Jan 27 1995
> > Description:    Allows more than one programs to use a ps/2-style mouse
> >                 simultaneously, and also the use of programs which doesn't
> >                 understand the ps/2 mouse protocol, but does understand
> >                 the microsoft serial mouse protocol (like svgalibdoom).
> > Keywords:       ps/2, mouse, svgalib, doom
> > Author:         Johan Myreen, modifications by Frode V. Fjeld.
> > Maintained-by:  frodef@stud.cs.uit.no (Frode V. Fjeld)
> > Primary-site:   sunsite.unc.edu /pub/Linux/system/Misc
> > End
>
> I hope this helps.
>
> Chris


Yes!  This works good.  I have made two devices out of my mouse with this
program and X and the console work with the same device now.

One minor irritation:  gpm uses a different scheme for the buttoning than
X11 with the emulate 3 buttons.  On my particular setup, if I am in a
virtual terminal, and I use X11's paste button, it will paste in the
"focused" X11 app which  - is not visible - .  X11 and the terminal of
course have different buffers.

Other than this (prob unavoidable) side effect, all is well.

Files I had to change:

etc/X11/XF86Config:

# **********************************************************************
# Pointer section
# **********************************************************************

Section "Pointer"
    Protocol    "PS/2"
    Device      "/dev/ps2mouse"
# This is the fake device controlled by mconv2
# the real device is "/dev/psmouse"

/etc/init.d/gpm:

#!/bin/sh
#
# Start Mouse event server

test -f /usr/bin/gpm || exit 0

TYPE=bare

case "$1" in
  start)
     echo "Starting gpm"
     /usr/local/bin/mconv2 /dev/psmouse -ms /dev/mikemouse -ps2 \
	/dev/ps2mouse -mse /dev/msemouse &
     /usr/bin/gpm -t bare -m /dev/mikemouse
     ;;
  stop)
     /usr/bin/gpm -k
     ;;
  *)
     echo "Usage: /etc/init.d/gpm {start|stop}"
     exit 1
esac

exit 0
_______________________

Note: I use two of the three 'fake' devices, I am not sure if both can use
the same device or not, but I don't think so.  I use ps2 for X and microsoft
"mikemouse" for gpm.

If the mconv2 command does not end in (&) the system hangs.

Also the three fake devices must be made with mkfifo commands as per the
README.

I got the item from a sunsite mirror as listed above.

Thanks!


So you think you know the real meaning of fear?       |
Yeah, you think you do know, but I doubt it.          |  kmb203@psu.edu
When you sit in a shelter with bombs falling all over.|  running debian
And the houses around you are burning like torches.   |  Linux 1.2.13
I agree that you experience horror and fright         |
For such moments are dreadful, for as long as they last,
But the all-clear sounds--then it's okay--          |  -- Ilya Selvinskiy
You take a deep breath, the stress has passed by.   | (Taken from "The Sum
But real fear is a stone deep down in your chest.   |   of All Fears" by
You hear me?  A stone.  That's what it is, no more. | Tom Clancy pg. 182.)



Reply to: