C.2.1. Setting Up Your Mouse
The mouse can be used in both the Linux console (with gpm) and the X window
environment. The two uses can be made compatible if the gpm repeater is used
to allow the signal to flow to the X server as shown:
Set the repeater protocol to be raw (in /etc/gpm.conf
) while
setting X to the original mouse protocol in /etc/X11/XF86Config
or /etc/X11/XF86Config-4
.
This approach to use gpm even in X has advantages when the mouse is
unplugged inadvertently. Simply restarting gpm with
will re-connect the mouse in software without restarting X.
If gpm is disabled or not installed with some reason, make sure to set X to
read directly from the mouse device such as /dev/psaux. For details, refer
to the 3-Button Mouse mini-Howto at
/usr/share/doc/HOWTO/en-txt/mini/3-Button-Mouse.gz
,
man gpm
,
/usr/share/doc/gpm/FAQ.gz
, and
README.mouse.