From: "Valery V. Inozemtsev" <shrek@freesource.info>
To: hardware@altlinux.ru
Subject: [Hardware] HOWTO: Get all mouse buttons working
Date: Mon, 21 Mar 2005 16:38:12 +0300
Message-ID: <200503211638.23476.shrek@freesource.info> (raw)
[-- 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 --]
next reply other threads:[~2005-03-21 13:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-21 13:38 Valery V. Inozemtsev [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200503211638.23476.shrek@freesource.info \
--to=shrek@freesource.info \
--cc=hardware@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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