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

Bug#558318: Trackball udev support (patch included)



  xserver-xorg-input-evdev              1:2.3.2-3 

Since the switch from hal to udev, my trackballs stopped working.
I have now written a udev rule to restore them. It should works for most, 
if not all, Marble Logitech trackballs.

On my system, it is called:
/etc/udev/rules.d/66-Marble-trackball.rules

Here are the contents:
-------------------------------------------------------------------------
# Logitech Marble Mice PN 804377-0000, PN 810-000767 or
# PN 804251-0000  connected via USB or PS/2
# Marble FX or Marble Mouse  (ael)

ACTION!="add|change", GOTO="xorg_marble_end"
KERNEL!="event*", GOTO="xorg_marble_end"

#ENV{ID_PATH}!="platform-i8042-serio-1", GOTO="xorg_marble_end"
# Above for PS/2, misses USB. name below seems to be enough

ATTRS{name}=="ImExPS/2 Logitech Explorer Mouse", GOTO="marbles"
ATTRS{name}=="Logitech USB Trackball", GOTO="marbles"
ATTRS{name}=="PS2++ Logitech Mouse", GOTO="marble_FX"
ATTRS{name}=="PS2++ Logitech TrackMan"  , GOTO="marble_FX"

LABEL="marbles"

ENV{x11_options.ButtonMapping}="1 9 3 4 5 6 7 8 2"

LABEL="marble_FX"

#ENV{x11_options.Protocol}="ExplorerPS/2"

ENV{x11_options.EmulateWheel}="true"
ENV{x11_options.EmulateWheelButton}="8"
ENV{x11_options.YAxisMapping}="4 5"
ENV{x11_options.XAxisMapping}="6 7"
ENV{x11_options.ZAxisMapping}="4 5"
#ENV{x11_options.Emulate3Buttons}="0"

LABEL="xorg_marble_end"
------------------------------------------------------------------------------

Perhaps this should be included either in /lib/udev/rules.d or at least as an
example in the next release of xserver-xorg-input-evdev?

ael




Reply to: