во-первых нужно ядро 2.6 и xorg-x11–6.8.2-alt4 или выше.
# modprobe evdev
# cat /proc/bus/input/devices
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
H: Handlers=kbd event0
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
H: Handlers=kbd event1
B: EV=40001
B: SND=6
I: Bus=0011 Vendor=0002 Product=0004 Version=0000
N: Name="Gen PS / 2? Genius Wheel Mouse"
P: Phys=isa0060/serio1/input0
H: Handlers=mouse0 event2
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=103
I: Bus=0003 Vendor=046d Product=c00e Version=1110
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:1d.2–1/input0
H: Handlers=mouse1 event3
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10
у нас есть 2 мыши – Gen PS / 2? Genius Wheel Mouse (/dev/input/event2) и Logitech
USB-PS/2 Optical Mouse (/dev/input/event3)
/etc/X11/xorg.conf
Section "Input Device?"
End Section?
Section "Input Device?"
End Section?
это конфиг для пятикнопочных мышей.
6 кнопок:
$ echo -e «pointer = 1 2 3 6 4 5\n» > /.Xmodmap
7 кнопок:
$ echo -e «pointer = 1 2 3 6 7 4 5\n» > /.Xmodmap
10 кнопок:
$ echo -e «pointer = 1 2 3 6 7 8 9 10 4 5\n» > /.Xmodmap
12 кнопок:
$ echo -e «pointer = 1 2 3 6 7 8 9 10 11 12 4 5\n» > /.Xmodmap
(c) shrek at altinux