WARNING: After testing the setup some more, it was found there is an error in this howto Basically, the evdev driver seems slightly odd (to me anyway) - it appears that if your bluetooth mouse is not connected (i.e. paired with an active connection) prior to Ubuntu trying to launch X, it will fail to detect a mouse, and then break. And thus, not load X. A temporary hack would be to quickly connect your bluetooth mouse when you reboot/startup, but I'm not happy with that. So until a better way of handling it is found, this warning will remain here. The howto may still present some use (note the may) and so I'll leave all the text here too.
------
Just like to say, that I managed to get my Logitech MX900 (bluetooth mouse with what linux sees as 10 buttons) working without using IMWheel. The procedure you can follow is detailed below:
1) Make a backup of your xorg.conf file:
Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.backup_conf
Be aware: You are making a backup of this file incase you do something (or indeed this HOWTO) breaks your X configuration. If this is the case, all you need to do is copy xorg.backup_conf over xorg.conf and restart X. That will bring it back to the point that it was when you executed the above command.
2) Find out your mouse details by executing the command:
Code:
cat /proc/bus/input/devices
You should see something like this:
Code:
I: Bus=0005 Vendor=046d Product=b001 Version=2201
N: Name="Logitech Bluetooth Mouse"
P: Phys=00:07:62:2E:6F:38
H: Handlers=mouse3 event7 ts3
B: EV=f
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=103
B: ABS=300 0
3) I edited my xorg.conf device section to read - please note that yours should be similar but slightly different:
To begin editing, open up /etc/X11/xorg.conf in your editor of choice (I like to use VI), then make alterations as necessary... bearing in mind of course the details given in Step 2 by your system.
Code:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "evdev"
Option "Buttons" "10"
Option "ZAxisMapping" "9 10"
#Use: cat /proc/bus/input/devices to get YOUR 'Dev Name' and 'Dev Phys' THEY WILL DIFFER
Option "Dev Name" "Logitech Bluetooth Mouse"
Option "Dev Phys" "00:07:62:2E:6F:38"
Option "Resolution" "800"
EndSection
4) Now you need to have your buttons properly configured. Using my MX900, I found the configuration below to work best - let's assume for now that this will work for you too...
There may or may not exist a file in the location /home/<your username/.xinit, if there does you just need to append a line to it, if there doesn't, you don't need to worry - just create it with one line inside. The line you need to put into the file is:
Code:
xmodmap -e "pointer = 1 2 3 6 7 9 10 8 4 5"
Once you have edited the file and saved it, then run the following command in a terminal:
Code:
chmod 755 /home/<your username>/.xinit
The xmodmap line effectively informs X as to what the keymappings are of your mouse, and .xinit is simply a startup script executed by X when it begins. The chmod 755 command makes sure that the file can be executed upon startup.
Some people have said that when they start their session their buttons are all weird, and they need to manually execute the xmodmap command - I can't see a reason for this, but if it does happen then you can either do it manually each time, or find a different place to insert it as a startup command... but I have no idea why it doesn't work for them....
5) Restart X: I recommend doing this by logging out of your current session, and at the login prompt hitting: Ctrl-Alt-Backspace
Now that should get all the forward/back, up/down, left/middle/right buttons working - but I haven't managed to map the application switching button to anything yet.
Now, if you find that you want you buttons configured differently, after you've followed the above procedure, you can play around with the xmodmap command in a terminal window. But that's for you to figure out
Important note: I found that configuring my mouse this way, resulted in my laptop trackpad being de-activated. I have no idea why this occured, and am currently trying to identify a solution. It doesn't bother me immensely as I use my MX900 most of the time, but some people may find it inconvenient. If anyone else knows a reason why, or finds a way to fix it - please post here.
Also, if this document helps you, please post to this thread (simply to bump it up for the next person).
Bookmarks