[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: Souris sous X



Le mardi 19 mars 2002 à 21:38:42, jerome a écrit:
> Je te remerci, mais ma sourie logitek OEM est très particulière mon 
> XF86config-4:
> 
> 
> Section "InputDevice"
>         Identifier      "Configured Mouse"
>         Driver          "mouse"
>         Option          "CorePointer"
>         Option          "Device"                "/dev/gpmdata"
>         Option          "Protocol"              "IntelliMouse"
>         Option          "Emulate3Buttons"       "true"
>         Option          "ZAxisMapping"          "4 5"
> EndSection
> 

Salut, 
Tu dois pouvoir déterminer le protocole associé à la fifo gpmdata à
partir de ta config gpm (/etc/gpm.conf ligne repeat_type)

un extrait du man de gpm :

       -Rname Causes  `gpm'  to act as a repeater: any mouse data
              received while in graphic mode will be produced  on
              the fifo `/dev/gpmdata' in protocol name.  In prin­
              ciple, you can use the same names as for  the  `-t'
              option,  although repeating into some protocols may
              not be implemented for a while.  In  addition,  you
              can  specify `raw' as the name, to repeat the mouse
              data byte by byte, without  any  protocol  transla­
              tion.   If  name  is omitted, it defaults to `msc'.
              Using gpm in repeater mode, you can configure the X
              server  to  use  its  fifo  as a mouse device. This
              option is useful for bus-mouse owners  to  override
              the  single-open limitation. It is also an easy way
              to manage those stupid dual-mode mice  which  force
              you  to  keep the middle button down while changing
              video mode. The option is forced  on  by  the  `-M'
              option.

repeat_type vide -> c'est que tu as configuré plusieurs souris sous
gpm (option -M ...), le protocole utilisé pour la fifo est alors msc
(MouseSystem) sans support de roulette 

repeat_type non vide -> assure toi d'avoir choisi un protocole qui
répète les événements roulette (pour avoir la liste des protocoles
et leurs caractéristiques tape "gpm -t help" ce sont les "wheel is
repeated" qui t'interressent :) )

après, tu as 3 solutions au choix :

1) tu désactive le répéteur gpm et tu n'utilises pas gpmdata
dans gpm.conf :

repeat_type=

dans ta config X change : 

Option          "Device"                "/dev/psaux"
Option          "Protocol"              "imPS/2"

2) tu forces le protocole du répéteur gpm à une valeur qui va bien
exemple : 
dans gpm.conf

repeat_type=imps2

dans ta config X :

Option          "Device"                "/dev/gpmdata"
Option          "Protocol"              "imPS/2"

3) tu demandes à gpm de répéter les événements souris de façon brute :
dans gpm.conf :

repeat_type=raw

dans ta config X :

Option          "Device"                "/dev/gpmdata"
Option		"Protocol"		"???" <- un truc qui ressemble
au champ "type" dans gpm.conf, imPS/2 probablement

En espérant que ça t'aide un peu
a+
-- 
Bast !! -- UIN:20252091
mailto:bastien.mourgues@free.fr
tel:+33682569675



Reply to: