LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2005, 12:56 PM   #1
zivs
Member
 
Registered: Jan 2005
Location: Ogre, Latvia
Distribution: Ubuntu 9.10
Posts: 72

Rep: Reputation: 15
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?
 
Old 07-09-2005, 01:11 PM   #2
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
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....
 
Old 07-09-2005, 01:45 PM   #3
zivs
Member
 
Registered: Jan 2005
Location: Ogre, Latvia
Distribution: Ubuntu 9.10
Posts: 72

Original Poster
Rep: Reputation: 15
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)...
 
Old 07-15-2005, 10:18 PM   #4
AgentDenim
LQ Newbie
 
Registered: Jul 2005
Posts: 8

Rep: Reputation: 0
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

Last edited by AgentDenim; 07-15-2005 at 10:31 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XP doesn't recognize Ubuntu, Ubuntu installed first. MonkeyBusiness Linux - Newbie 9 06-21-2006 03:58 AM
Ubuntu 5.10 and Logitech Quickcam 5000 mike74 Ubuntu 1 11-21-2005 07:48 AM
Logitech MX518 Mouse config sweetnsourbkr Slackware 7 10-14-2005 11:12 PM
Debian Sarge + Firefox + mx518 question jughead Linux - Hardware 1 09-07-2005 11:29 PM
Clean install from Ubuntu Warty to Ubuntu Hoary Erik_the_Red Linux - Newbie 2 06-05-2005 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration