3-Button-Mouse(1).pdf
(
58 KB
)
Pobierz
The 3 Button Serial Mouse mini-HOWTO
The 3 Button Serial Mouse mini−HOWTO
The 3 Button Serial Mouse mini−HOWTO
Table of Contents
The 3 Button Serial Mouse mini−HOWTO.
.....................................................................................................1
Geoff Short, geoffkipper.york.ac.uk.
......................................................................................................1
1. Disclaimer .
..........................................................................................................................................1
2. Introduction.
........................................................................................................................................1
3. Serial Ports .
.........................................................................................................................................1
4. Switched Mice .
...................................................................................................................................1
5. Normal Mice .
......................................................................................................................................1
6. Switching a Mouse to 3−Button Mode .
..............................................................................................1
7. Wheeled mice..
....................................................................................................................................1
8. Using gpm to Switch Mouse Modes .
..................................................................................................1
9. Using two mice .
..................................................................................................................................1
10. XF86Config and Xconfig file examples .
..........................................................................................1
11. Cables, extensions and adaptors .
......................................................................................................1
12. Miscellaneous Problems and Setups .
................................................................................................1
13. Models Tested.
..................................................................................................................................1
14. Further Information.
..........................................................................................................................1
15. Mouse Tail .
.......................................................................................................................................2
1. Disclaimer .
..........................................................................................................................................2
2. Introduction.
........................................................................................................................................2
3. Serial Ports .
.........................................................................................................................................2
4. Switched Mice .
..................................................................................................................................3
5. Normal Mice .
......................................................................................................................................3
6. Switching a Mouse to 3−Button Mode .
..............................................................................................3
7. Wheeled mice..
...................................................................................................................................5
8. Using gpm to Switch Mouse Modes .
.................................................................................................5
9. Using two mice .
..................................................................................................................................6
10. XF86Config and Xconfig file examples .
.........................................................................................7
11. Cables, extensions and adaptors .
......................................................................................................8
12. Miscellaneous Problems and Setups .
...............................................................................................8
13. Models Tested.
..................................................................................................................................9
14. Further Information.
........................................................................................................................11
15. Mouse Tail .
.....................................................................................................................................11
i
The 3 Button Serial Mouse mini−HOWTO
Geoff Short,
geoffkipper.york.ac.uk
v1.33, 31 May 1998
How to get a 3 button serial mouse working properly under Linux.
1.
Disclaimer
2.
Introduction
3.
Serial Ports
4.
Switched Mice
5.
Normal Mice
6.
Switching a Mouse to 3−Button Mode
7.
Wheeled mice
8.
Using gpm to Switch Mouse Modes
9.
Using two mice
10.
XF86Config and Xconfig file examples
11.
Cables, extensions and adaptors
12.
Miscellaneous Problems and Setups
13.
Models Tested
14.
Further Information
The 3 Button Serial Mouse mini−HOWTO
1
The 3 Button Serial Mouse mini−HOWTO
15.
Mouse Tail
1.
Disclaimer
The following document is offered in good faith as comprising only safe programming and procedures. No
responsibility is accepted by the author for any loss or damage caused in any way to any person or
equipment, as a direct or indirect consequence of following these instructions.
2.
Introduction
The most recent version of this document can always be found at
http://kipper.york.ac.uk/mouse.html
There is a Japanese translation at
http://jf.gee.kyoto−u.ac.jp/JF/JF−ftp/euc/3−Button−Mouse.euc
;
and a
French one at
http://www.freenix.fr/linux/HOWTO/mini/3−Button−Mouse.html
.
Other translations may be
available − check your local LDP mirrors.
Most X applications are written with the assumption that the user will be working with a 3 button mouse.
Serial mice are commonly used on computers and are cheap to buy. Many of these mice have 3 buttons and
claim to use the Microsoft protocol, which in theory means they are ideal for the X windows setup. (The
record for the cheapest working 3 button mouse currently stands at $1.14!)
Most dual−protocol mice will work in two modes:
·
3−button MouseSystems mode.
·
This document leads you through the different steps needed to configure your mouse in these two different
modes, especially the steps needed to use the more useful 3−button mode.
As distributions become easier to set up, some of the problems ought to go away. For instance, RedHat have
a
mouseconfig
program to set things up for you. However, some versions of RH5.0 had a bug in
mouseconfig
, so make sure you check for patches.
3.
Serial Ports
The first thing to do is to make sure the software can find the mouse. Work out which serial port your mouse
is connected to − usually this will be
/dev/ttyS0
(COM1 under DOS) or
/dev/ttyS1
(COM2).
(
ttyS0
is usually the 9 pin socket,
ttyS1
the 25 pin socket, but of course there is no hard and fast rule
about these things.) There are also an equivalent number of
/dev/cua
devices, which are almost the same
as the
ttyS
ones, but their use is now discouraged. For convenience make a new link
/dev/mouse
pointing at this port. For instance, for
ttyS0
:
ln −s /dev/ttyS0 /dev/mouse
15. Mouse Tail
2
2−button Microsoft mode.
The 3 Button Serial Mouse mini−HOWTO
4.
Switched Mice
Some mice, not usually the cheapest ones, have a switch on the bottom marked `2/3'. Sometimes this may be
`PC/MS'. In this case the `2' setting is for 2 button Microsoft mode, and the `3' for 3 button MouseSystems
mode. The `PC/MS' switch is a bit more complicated. You will probably find the `MS' setting is for
Microsoft, and the `PC' is for MouseSystems. You may find the `PC' setting described as ps/2 mode, but it
should do MouseSystems as well. If you have such a mouse, you can switch the switch to `3' or `PC', put the
MouseSystems settings in your XConfigs (see below) and the mouse should work perfectly in 3−button
mode.
5.
Normal Mice
If you don't have any switches, and no instructions, then a little bit of experimentation is needed. The first
thing to try is to assume the mouse maker is telling the truth, and the mouse is full Microsoft. Set up your
Xconfigs to expect a Microsoft mouse (see the
Xconfig section
)
and give it a try.
If the mouse didn't work at all, then you don't have a Microsoft mouse, or there is some other problem. Try
the other protocols in the configs, the man page for the config file is the best place to start looking. Also look
in the
Miscellaneous Problems
section below.
What you will probably find is that when you run X, the mouse works fine but only the outer two buttons do
anything. You can of course accept this, and emulate the third button (press both buttons at once to click the
middle one) like you do with a two button mouse. To do this, change your Xconfig file as shown in the
Xconfig example
section below. This may mean you have bought a 3 button mouse for no good reason, and
you are certainly no further forward. So, now you need to look at your hardware.
6.
Switching a Mouse to 3−Button Mode
Even cheap mice can also work under the Mouse Systems protocol, with all three buttons working. The trick
is to get the mouse to think it's a Mouse Systems one, something you rarely see in your instructions.
·
Before you power up your computer, hold down the left mouse button (and keep it held down until it
has booted to be on the safe side).
When the mouse first gets power, if the left button is held down it switches into Mouse Systems mode. A
simple fact, but not always publicised. Note that a soft reboot of your computer may not cut the mouse power
and therefore may not work. There are a number of other ways of switching the mode, which may or may not
work with your particular mouse. Some of these are less drastic than rebooting your computer, two are more
so!
·
If your computer is get−at−able you can unplug the mouse and plug it back in with the button held
down (although you shouldn't normally plug things in to a live computer, the RS232 spec says it is
OK).
·
You may be able to reset the mouse by typing
echo "*n" > /dev/mouse
, which should have
the same effect as unplugging it. Hold the left button down for Mouse Systems mode, not for
Microsoft. You could put this in whatever script you use to start X up.
4. Switched Mice
3
Plik z chomika:
megaskrypty
Inne pliki z tego folderu:
3-Button-Mouse(1).pdf
(58 KB)
XWindow-Overview-HOWTO(1).pdf
(30 KB)
Xterm-Title(1).pdf
(39 KB)
Xterminals(1).pdf
(30 KB)
Xinerama-HOWTO(1).pdf
(33 KB)
Inne foldery tego chomika:
Programowanie
Zgłoś jeśli
naruszono regulamin