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

Convincere Xorg che il mouse è solo mouse



Ciao,

da un pò di tempo uso un bel Logitech T630, un mouse bt molto "stylish",
ma che ha un piccolo inconveniente: di tanto in tanto invia una serie di
caratteri, tipo 111111111..., 777777777... o ùùùùùùùùù....

Oggi avevo un pò di tempo e ho provato a dare una occhiata ai log di
Xorg, trovando:

(II) config/udev: Adding input device Ultrathin Touch Mouse
(/dev/input/event14)
(**) Ultrathin Touch Mouse: Applying InputClass "evdev pointer catchall"
(**) Ultrathin Touch Mouse: Applying InputClass "evdev keyboard catchall"
(II) Using input driver 'evdev' for 'Ultrathin Touch Mouse'
(**) Ultrathin Touch Mouse: always reports core events
(**) evdev: Ultrathin Touch Mouse: Device: "/dev/input/event14"
(--) evdev: Ultrathin Touch Mouse: Vendor 0x46d Product 0xb00d
(--) evdev: Ultrathin Touch Mouse: Found 9 mouse buttons
(--) evdev: Ultrathin Touch Mouse: Found scroll wheel(s)
(--) evdev: Ultrathin Touch Mouse: Found relative axes
(--) evdev: Ultrathin Touch Mouse: Found x and y relative axes
(--) evdev: Ultrathin Touch Mouse: Found keys

Quindi lo identifica non solo come pointer, ma anche come keyboard; le
configurazioni "catchall" sono in /usr/share/X11/xorg.conf.d/10-evdev.conf:

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Esiste un modo per convincere Xorg a ignorare la parte "keyboard" del
mouse?

Esiste un qualche documento "strutturato" su come configurare le varie
stanze dei file xorg? Per esempio, mi sarebbe utile un comando tipo
MatchIsNotDevice "Ultrathin Touch Mouse".

-- 
Hofstadter's Law:
"It always takes longer than you expect, even when you take into account
Hofstadter's Law."


Reply to: