Вход:  Пароль:  
FreeSource: HCL/Периферия/Мыши/МногокнопочныеМыши ...
Free Source | Каталог | Изменения | НовыеКомментарии | Пользователи | Регистрация |

Настройка мышей с большим количеством клавиш


во-первых нужно ядро 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?"

Identifier “Genius”
Driver “evdev”
Option “Protocol” “evdev”
Option “Dev Name” "Gen PS / 2? Genius Wheel Mouse”
Option “Dev Phys” «isa0060/serio1/input0”
Option “Device” «/dev/input/event2”
Option “ZAxisMapping” “4 5"
Option "Emulate 3 Buttons?"

End Section?


Section "Input Device?"

Identifier “Logitech”
Driver “evdev”
Option “Protocol” “evdev”
Option “Dev Name” «Logitech USB-PS/2 Optical Mouse”
Option “Dev Phys” «usb-0000:00:1d.2–1/input0”
Option “Device” «/dev/input/event3”
Option “ZAxisMapping” “4 5"
Option "Emulate 3 Buttons?"

End Section?


это конфиг для пятикнопочных мышей.


6 кнопок:

Option “Buttons” “6”
Option “ZAxisMapping” «5 6"

$ echo -e «pointer = 1 2 3 6 4 5\n» > /.Xmodmap


7 кнопок:

Option “Buttons” “7”
Option “ZAxisMapping” «6 7"

$ echo -e «pointer = 1 2 3 6 7 4 5\n» > /.Xmodmap


10 кнопок:

Option “Buttons” “10”
Option “ZAxisMapping” «9 10"

$ echo -e «pointer = 1 2 3 6 7 8 9 10 4 5\n» > /.Xmodmap


12 кнопок:

Option “Buttons” “12”
Option “ZAxisMapping” «11 12"

$ echo -e «pointer = 1 2 3 6 7 8 9 10 11 12 4 5\n» > /.Xmodmap


Страницы, ссылающиеся на данную: HCL/Периферия/Мыши


(c) shrek at altinux


 
Файлов нет. [Показать файлы/форму]
Комментариев нет. [Показать комментарии/форму]