Version Française

Ce post est autant pour moi un aide mémoire que pour partager cette astuce que SmootherFr0gZ m'a donné.

Sur mon thinkpad j'ai un trackpoint et donc pas de barre de défilement verticale ou horizontale, heureusement hal est là !!

Par hal on peut simuler la molette de la souris et un appuis continus sur le 3ème bouton de la souris (soit bouton du milieu) avec un mouvement de la souris entraine un défilement de la page verticale ou horizontale.

Méthode:

  • Créer le fichier /etc/hal/fdi/policy/11-mousewheel.fdi
  • Dedans mettre:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
 <device>
  <match key="info.product" string="TPPS/2 IBM TrackPoint">
   <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
   <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
   <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
   <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
   <merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
  </match>
 </device>
</deviceinfo>
  • Faire
service haldaemon restart
  • Redémarrer X

Reste plus qu'à appuyer sur le bouton du milieu et à faire bouger la souris en même temps pour faire défiler :-)



English version

This post is as much a reminder for myself as a wish to share what SmootherFr0gZ told me.

On my thinkpad there are no way to scroll up and down or on the side because I have a trackpoint and not a touchpad. But hal is there !!

Through hal you can emulate the third button to make it act as a mouse wheel.

The principle is easy:

  • Create the file /etc/hal/fdi/policy/11-mousewheel.fdi
  • Put this for content
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
 <device>
  <match key="info.product" string="TPPS/2 IBM TrackPoint">
   <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
   <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
   <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
   <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
   <merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
  </match>
 </device>
</deviceinfo>
  • Restart hal
service haldaemon restart
  • Restart X

Now I can just press the middle button and move my mouse to scroll up and down or on the side :-)

I find this really handy !