ÉTAPE
1
Obtention/compilation/installation de l'utilitaire "imwheel" (GPM MODIFIÉ)
N.B.
"imwheel-0.9.9.tar.gz" contient une version modifiée du pilote GPM
qui permet l'utilisation de la wheel.
L'exécutable GPM-modifié de imwheel-0.9.9 sera installé
dans "/usr/local/sbin/".
cd /usr/src
wget http://jcatki.no-ip.org/imwheel/files/imwheel-0.9.9.tar.gz
tar -xzvf imwheel-0.9.9.tar.gz
cd imwheel-0.9.9
./configure
make
make check
make install
ÉTAPE 2
Modification du fichier "/etc/rc.d/rc.gpm"
N.B.
Remplacer le type "imps2" par le type approprié (vous référer
à "gpm -t help")
Il s'agit de modifier le script déjà existant de telle sorte
qu'il ressemble à ceci (création d'un REPEATER GPM)...
#!/bin/sh
# Start/stop/restart the GPM mouse server:
if [ "$1" = "stop" ]; then
echo "Stopping gpm..."
/usr/local/sbin/gpm -k
elif [ "$1" = "restart" ]; then
echo "Restarting gpm..."
/usr/local/sbin/gpm -k
sleep 1
/usr/local/sbin/gpm -W -R -t imps2
else # assume $1 = start:
echo "Starting gpm: /usr/local/sbin/gpm -W -R -t
imps2"
/usr/local/sbin/gpm -W -R -t imps2
fi
ÉTAPE 3
Modification du fichier "/etc/X11/XF86Config"
N.B.
Si cela n'a pas déjà été fait, il faut modifier
les paramètres de la section "InputDevice" afin d'utiliser le REPEATER
GPM...
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
# VARIABLE
Driver "mouse"
# VARIABLE
Option "Protocol" "MouseSystems"
# IMPORTANT (MouseSystems = REPEATER
GPM)
Option "Device"
"/dev/gpmdata" #
IMPORTANT (/dev/gpmdata = DEVICE REPEATER GPM)
Option "BaudRate" "1200"
# FACULTATIF
Option "Resolution" "100"
# FACULTATIF
Option "Buttons" "3"
# RECOMMANDE
EndSection