| 115 |
|
|
| 116 |
</para> |
</para> |
| 117 |
|
|
| 118 |
<sect2> |
<sect2 arch="not-s390" id="device-mouse"> |
| 119 |
<title>Setting Up Your Mouse</title> |
<title>Setting Up Your Mouse</title> |
|
|
|
| 120 |
<para> |
<para> |
| 121 |
|
|
| 122 |
The mouse can be used in both the Linux console (with gpm) and the X window |
The mouse can be used in both the Linux console (with gpm) and the X |
| 123 |
environment. The two uses can be made compatible if the gpm repeater is used |
window environment. Normally, this is a simple matter of installing |
| 124 |
to allow the signal to flow to the X server as shown: |
<filename>gpm</filename> and the X server itself. Both should be |
| 125 |
|
configured to use <filename>/dev/input/mice</filename> as the mouse |
| 126 |
<informalexample><screen> |
device. The correct mouse protocol is named <userinput>exps2</userinput> |
| 127 |
mouse => /dev/psaux => gpm => /dev/gpmdata -> /dev/mouse => X |
in gpm, and <userinput>ExplorerPS/2</userinput> in X. The respective |
| 128 |
/dev/ttyS0 (repeater) (symlink) |
configuration files are <filename>/etc/gpm.conf</filename> and |
| 129 |
/dev/ttyS1 |
<filename>/etc/X11/xorg.conf</filename>. |
|
</screen></informalexample> |
|
|
|
|
|
Set the repeater protocol to be raw (in <filename>/etc/gpm.conf</filename>) while |
|
|
setting X to the original mouse protocol in <filename>/etc/X11/XF86Config</filename> |
|
|
or <filename>/etc/X11/XF86Config-4</filename>. |
|
| 130 |
|
|
| 131 |
</para><para> |
</para><para> |
| 132 |
|
|
| 133 |
This approach to use gpm even in X has advantages when the mouse is |
Certain kernel modules must be loaded in order for your mouse to work. |
| 134 |
unplugged inadvertently. Simply restarting gpm with |
In most cases the correct modules are autodetected, but not always for |
| 135 |
|
old-style serial and bus mice<footnote> |
|
<informalexample><screen> |
|
|
# /etc/init.d/gpm restart |
|
|
</screen></informalexample> |
|
|
|
|
|
will re-connect the mouse in software without restarting X. |
|
|
|
|
|
</para><para> |
|
| 136 |
|
|
| 137 |
If gpm is disabled or not installed for some reason, make sure to set X to |
<para> |
| 138 |
read directly from a mouse device such as /dev/psaux. For details, refer |
Serial mice usually have a 9-hole D-shaped connector; bus mice have an |
| 139 |
to the 3-Button Mouse mini-Howto at |
8-pin round connector, not to be confused with the 6-pin round connector |
| 140 |
<filename>/usr/share/doc/HOWTO/en-txt/mini/3-Button-Mouse.gz</filename>, |
of a PS/2 mouse or the 4-pin round connector of an ADB mouse. |
| 141 |
<userinput>man gpm</userinput>, |
</para> |
|
<filename>/usr/share/doc/gpm/FAQ.gz</filename>, and |
|
|
<ulink url="&url-xorg;current/doc/html/mouse.html">README.mouse</ulink>. |
|
|
|
|
|
</para><para arch="powerpc"> |
|
| 142 |
|
|
| 143 |
For PowerPC, in <filename>/etc/X11/XF86Config</filename> or |
</footnote>, which are quite rare except on very old computers. Summary |
| 144 |
<filename>/etc/X11/XF86Config-4</filename>, set the mouse device to |
of Linux kernel modules needed for different mouse types: |
| 145 |
<userinput>"/dev/input/mice"</userinput>. |
|
| 146 |
|
<informaltable><tgroup cols="2"><thead> |
| 147 |
|
<row> |
| 148 |
|
<entry>Module</entry> |
| 149 |
|
<entry>Description</entry> |
| 150 |
|
</row> |
| 151 |
|
</thead><tbody> |
| 152 |
|
<row> |
| 153 |
|
<entry>psmouse</entry> |
| 154 |
|
<entry>PS/2 mice (should be autodetected)</entry> |
| 155 |
|
</row> |
| 156 |
|
<row> |
| 157 |
|
<entry>usbhid</entry> |
| 158 |
|
<entry>USB mice (should be autodetected)</entry> |
| 159 |
|
</row> |
| 160 |
|
<row> |
| 161 |
|
<entry>sermouse</entry> |
| 162 |
|
<entry>Most serial mice</entry> |
| 163 |
|
</row> |
| 164 |
|
<row> |
| 165 |
|
<entry>logibm</entry> |
| 166 |
|
<entry>Bus mouse connected to Logitech adapter card</entry> |
| 167 |
|
</row> |
| 168 |
|
<row> |
| 169 |
|
<entry>inport</entry> |
| 170 |
|
<entry>Bus mouse connected to ATI or Microsoft InPort card</entry> |
| 171 |
|
</row> |
| 172 |
|
</tbody></tgroup></informaltable> |
| 173 |
|
|
| 174 |
|
To load a mouse driver module, you can use the <command>modconf</command> |
| 175 |
|
command (from the package with the same name) and look in the category |
| 176 |
|
<userinput>kernel/drivers/input/mouse</userinput>. |
| 177 |
|
|
| 178 |
</para><para arch="powerpc"> |
</para><para arch="powerpc"> |
| 179 |
|
<!-- FJP 20070122: Unsure if this is still valid --> |
| 180 |
|
|
| 181 |
Modern kernels give you the capability to emulate a three-button mouse |
Modern kernels give you the capability to emulate a three-button mouse |
| 182 |
when your mouse only has one button. Just add the following lines to |
when your mouse only has one button. Just add the following lines to |