Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a three button mouse, but the middle button is not doing anything. Left & right together are mapping to what the middle mouse button should be doing.

How can I setup X to use a three button mouse?

I'm using Ubuntu Server, installed X from apt-get. Also, I'm using fluxbox for the window manager.

I just need to get the button working, the wheel is currently working properly.

share|improve this question
    
The wheel or an actual middle button? also what Linux distribution are you using? it may make things a bit easier. –  John T Dec 29 '09 at 19:53
    
Edited my question with some more details –  Jeffrey Aylesworth Dec 29 '09 at 20:45
    
By 'button' do you mean pressing on the wheel so it clicks, or another separate button? –  atroon Dec 29 '09 at 21:22
    
I mean pressing the wheel down. –  Jeffrey Aylesworth Dec 30 '09 at 0:34

2 Answers 2

Try running xev in a terminal and click the affected button in the test window that pops up. It should register an event.

Also, test the mouse on another machine. Eliminate variables.

share|improve this answer
    
it doesn't give an event, but it does for left and right, and together it sends mouse button two. The mouse works, I've been using it for a long time, including on that computer in a previous install, the mouse works perfectly. I'm fairly confident that X is just not configured to use a three button mouse (though I'm not sure why the scroll wheel would work in that case). –  Jeffrey Aylesworth Dec 30 '09 at 0:34
    
Looks like it's not configured for 3-button mice. Try mucking with your xorg.config file, if one even exists in Ubuntu these days. –  Broam Dec 30 '09 at 15:21

It may be time to look in you xorg.conf file. (Use locate xorg.conf to find it) You'll need to be root to edit it (i.e. use sudo).

Use man xorg.conf for a fairly detailed description of the contents. You're looking for the "InputDevice" section to start. On my Debian box the mouse details are in the mouse (4) manpage.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.