[f45b1953] | 1 | <sect2>
|
---|
[04a28bc] | 2 | <title>Configuring <application><acronym>GPM</acronym></application></title>
|
---|
[f45b1953] | 3 |
|
---|
| 4 | <sect3><title>gpm init.d script</title>
|
---|
[40d91bde] | 5 | <para>Install the <filename>/etc/rc.d/init.d/gpm</filename>
|
---|
| 6 | init script included in the
|
---|
| 7 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
[f45b1953] | 8 |
|
---|
[40d91bde] | 9 | <screen><userinput><command>make install-gpm</command></userinput></screen>
|
---|
[f45b1953] | 10 |
|
---|
[a75063d4] | 11 | </sect3>
|
---|
[f45b1953] | 12 |
|
---|
| 13 | <sect3><title>Config files</title>
|
---|
[064db32a] | 14 | <para><filename>/etc/sysconfig/mouse</filename>
|
---|
[f45b1953] | 15 | This file contains the name of your mouse device and the protocol which
|
---|
| 16 | it uses. To create this file, run the following:</para>
|
---|
| 17 |
|
---|
[2be20f1b] | 18 | <screen><userinput><command>cat > /etc/sysconfig/mouse << "EOF"</command>
|
---|
[3f38dad] | 19 | # Begin /etc/sysconfig/mouse
|
---|
| 20 |
|
---|
[a75063d4] | 21 | MDEVICE=<replaceable>[yourdevice]</replaceable>
|
---|
| 22 | PROTOCOL=<replaceable>[yourprotocol]</replaceable>
|
---|
[3f38dad] | 23 |
|
---|
| 24 | # End /etc/sysconfig/mouse
|
---|
[2be20f1b] | 25 | <command>EOF</command></userinput></screen>
|
---|
[f45b1953] | 26 | </sect3>
|
---|
| 27 |
|
---|
| 28 | <sect3><title>Configuration Information</title>
|
---|
| 29 |
|
---|
[2be20f1b] | 30 | <para>Examples of values to set <envar>MDEVICE</envar> and
|
---|
| 31 | <envar>PROTOCOL</envar> to are</para>
|
---|
[f45b1953] | 32 |
|
---|
[2be20f1b] | 33 | <screen><userinput>MDEVICE=/dev/psaux
|
---|
| 34 | PROTOCOL=imps2</userinput></screen>
|
---|
[f45b1953] | 35 |
|
---|
| 36 | <para>A list of which protocol values are known can be found by running
|
---|
[2be20f1b] | 37 | <command>gpm -t -help</command>. Your <envar>MDEVICE</envar> setting depends on
|
---|
[f45b1953] | 38 | which type of mouse you have. For example,
|
---|
[8a0cee4] | 39 | <filename>/dev/ttyS0</filename> for a serial mouse (on Windows this is
|
---|
[2be20f1b] | 40 | COM1), <filename>/dev/input/mice</filename> is often used for
|
---|
| 41 | <acronym>USB</acronym> mice
|
---|
[971ca3d] | 42 | and <filename>/dev/psaux</filename> for PS2 mice. It is normally
|
---|
[8a0cee4] | 43 | thought not a good idea to link <filename>/dev/mouse</filename> to the relevant device, but
|
---|
[f45b1953] | 44 | instead to reference it directly.</para>
|
---|
| 45 |
|
---|
| 46 | </sect3>
|
---|
| 47 |
|
---|
| 48 | </sect2>
|
---|