This method worked for me. I have Raspberry pi buster os(2021). sudo apt-get install x11-xserver-utils xmodmap -e "pointer = 1 2 0"