LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Logitech MX518 + Ubuntu 4.10 + ET (https://www.linuxquestions.org/questions/linux-newbie-8/logitech-mx518-ubuntu-4-10-et-341640/)

zivs 07-09-2005 12:56 PM

Logitech MX518 + Ubuntu 4.10 + ET
 
Maybe you've discussed it already somewhere, but i couldn't find it... So sorry if posting stuff that's already discussed.
So as topic says the problem is with MX518. Everything works fine BUT i was wondering how can i make working all 8 buttons in games like enemy territory? As I try to bind any button it is made as mouse1 mouse2 or mouse3 - but no other buttons (mouse4,5,6,7,8 ) Before this mouse was standart optical mouse with two buttons and scroll.
What do I need to do to make all them work?

detpenguin 07-09-2005 01:11 PM

i think it's a matter of editing your /etc/X11/xorg.conf file to include the lines

Option "Buttons" "10"
Option "ZAxisMapping" "9 10"

in the mouse section...

this site might help too....

zivs 07-09-2005 01:45 PM

tried that.. only thing what happened was scroll disappeared... and if i try to copy-paste all that what had that guy in forum my X doesnt work (i guess that's the lamest thing to do (copy-paste)...

AgentDenim 07-15-2005 10:18 PM

Quote:

Originally posted by detpenguin
i think it's a matter of editing your /etc/X11/xorg.conf file to include the lines
Option "Buttons" "10"
Option "ZAxisMapping" "9 10"
in the mouse section...

I just now got a USB mouse with 10 buttons to work... here's what I did. Hope it helps you.
(You'll need either the evdev module built for your kernel, or evdev built into your kernel.)
[Edit: you don't need evdev if it's not a USB mouse... but then the ExplorerPS/2 protocol in X only supports 7 buttons, so you will have to sacrifice one, and make according adjustments.]
Edit 2: you have a mouse with 8 buttons and a scroll wheel, right? That's tecnically a 10-button mouse, then. Modified the directions accordingly... you and I should have the same setup.]

Step 1: USB mouse? Use cat /proc/bus/input/devices to list the devices on /dev/input
Look for the entry for your mouse. Mine is:
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:10.2-2/input1
H: Handlers=kbd mouse0 event1
Note the event handler (here, event1). You may also need the Name and Phys parameters.
[Edit: PS/2 mouse? Then the device is probably /dev/ttyPS0 or /dev/ttyPS1]

Step 2: XF86Config or xorg.conf (syntax should be the same).
My mouse section is listed below. Note event1, and protocol of evdev (not IMPS/2 or ExplorerPS/2):
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/event1"
Option "Protocol" "evdev"
Option "Buttons" "10"
Option "ButtonNumber" "10"
# the ZAxisMapping must always be the last 2 buttons.
Option "ZAxisMapping" "9 10"
# copied from the output of step 1. I do not know if these are required.
Option "Dev Phys" "usb-0000:00:10.2-2/input1"
Option "Dev Name" "Logitech USB Receiver"
EndSection

Step 3: xmodmap the buttons. (See note 1)
I created .Xmodmap in my home dir and added to it:
pointer = 1 2 3 6 7 10 8 9 4 5

Note: only commands in .Xmodmap -- no #comments. #comments will break .Xmodmap

Then in .xinitrc:
xmodmap ~/.Xmodmap

(xmodmap command must come before the window manager or session command)

Check out imwheel. It's designed to handle the mouse button events over 5. Some applications, like FireFox, will recognize some of them natively.

Also, xev is your friend. Run it from a terminal in X and it will tell you what event is reported when you click or scroll... good for making sure you got it all right.

Good Luck.
- A


All times are GMT -5. The time now is 06:02 PM.