Portál AbcLinuxu, 10. května 2025 07:00

Dotaz: xorg.conf and mouse

8.5.2006 11:13 Pengiun | skóre: 7 | blog: penguin
xorg.conf and mouse
Přečteno: 352×
Odpovědět | Admin
Zde jsem načel pro svoji WOP-35 nastavení:

A4Tech mouse with 2 wheels

I have a A4Tech WOP-35 mouse with two scrolls and two side buttons. No matter what I wrote in xorg.conf I couldn't get it so that the side buttons were assigned numbers 6 and 7. It always gave them 8 and 9 but this is unwanted since browsers like Opera or Firefox use buttons 6 and 7 for navigating back and forward. So you can't avoid the xmodmap thing. I put it into ${kdedir}/share/config/kdm/Xstartup so that all users have the same setup:

xmodmap -e "pointer = 1 2 3 8 9 4 5 6 7 10 11 12 13"

File: /etc/X11/xorg.conf

... Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "ExplorerPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" Option "Buttons" "7" EndSection ...

Now both scroll buttons do scroll the same and side buttons are used for navigation, no more settings required.

Vše ale zůstalo beze změn. Kde bude ta chyba?
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

8.5.2006 11:23 Pengiun | skóre: 7 | blog: penguin
Rozbalit Rozbalit vše xorg.conf and mouse
Odpovědět | | Sbalit | Link | Blokovat | Admin
Zdejsem načel pro svoji WOP-35 nastavení:

A4Tech mouse with 2 wheels

I have a A4Tech WOP-35 mouse with two scrolls and two side buttons. No matter what I wrote in xorg.conf I couldn't get it so that the side buttons were assigned numbers 6 and 7. It always gave them 8 and 9 but this is unwanted since browsers like Opera or Firefox use buttons 6 and 7 for navigating back and forward. So you can't avoid the xmodmap thing. I put it into ${kdedir}/share/config/kdm/Xstartup so that all users have the same setup:

xmodmap -e "pointer = 1 2 3 8 9 4 5 6 7 10 11 12 13"

File: /etc/X11/xorg.conf

...
Section "InputDevice"
   Identifier     "Mouse0"
   Driver         "mouse"
   Option         "Protocol" "ExplorerPS/2"
   Option         "Device" "/dev/input/mice"
   Option         "ZAxisMapping" "4 5"
   Option         "Buttons" "7"
EndSection
...
Vše ale zůstalo beze změn. Kde bude ta chyba
8.5.2006 12:34 Petr Šobáň | skóre: 80 | blog: soban | Olomouc
Rozbalit Rozbalit vše Re: xorg.conf and mouse
No a jako nefunguje co ?

jinak já jsem měl myš s 2 kolečky a tam chce nastavit Option "ZAxisMapping" "4 5 6 7" prostě 4,5 jedno kolečko 6,7 druhé.

No a pak si pohrát správně s xmodmap aby byly správně ty kolečka přiřazené.

Jinak otestovat to můžeš xev a poznáš zda to ty tlačítka kolečka bere.
8.5.2006 14:21 Pengiun | skóre: 7 | blog: penguin
Rozbalit Rozbalit vše Re: xorg.conf and mouse
teď je to OKI. Po restartování myš fuguje jak má. Dík

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.