[Comm] Re: многокнопочная мышь в АЛД4 с драйвером evdev
Dmytro Kovalskyy
=?iso-8859-1?q?dikov_=CE=C1_imbg=2Eorg=2Eua?=
Пн Дек 24 12:20:40 MSK 2007
Я разобрался.
Итак В третьем компакте и его хорге (по моему < 6.8) настройки следующие
Section "ServerLayout"
Identifier "Default Layout"
Screen "Screen at Device0" 0 0
Screen "Screen at Device1" 0 0
InputDevice "mouse0" "AlwaysCore"
InputDevice "mouse1" "CorePointer" ## Enabling removable mouse ##
InputDevice "ruwin_ct_sh" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "mouse1"
Option "Name" "Logitech USB Receiver"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "Emulate3Buttons" "false"
Option "ZAxisMapping" "6 7"
EndSection
плюс в
/etc/X11/xinit/Xmodmap прописываем
pointer = 1 2 3 6 7 4 5
с драйвером mouse я не стал пробовать завести tilt -- все равно надо уже
переползать на более новую систему
в Кубунте 7.10
Section "InputDevice"
Identifier "Logitech USB Receiver"
Driver "evdev"
Option "CorePointer"
Option "Device" "/dev/input/event2"
Option "HWHEELRelativeAxisButtons" "7 6"
EndSection
Последняя опция только потому, что горизонтальный скролинг перепутан
местами. А так все работает. XEV находит все конопки.
вот вывод логов
(II) evdev brain: Rescanning devices (1).
(**) Option "CorePointer"
(**) Logitech USB Receiver-usb-0000:00:1d.1-1/input0: Core Pointer
(II) Logitech USB Receiver-usb-0000:00:1d.1-1/input0: Found 4 relative axes.
(II) Logitech USB Receiver-usb-0000:00:1d.1-1/input0: Configuring as pointer.
(**) Option "HWHEELRelativeAxisButtons" "7 6"
(**) Logitech USB Receiver-usb-0000:00:1d.1-1/input0:
HWHEELRelativeAxisButtons: 7 6.
(**) Logitech USB Receiver-usb-0000:00:1d.1-1/input0:
WHEELRelativeAxisButtons: 4 5.
(II) Logitech USB Receiver-usb-0000:00:1d.1-1/input0: Found 16 mouse buttons
(**) Logitech USB Receiver-usb-0000:00:1d.1-1/input0: Configuring 4
relative axes.
(II) Logitech USB Receiver-usb-0000:00:1d.1-1/input0: Configured 20 mouse
buttons
.............
(**) Logitech USB Receiver-usb-0000:00:1d.1-1/input0: 4 valuators.
(**) ../../src/evdev_btn.c (166): Registering 20 buttons.
чесно говоря не знаю где он там нашел 20 кнопок, но то что начал рабортать
тилт меня пордовало на том и остановились.
и наконец в АЛД4
устройство прописано в конфиге иксов как
InputDevice "Logitech USB Receiver|0" "CorePointer"
и настройки те же что из кубунты,
Section "InputDevice"
Identifier "Logitech USB Receiver|0"
Driver "evdev"
Option "CorePointer"
Option "Device" "/dev/input/event2"
Option "HWHEELRelativeAxisButtons" "7 6"
EndSection
(от туда и брал)
но тилта нет..... вот логи
(II) evdev brain: Rescanning devices (1).
(**) Option "CorePointer"
(**) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Core Pointer
(II) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Found 1 absolute
axes.
(II) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Configuring as
pointer.
(II) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Found 1 relative
axes.
(II) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Configuring as
pointer.
(**) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1:
HWHEELRelativeAxisButtons: 6 7.
(II) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Found 17 mouse
buttons
(**) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Configuring 1
absolute axes.
(II) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Checking button
DIGI_STYLUS (330)
(II) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Checking bit 330
(EE) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: AbsoluteTouch:
'DIGI_Touch' does not exist.
(**) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Configuring in
Absolute mode.
(**) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Configuring 1
relative axes.
(II) Logitech USB Receiver|0-usb-0000:00:1d.2-1/input1: Configured 19
mouse buttons
Дима
Подробная информация о списке рассылки community