LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-30-2005, 10:29 AM   #1
theexx
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Getting MX510 buttons to work correctly


Hey!

I have search around in this forum and read up on the mousebutton issues (making the buttons work correctly, ie in browsers with the back and forth buttons etc), but can't for the love of God make my sidebuttons on the MX510 mouse to work as back and forward buttons in Opera (Or any other browser for that mather).

To update on what i have done:

I have added support for 7buttons mouse in my xorg.conf (i use Ubuntu).
I ran this: xmodmap -e "pointer = 1 2 3 6 7 4 5" - and i also switched around on it. But here is a funny part: If i switch 6 and 7 to take the place of 4 and 5, i will be able to go back and forward with my scroll. But when they are in the position they are now, it won't work with the two buttons on the left side of the MX510.

That makes me conclude that i don't really have support for all my buttons, do anyone have any input on what I can do? It's frustrating not being able to use my mouse to the fullest :-)

thanks!
 
Old 08-30-2005, 10:40 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Try running xev and clicking in the window with the extra mouse buttons to see if the button clicks are indeed detected by X. Careful, moving the mouse produces LOTS of output. (Run xev from a terminal to see all the details)
 
Old 08-30-2005, 10:45 AM   #3
theexx
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Original Poster
Rep: Reputation: 0
They are detected indeed. So then I guess it's all about giving them the right assignements, but why don't they recieve the same tasks as ie the mousescroll does, when they are assigned to the same thing?

xmodmap -e "pointer = 1 2 3 6 7 4 5"

This makes everything work ok, exept that the side-buttons do not respond to anything

xmodmap -e "pointer = 1 2 3 4 5 6 7"

This makes the scroll work as back and forward, the way i want the sidebuttons to do..
 
Old 08-30-2005, 03:48 PM   #4
alisic
LQ Newbie
 
Registered: Aug 2005
Location: Utrecht, Netherlands
Distribution: SuSe 9.3 + KDE 3.4
Posts: 10

Rep: Reputation: 0
Hi!

Can you post here what you put in xorg.conf? I had to try some things there before I could make things work... (see thread)

Laura
 
Old 08-31-2005, 09:08 AM   #5
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Let's begin at the beginning.

You can use 7 buttons (Left,Middle,Right,Scroll Up,Scroll Down,Forward,Backward) if you use the "Microsoft Intellimouse Explorer"
protocol.

Your xorg.conf should look like the following:

Section "InputDevice"
Identifier "My Logitech Mouse Anything in here doesn't make any difference"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection

This says that you have a mouse that uses the "explorer" protocol and has "7" buttons and scrolling is seen as buttons "6 7"
X normally waits buttons "4 5" for scrolling and "6 7" for forward/backward, so you map the pointer with xmodmap like you did.

xmodmap -e "pointer = 1 2 3 6 7 4 5"

if you run "xmodmap -pp" you get:

There are 7 pointer buttons defined.

Physical Button
Button Code
1 1
2 2
3 3
4 6
5 7
6 4
7 5

So everything should work correctly.

If you want to have all 10 buttons of the MX510 working you need to use the "Event interface (evdev)".

I don't know what distribution you use and which X server you have, so i can't say many details.

If i am correct, debian and gentoo use a patched version of xorg which supports evdev (not very good implemented patch)
so you just change your xorg.conf.

New versions of Xorg X Server have a new and much better implementation.
If you want to use the new version of evdev you can compile it as a module.

http://www.linux-gamers.net/modules/...p?articleid=46

has a very good guide.
 
Old 09-02-2005, 12:00 AM   #6
ecchman
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
if you want the side buttons to work as back and forward, change the following line:

Option "ZAxisMapping" "6 7"

to this:

Option "ZAxisMapping" "4 5"

the wheel will then take over the scrolling up and down. hope i helped
 
Old 12-04-2005, 05:44 PM   #7
AnRkey
Member
 
Registered: Dec 2004
Location: UK
Distribution: Ubuntu, Fedora and not for long, M$ SuSE
Posts: 59

Rep: Reputation: 15
Thanks... but...

imitheos: Thanks a stack! your bit helped me solve my problem like this!

Just one problem now though. Everytime I restart my system I need to run the command you gave... xmodmap -e "pointer = 1 2 3 6 7 4 5"

Is there a way that I can have this setting stay? maybe edit a config file or something?

Thanks again!
 
Old 12-04-2005, 09:10 PM   #8
futz
Member
 
Registered: Jul 2005
Location: Great White North
Distribution: Fedora4/Ubuntu/Suse/ Mandriva/PCLinuxOS
Posts: 57

Rep: Reputation: 15
The following is very concise and works perfectly. It's from a post over on fedoraforum.org.


As root, add this to your InputDevice section in xorg.conf in folder /etc/X11/, I back up using comments, you can also copy the file first with something like cp xorg.conf xorg.conf.org:
Code:
# new part
Section "InputDevice"
# Identifier "USB Mouse"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "7"
Option "ZAxisMapping" "6 7"
EndSection
# old part
#Section "InputDevice"
# Identifier "Mouse0"
# Driver "mouse"
# Option "Protocol" "IMPS/2"
# Option "Device" "/dev/input/mice"
# Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons" "yes"
Note here that I have commented out Identifier "USB Mouse" and replaced it with my original Identifier "Mouse0". You must do the same.

