Logiciels Libres et Systèmes Embarqués


2. Quick explanations

2.1. How to launch Js2mouse

  1. log as root : this is only necessary if you use Js2mouse default options.
  2. enter the following commands into a terminal :
    js2mouse &
    exit
    At this point, Js2mouse is running in the background.

2.2. How to modify X configuration

  1. log as root (if necessary)
  2. replace these lines :
    Option "Protocol" "_YOUR_MOUSE_PROTOCOL_"
    Option "Device" "/dev/_YOUR_MOUSE_DEVICE_"
    by :
    Option "Protocol" "_PROTO_"   #_PROTO_ is PS/2 or IMPS/2
    Option "Device" "/dev/j2m_fifo"
    
    Option "ZAxisMapping" "4 5"   #only if you use the IMPS/2 protocol
  3. restart X (on the fly : Ctrl-Alt-BackSpace)

2.3. How to modify GPM configuration

It depends on your Linux distribution, so this is the most independant explanation that I can give... Adapt your own configuration files :

  1. log as root (if necessary)
  2. enter the following commands into a terminal :
    gpm -k
    gpm -m /dev/j2m_fifo -t ps2