ALT Linux hardware support
 help / color / mirror / Atom feed
* [Hardware] HOWTO: Get all mouse buttons working
@ 2005-03-21 13:38 Valery V. Inozemtsev
  2005-03-21 13:40 ` Eugene Ostapets
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Valery V. Inozemtsev @ 2005-03-21 13:38 UTC (permalink / raw)
  To: hardware

[-- Attachment #1: Type: text/plain, Size: 2529 bytes --]

hi

инструкция по настройке мышей с большим количеством клавиш (писатель из меня 
никакой, т.ч. не обессудьте)

во-первых нужно ядро 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="GenPS/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 мыши - GenPS/2 Genius Wheel Mouse (/dev/input/event2) и Logitech 
USB-PS/2 Optical Mouse (/dev/input/event3)

/etc/X11/xorg.conf 

Section "InputDevice"
    Identifier  "Genius"
    Driver      "evdev"
    Option      "Protocol"      "evdev"
    Option      "Dev Name"      "GenPS/2 Genius Wheel Mouse"
    Option      "Dev Phys"      "isa0060/serio1/input0"
    Option      "Device"        "/dev/input/event2"
    Option      "ZAxisMapping"  "4 5"
    Option      "Emulate3Buttons"
EndSection

Section "InputDevice"
    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      "Emulate3Buttons"
EndSection

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

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

-- 
Valery V. Inozemtsev

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-03-23  8:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-21 13:38 [Hardware] HOWTO: Get all mouse buttons working Valery V. Inozemtsev
2005-03-21 13:40 ` Eugene Ostapets
2005-03-21 13:45   ` Valery V. Inozemtsev
2005-03-21 15:12   ` Genix
2005-03-21 15:12 ` Michael Shigorin
2005-03-23  8:13 ` Slobodian Viacheslav
2005-03-23  8:19 ` Slobodian Viacheslav

ALT Linux hardware support

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/hardware/0 hardware/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 hardware hardware/ http://lore.altlinux.org/hardware \
		hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org
	public-inbox-index hardware

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.hardware


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git