Next create the file mouse.sh in folder /etc/X11/xinit/xinitrc.d/ and paste the following in it:
Code:
#!/bin/sh
# /etc/X11/xinit/xinitrc.d/mouse.sh
# Required for the configuration of a 5-button mouse
xmodmap -e "pointer = 1 2 3 6 7 4 5"
Finally make it executable with
Code:
chmod +x mouse.sh
Restart X. I rebooted. Good luck!

Last edited by futz; 12-04-2005 at 09:12 PM.
 
Old 12-05-2005, 07:02 AM   #9
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
xinitrc.d doesn't work for all distributions.

You can create a file .Xmodmap in your directory or /etc/X11/xinit/Xmodmap for all users
and put "pointer = 1 2 3 6 7 4 5" in it.
 
Old 10-25-2006, 10:14 AM   #10
RadonPL
Member
 
Registered: Dec 2005
Location: Gdansk, Poland
Distribution: openSUSE 11.0, Ubuntu 8.04
Posts: 37

Rep: Reputation: 15
Changing xorg.conf to this worked for me in SuSE 10.1:

Code:
Section "InputDevice"
Identifier "Mouse[1]"
Driver "mouse"
Option "Buttons" "5"
Option "Device" "/dev/input/mice"
Option "Name" "PS2++ Logitech MX Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7"
Option "Emulate3Buttons" "false"
EndSection
Thanks to Skuri from forums.suselinuxsupport.de
 
Old 10-25-2006, 06:35 PM   #11
AnRkey
Member
 
Registered: Dec 2004
Location: UK
Distribution: Ubuntu, Fedora and not for long, M$ SuSE
Posts: 59

Rep: Reputation: 15
Feedback

Hi Guys

I got this working with the help provided above and I have saved a copy of what I did in my howto's folder on my pc.

I was thinking about this problem a bit though. Would it not be nice if SuSE/Novell added these mice in to the supported lists? It does not seem like much work. From what I can tell it's just a few extra config's that need to be stored so that users can choose them from the control center.

Any idea where to suggest this and who to?

R
 
Old 10-26-2006, 08:02 AM   #12
RadonPL
Member
 
Registered: Dec 2005
Location: Gdansk, Poland
Distribution: openSUSE 11.0, Ubuntu 8.04
Posts: 37

Rep: Reputation: 15
You're 1 day late. The Beta 1 version of the next SuSE has been released, thereby preventing any significant changes (see here "Feature and version freeze for the complete distribution, all features are coding and function complete". The next version will be released on the 7'th of December, but I strongly suggest everyone tries the Beta in order to iron out all kinks and bugs, for the good of the community.

I couldn't find a way to reach the developers directly, however OpenSuSE has a page about how you can Participate, from there select Suggest new features, then Feature wishlist and Hardware support.

I guess I should have thought of this as well, I will be more participative in the future
 
Old 12-20-2006, 03:22 AM   #13
RadonPL
Member
 
Registered: Dec 2005
Location: Gdansk, Poland
Distribution: openSUSE 11.0, Ubuntu 8.04
Posts: 37

Rep: Reputation: 15
Quote:
Originally Posted by RadonPL
Changing xorg.conf to this worked for me in SuSE 10.1:

Code:
Section "InputDevice"
Identifier "Mouse[1]"
Driver "mouse"
Option "Buttons" "5"
Option "Device" "/dev/input/mice"
Option "Name" "PS2++ Logitech MX Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7"
Option "Emulate3Buttons" "false"
EndSection
This works in openSuSE 10.2 as well.
 
Old 12-20-2006, 03:35 AM   #14
AnRkey
Member
 
Registered: Dec 2004
Location: UK
Distribution: Ubuntu, Fedora and not for long, M$ SuSE
Posts: 59

Rep: Reputation: 15
I have since switched to Ubuntu...

I have since switched to Ubuntu for my desktop OS. This fix works there too. I will try this on my servers too. This thread is on my "first things to do to linux installations" list.

Thanks Randal...

R
 
Old 12-20-2006, 06:36 AM   #15
Zibi1981
Member
 
Registered: Dec 2006
Location: Poland
Distribution: Kubuntu
Posts: 65

Rep: Reputation: 15
Question

Hi to all!

I have Mandriva 2007, and Logitech MX510 optical mouse. Anyone know, if the suggestions listed above will work in my distro? I'll give them a try at weekend, as soon as I'll be back home for Christmas
 
  


Reply



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
Mouse buttons (any) don't work gmlion Linux - Hardware 3 06-15-2005 12:55 PM
Can LFC work correctly on FC@ satimis Linux From Scratch 5 03-14-2005 11:55 PM
Mozilla buttons do not work markopolox Linux - Software 2 09-25-2003 12:17 PM
XF86Config won't work correctly FZJ Linux - General 4 03-01-2003 01:40 PM
so how do you get the other buttons to work DigiCrime Linux - Hardware 3 12-13-2002 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:25 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
Open Source Consulting | Domain Registration