Question: Trackpad two finger scrolling and right-click issue with Ubuntu 17.10 (i386, 64bit, GNOME 3.26.1) on a Lenovo T540p (the model with a Intel Core i5-4210M Haswell CPU etc)

Answer: 
Still broken in 22.04 on my ThinkPad X240. An alternative to the kernel command line workaround is creating the file `/etc/modprobe.d/psmouse.conf` containing

```
options psmouse synaptics_intertouch=0

```

and reload the module

```
sudo modprobe -r psmouse
sudo modprobe psmouse

```
You probably were using Unity as your desktop environment before and are using Gnome Shell now. (Whether you wanted it or not, the upgrade decided for you.)

If you want to use Unity even now, that is an option, and it will resolve your problem. You may already have Unity installed, whether you know it or not, but in case you don't:

```
sudo apt install unity

```

Then when you restart and select your user on the login screen, don't enter your password right away. Instead, notice the little gear icon by your 'Sign in' button. Click it, and you should see that you have a choice between 'Ubuntu', 'Ubuntu on Xorg', and 'Unity'. Click 'Unity', then sign in with your password as usual.

I recommend this for users who want to go back to the environment they had before.