1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172
|
This file tries to summarize the questions that I've been responding over
and over. It is meant to save some time to both you and me :)
If your problem with gpm isn't described here, feel free to ask me by
Email.
--
__ o La forza dei forti sta nel traversare le traversie con occhio sereno
_`\<, (Paperino)
__( )/( )__ rubini@prosa.it +39-382-529554
1. Installation / Compiling
2. Running problems
3. other questions
===========================================================================
1. Installation / Compiling
===========================================================================
2. Running problems
===========================================================================
Q: My serial mouse works in X with ms protocol, but behaves erratically
with gpm on the text console, and I get involuntary pastes.
A: Many ms protocol mice equipped with three buttons use an extension
to the protocol, which consists in repeating events (thus with no
effect under the normal protocol) to signal a change in the middle
button. Unfortunately, some old true-ms protocol mice do repeat
events, thus triggering the middle-button in gpm.
If you're running your mouse with ``-t ms'', you'd better try ``-t
bare'', which is the unadorned ms protocol of the old days. My
choice to use the third-button extension as the default, was taken
because a true ms protocol doesn't repeat event notification, and
because many three button mice feature the extension.
---------------------------------------------------------------------------
Q: I have a serial mouse. It works fine except that when I try to drag
the mouse with the middle button pressed, gpm assumes that the middle
button has been released. Dragging with the other buttons works just
fine.
A: You are probably running your mouse with ``-t ms''. In this mode
dragging with the middle button has been deliberately disabled in
order to prevent problems with faulty mice that fail to report
middle-button events during mouse motion.
Try using ``-t ms+'' or ``-t ms+lr'' instead.
---------------------------------------------------------------------------
Q: My mouse gets into a state where it thinks the middle button is up
when it's down and vice versa.
A: Your mouse uses an extension to the m$ protocol in order to report
the middle button. It sends empty events (i.e., no-motion &
no-button-change) in order to report a change in the status of the
middle button.
Unfortunately many devices that report middle-button events in this
way often fail miserably to report them correctly during mouse
motion. Since the protocol does not distinguish between the button
going up and the button going down it can easily get out of step
with reality.
There are two solutions: either use ``-t ms'', which disallows
dragging with the middle button, so you can get back to normal
simply by moving the mouse without any buttons pressed; or (probably
better) use ``-t ms+lr'', which allows you to reset the state of
the middle button by pressing the other two buttons together. (If
you want you can also deliberately get gpm out of step with reality
by pressing the left and right buttons while holding the middle
button!)
Note that there are many more faulty mice in the world than
non-faulty ones so you will probably will have to use ``-t ms+lr''
rather than ``-t ms+''.
Note also that most 3-button mice that use the microsoft protocol can
be made to use the MouseSystems protocol instead. You might want to
read about this in the ``3 Button Serial Mouse mini-HOWTO''.
---------------------------------------------------------------------------
Q: My mouse doesn't sense the middle button in X, while it works with
gpm.
A: Gpm uses a different decoder (see the previous two answers). You
can use the ``-R'' option to repeat mouse data to X (look at the man
page).
---------------------------------------------------------------------------
Q: I have a busmouse, and I have the single-open problem. Is there any
way around it?
A: Try the -R option of gpm (look at the man page)
---------------------------------------------------------------------------
Q: I run "-t ms", and I get double-paste when I press the middle button.
Is there any workaround?
A: Try "-t mman" instead.
---------------------------------------------------------------------------
Q: I have one of the new devices of old dear Bill, and gpm doesn't work any
more. What can I do?
A: Bill chose to use its own Plug-and-Pray specification, which finally
managed to break what worked painlessly for ages. The decoder for
any gpm up to 1.12 (and also any X version being used at the time)
is unable to deal with the new devices, which claim to be designed
to work with older drivers. Try to use "-t pnp" instead of "-t ms"
and see if it works with this gpm version. Actually, this version
might even work with "-t ms" or "-t bare", but I'm not sure about
it. If the version of X you run has problems, while gpm now works,
try passing the "-R" option to gpm (see the man page). Note that
"-t pnp" is strongly discouraged, as any time the serial port is
opened (for example when switching from X to text mode if "-R" is
not active) it will take several seconds to be initialized -- a
design misfeature of pnp. If either "-t ms" or "-t bare" work use
them instead.
If you are in the software field, you can enjoy the inaccuracies of
the specs and design bugs directly from the originators:
http://www.microsoft.com/hwdev/download/pnpcom.exe. You'll find the
following, and more:
- no support for real multitasking (the mouse driver must be able
to keep hold of processor time for at least 1 second).
- no pnp vendor will be able to support three buttons any more (no
more mouse protocols, all mice must behave the same).
- similarly, only 1200 baud devices (any serial device) are supported,
because the initialization string of pnp devices only tells
the vendor and release, with no information about required
port configuration.
- people with UPS will have great troubles with ms software
because the pnp probing sequence plays with DTR, and w95
probes all serial ports. This funny idea might turn off
the UPS connected with your computer just after booting w95.
Don't despair. They will manage to make worse designs later on.
---------------------------------------------------------------------------
Q: I have an old 386 computer around here and gpm is _really_ slow. Is there
any way I can make it faster ?
A: Go into src/headers/gpmCfg.h and look for DEF_CLUSTER. Change its values from
0 to 10.
---------------------------------------------------------------------------
Q: gpm.conf is not accepted / does not work, but gpm works from command line.
A: gpm.conf is not from gpm itself. Please contact your distrubtion support
to clearify whats wrong.
===========================================================================
3. other questions
===========================================================================
Q: I am gonna buy computer X, do I have any chance getting gpm running on it?
A:
a) If it does not work, you could at least try to port it ;)
b) As report by a friend, gpm currently runs on Linux on
- i386 - Alpha - ARM - PA-RISC - ia64 (Itanium) - PPC - m68k - MIPS - SPARC
It's possible that you need some patches for some architecture.
|