mouse

Mouse under control

In the last few weeks I was tinkering on my new laptop to make it more comfortable. It's not easy at all. I mostly passed solved the problem of the sleeping (the lenovo thinkpad does not have display after waking up, and it is idle until I switch it off. The solution is to disable USB3.0, after that the machine will wake up, althoug the lights will signal something else). Anyway, the next task was to create a right mouse button on the upper side of the touchpad.

The problem basically is that on this ThinkPad there is no physical mouse buttons next to the rubber pointer, instead they are part of the touchpad. Thus when I disable that, I don't have mouse buttons. But the default settings was that both sides of the upper part of the taouchapd works as the left mouse button. After some digging, I found a nice question with good comments and answer on askubuntu, which describes exactly my problem. The only difference was that the user here wats more: to disable mouse movements induced by the touchpad (if I get it right, it was not working, so it is still an open question). Summary? copy the code on the site to a file names anyithing which begins with "99-" and ends with ".conf", e.g. "99-makerightmousebutton.conf", and place it in the /usr/share/X11/xorg.conf.d/ directory.

Code is under the section, and make sure to check the linked site above as this site will not show indentation.

Section "InputClass"
Identifier "t440 top buttons"
MatchDriver "synaptics"
Option "SoftButtonAreas" "60% 0 0 0 40% 60% 0 0" #Emulate right and midle buttons
Option "Synaptics Area" "0 0 0 1" #disable moving but not buttons
EndSection

And if someone would like to get one step closer to disable touchpad movements, copy this exact file to /etc/X11/xorg.conf.d/.

Comments