I have an external bluetooth mouse that I have been using for ages. Its a microsoft intelimous with a number of buttons and a mouse wheel.
And I realy love it – except fo one small thing. And its not realy the mouse problem, but the mouse driver in linux.
I use the wheel to scroll quite frequently and I also is very used to use “the third” button as paste in X. And I use left and right click at the same time to emulate the 3:rd button. And that works perfectly except for those times when I managed to click the wheel button while scrolling. This happens some times and the the driver goes
– Oh – he has a third buttong – better stop using the emulation then
And there is no way to get back to the emulation. Except for rebooting, or atleast logout, restart X server and in again.
And today my patience ran out – I did start to read about the config options in xorg.conf to see what I could do.
And i found a quick and easy way:
Emulate a left click with the middle button instead.
So here it is – add the following line to the mouse config part in xorg.conf:
1 |
Option "ButtonMapping" "1 1 3 4 5" |
That makes the second button emulate left click and the driver never sees a button 2 and never disable the emulation mode.
Simple – and easy when you know how to do it!