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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-05-2006, 08:44 PM
|
#1
|
LQ Newbie
Registered: Jan 2006
Distribution: Kubuntu
Posts: 17
Rep:
|
Updating xorg to 6.9 broke MX310 side buttons
I updated x.org to 6.9 from an earlier 6.x release (my memory fails me on the exact version, just that I needed to update to enable the Composite extension). All of the buttons on the mouse (besides that one behind that wheel that I never use) worked fine pre-update. Now when I try to run xmodmap to rearrange the buttons so that the wheel scrolls and the side buttons work as back/forward in Firefox I get this:
Code:
joe@goontron3000:~$ /usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
/usr/X11R6/bin/xmodmap: commandline:1: bad number of buttons, must have 11 instead of 7
/usr/X11R6/bin/xmodmap: 1 error encountered, aborting.
I dunno where it's getting the idea that there needs to be 11 buttons. Oddly enough it still fixed my wheel, but the side buttons both function as left click. Here's the relevant portion of my xorg.conf (this has not changed, and the mouse is using a USB to PS/2 adapter):
Code:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Buttons" "7"
Option "ZAxismapping" "6 7"
EndSection
Last edited by WrecklessSandwich; 09-05-2006 at 08:49 PM.
|
|
|
09-05-2006, 09:14 PM
|
#2
|
LQ Newbie
Registered: Aug 2006
Posts: 24
Rep:
|
Seems weird. Try screwing with other parameters a bit. Theres always ctrl+alt+backspace or ctrl+alt+f1 to get back to a bash prompt.
Maybe you could put it back down to three and upgrade to 7.0? It may just be a random bug already squished in 7..
Other than that, i heard about problems like this before, except with even different errors.. There solution was, i think, adding 4 5 to the begining of ZAxismapping... Well, i dont have a 7 button mouse or xorg 6.9. But i really REALLY want an rpm for 7.0. I'm trying to develope a distro here, and i want to test 7.0 on my current distro. Im gonna build it using rpms on pdk. So anyways, yeah. If you havent already, try googling it. Usually it takes a few times of changing around a few keywords to get the fix your looking for.
Last edited by nmn; 09-05-2006 at 09:16 PM.
|
|
|
09-06-2006, 12:55 AM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Quote:
Originally Posted by WrecklessSandwich
I updated x.org to 6.9 from an earlier 6.x release (my memory fails me on the exact version, just that I needed to update to enable the Composite extension). All of the buttons on the mouse (besides that one behind that wheel that I never use) worked fine pre-update. Now when I try to run xmodmap to rearrange the buttons so that the wheel scrolls and the side buttons work as back/forward in Firefox I get this:
Code:
joe@goontron3000:~$ /usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
/usr/X11R6/bin/xmodmap: commandline:1: bad number of buttons, must have 11 instead of 7
/usr/X11R6/bin/xmodmap: 1 error encountered, aborting.
I dunno where it's getting the idea that there needs to be 11 buttons. Oddly enough it still fixed my wheel, but the side buttons both function as left click. Here's the relevant portion of my xorg.conf (this has not changed, and the mouse is using a USB to PS/2 adapter):
Code:
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Buttons" "7"
Option "ZAxismapping" "6 7"
EndSection
|
When I upgraded from 6.9 to 7.0 my buttons on my MS Optical went from 13 down to 9 and the Z-axis mapping went from 6 7 to 4 5. It looks like yours has changed in the upward direction for you pointer = add 8 9 10 11 on the end of the command I know it sounds stupid but I had the up to13 for mine there for it to work. Use the xev command in a console window and move the mouse over the window that opens and start clicking the butons to see what they give you for the numbers in the console you will see output like this.
Code:
ButtonRelease event, serial 32, synthetic NO, window 0x4e00002,
root 0x20e, subw 0x0, time 2175830924, (75,67), root:(1402,1085),
state 0x400, button 3, same_screen YES
|
|
|
09-06-2006, 06:08 PM
|
#4
|
LQ Newbie
Registered: Jan 2006
Distribution: Kubuntu
Posts: 17
Original Poster
Rep:
|
Well, xev still reports the wheel as 6 7, but the side buttons are 8 9. I guess there's no 4 and 5 now, odd. Adding 4 5 to the beginning was no good, it changed the first 3 buttons as well. I'm gonna try rearranging it a bit more before I figure this newfangled modular X.
Last edited by WrecklessSandwich; 09-06-2006 at 06:14 PM.
|
|
|
09-06-2006, 06:40 PM
|
#5
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Quote:
Originally Posted by WrecklessSandwich
Well, xev still reports the wheel as 6 7, but the side buttons are 8 9. I guess there's no 4 and 5 now, odd. Adding 4 5 to the beginning was no good, it changed the first 3 buttons as well. I'm gonna try rearranging it a bit more before I figure this newfangled modular X.
|
Ok try this for the pointer 1 2 3 8 9 4 5 6 7 10 11 and you may want to take a look at the Gentoo wiki page that is how I finally managed to get it working properly.
|
|
|
09-06-2006, 06:49 PM
|
#6
|
LQ Newbie
Registered: Jan 2006
Distribution: Kubuntu
Posts: 17
Original Poster
Rep:
|
Aha that did it, thanks.
|
|
|
09-06-2006, 06:56 PM
|
#7
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
Quote:
Originally Posted by WrecklessSandwich
Aha that did it, thanks.
|
Good to hear its absolutely wacked X says I have 9 buttons but that is the line I need to use to have mine work too. if you doing that xmodmap command every time you enter X then you can create a /home/username/.Xmodmap with this for the contents make sure to chmod +x /home/username/.Xmodmap.
Code:
!! Added by me for extra mouse buttons
pointer = 1 2 3 8 9 4 5 6 7 10 11
|
|
|
All times are GMT -5. The time now is 12:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|