LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-05-2006, 08:44 PM   #1
WrecklessSandwich
LQ Newbie
 
Registered: Jan 2006
Distribution: Kubuntu
Posts: 17

Rep: Reputation: 0
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.
 
Old 09-05-2006, 09:14 PM   #2
nmn
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Rep: Reputation: 15
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.
 
Old 09-06-2006, 12:55 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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
 
Old 09-06-2006, 06:08 PM   #4
WrecklessSandwich
LQ Newbie
 
Registered: Jan 2006
Distribution: Kubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 09-06-2006, 06:40 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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.
 
Old 09-06-2006, 06:49 PM   #6
WrecklessSandwich
LQ Newbie
 
Registered: Jan 2006
Distribution: Kubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Aha that did it, thanks.
 
Old 09-06-2006, 06:56 PM   #7
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

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


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
Can someone post their xorg.conf mouse settings for mx310 please Old_Fogie Linux - Hardware 3 05-03-2006 11:34 AM
Mouse side buttons stopped working after xorg upgrade J.K Mandriva 4 03-17-2006 06:07 AM
Xorg, mouse side-buttons and xmodmap. At the end of my wits. Nordmann Slackware 3 08-23-2004 02:18 PM
Updating Core 2 broke denendencies on xorg-libs sdo Fedora 0 07-13-2004 10:27 AM
Side Buttons Gman22 Linux - Software 5 08-12-2003 03:16 PM

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

All times are GMT -5. The time now is 12:47 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