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

* Re: [Hardware] HOWTO: Get all mouse buttons working
  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
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 7+ messages in thread
From: Eugene Ostapets @ 2005-03-21 13:40 UTC (permalink / raw)
  To: hardware

> 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
> 
А, если нужно больше - переходим на XFree86 4.5 -  там поддерживают до
20 кнопок:)))
-- 
С уважением,
Евгений Остапец
uin: 23747217
jid: eugene_ostapets@jabber.ru


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

* Re: [Hardware] HOWTO: Get all mouse buttons working
  2005-03-21 13:40 ` Eugene Ostapets
@ 2005-03-21 13:45   ` Valery V. Inozemtsev
  2005-03-21 15:12   ` Genix
  1 sibling, 0 replies; 7+ messages in thread
From: Valery V. Inozemtsev @ 2005-03-21 13:45 UTC (permalink / raw)
  To: hardware

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

В сообщении от 21 Март 2005 16:40 Eugene Ostapets написал(a):
> > 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
>
> А, если нужно больше - переходим на XFree86 4.5 -  там поддерживают до
> 20 кнопок:)))

а если нужно больше - пишем соответствующий конфиг

-- 
Valery V. Inozemtsev

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

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

* Re: [Hardware] HOWTO: Get all mouse buttons working
  2005-03-21 13:40 ` Eugene Ostapets
  2005-03-21 13:45   ` Valery V. Inozemtsev
@ 2005-03-21 15:12   ` Genix
  1 sibling, 0 replies; 7+ messages in thread
From: Genix @ 2005-03-21 15:12 UTC (permalink / raw)
  To: hardware, Eugene Ostapets

Eugene Ostapets wrote:

>>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
>>
> 
> А, если нужно больше - переходим на XFree86 4.5 -  там поддерживают до
> 20 кнопок:)))

А если нужно еще больше, то делаем примерно так:

Section "InputDevice"

     Identifier "Keyboard1"
     Driver      "kbd"
     Option "AutoRepeat"  "250 30"

     Option "XkbModel" "pc105"
     Option "XkbLayout" "us,ru"
     Option "XkbVariant"  ",winkeys"
     Option "XkbOptions"  "grp:ctrl_shift_toggle,grp:switch,grp_led:scroll"

EndSection


$)

-- 
У каждого в башке свои тараканы...


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

* Re: [Hardware] HOWTO: Get all mouse buttons working
  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 15:12 ` Michael Shigorin
  2005-03-23  8:13 ` Slobodian Viacheslav
  2005-03-23  8:19 ` Slobodian Viacheslav
  3 siblings, 0 replies; 7+ messages in thread
From: Michael Shigorin @ 2005-03-21 15:12 UTC (permalink / raw)
  To: hardware

On Mon, Mar 21, 2005 at 04:38:12PM +0300, Valery V. Inozemtsev wrote:
> инструкция по настройке мышей с большим количеством клавиш
> (писатель из меня никакой, т.ч. не обессудьте)
> во-первых нужно ядро 2.6 и xorg-x11-6.8.2-alt4 или выше.

Мож всё-таки в faq закинуть?..

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


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

* Re: [Hardware] HOWTO: Get all mouse buttons working
  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 15:12 ` Michael Shigorin
@ 2005-03-23  8:13 ` Slobodian Viacheslav
  2005-03-23  8:19 ` Slobodian Viacheslav
  3 siblings, 0 replies; 7+ messages in thread
From: Slobodian Viacheslav @ 2005-03-23  8:13 UTC (permalink / raw)
  To: hardware

Во-первых, вот забавный случай, который у меня возник. rpm-пакеты с новыми иксами ставились поверх скомпилённого из сырцов.. Может, причина в этом. Вобщем, смотрите..

[slv@slava .lineak]$ rpm -q xorg-x11
xorg-x11-6.8.2-alt4

[root@slava root]# lsmod|grep evdev
evdev                   9216  0 

[root@slava root]# strings /usr/X11R6/bin/X | grep evdev
mouse keyboard acecad calcomp citron 				digitaledge dmc dynapro elographics tek4957 				
microtouch mutouch penmount spaceorb summa 				wacom void magellan  hyperpen 				jamstudio fpit 				palmax ur98 aiptek evdev


Вот, собственно, последний вывод и смущает. Иксы заявляют, что протокол evdev им неизвестен. Конфигурация та, которая работала с самостоятельно собранными Иксами с нужными патчиками..


Старые иксы в данном случае выводили

[root@slava etc]# strings /usr/X11R6/bin/X | grep evdev
evdevStart
evdevNewDriver
evdevGetFDForDriver
evdev
%s: cannot register with evdev brain
%s: cannot start evdev brain
/tmp/.X11-unix/evdev%d
evdev brain



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

* Re: [Hardware] HOWTO: Get all mouse buttons working
  2005-03-21 13:38 [Hardware] HOWTO: Get all mouse buttons working Valery V. Inozemtsev
                   ` (2 preceding siblings ...)
  2005-03-23  8:13 ` Slobodian Viacheslav
@ 2005-03-23  8:19 ` Slobodian Viacheslav
  3 siblings, 0 replies; 7+ messages in thread
From: Slobodian Viacheslav @ 2005-03-23  8:19 UTC (permalink / raw)
  To: hardware

Ещё возникла проблема с мультимедийной клавиатурой после настройки мыши через evdev. На ней "перестали работать" некоторые расширенные кнопки. xev на них не реагирует. Однако в соответствующем файле event события бегут.
Подключил клаву следующим образом:
Section "InputDevice"
Identifier "Keyboard1"
Driver      "kbd"
Option      "Protocol"      "evdev"
Option      "Dev Phys" "isa0060/serio0/input0"
Option      "Device" "/dev/input/event0"
Option "AutoRepeat"  "250 30"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,ru"
Option "XkbVariant"  ",winkeys"
Option "XkbOptions"  "grp:toggle,grp_led:scroll"
EndSection

У меня вообще большинство дополнительных кнопок перестало работать.. %)
Подскажите, как лучше поступить в данном случае.
Без мышиного evdev клава работала. =)  Или, может, я патч кривовато наложил.. :-/
Сейчас пользую собранные из сырцов иксы, т.к. новые xorg от альта у меня ни сном ни духом про evdev..


^ 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