I have often encountered problems with touchpad in Kali Linux. This problem could be either on tapping (tapping the touchpad) or with scrolling with two finger.
I have come across the following 3 fixes. At least one of them should work for you.
Fix 1: Easiest – GUI setting
- Press the windows key (on the lower bottom, Ctrl key, Function key, Windows key, Alt key), and type mouse in the search bar that shows up.
- Click the activities button on the top left, and type mouse in the search bar that shows up.
Fix 2 : Tapping and reverse Scroll
This should enable tapping for you.
In my case, I had scrolling working without any problems, but I prefer natural scrolling, and that option wasn’t there for me in mouse & touchpad settings. However, if you type synclient into the terminal, you see something like this:
And turns out I was right and it did reverse the direction of scrolling.
These changes that we made aren’t persistent, and the synclient setting would revert to default every time you start your system again. There are many solutions to this, one of which include editing files in /usr/share/X11/xorg.conf.d/. However, these files tend to get overwritten and we have to deal with a lot of other mess to fix that behavior.
Instead, we will use a very simple solution, and just run the above two commands on system startup.
Add the commands to startup
Step 2 : Check if autostart folder exists
Step 3: If it doesn’t exist, create the folder. If it exists, skip this step
Step 4: Navigate to autostart folder
Step 5: Use your favorite text editor [vim v/s/ sublime text?] (or cat ). I’m using leafpad to make things look less intimidating.
Step 6: A leafpad windows will pop up. Paste one of the following into the window and then save and then close leafpad.
If you are logged in as root (probably the case)
If you are logged in as another user (if you created a non-superuser account)
Step 7: Change directory to home.
Step 8: Create a file called script.sh
Step 9: Paste the following code into it. Then save.
synclient tapbutton1=1 #To enable tapping
synclient VertScrollDelta=-114 #To reverse direction of scroll
PS: Paste only the lines required by you.
Step 10: Make it executable
chmod 777 script.sh
chmod a+x script.sh
Restart Kali and see if your tapping and reverse scroll are still working. If not, go through the steps again and see what you missed. Everything is case sensitive so you have to be very careful in that regard.
If your tapping/reverse scrolling is working fine now, then your script is fine, but the autostart directory content is not. Recheck steps 1 to 6.
If your tapping/reverse scrolling isn’t working fine, then your script is flawed. Recheck step 7 to 10.
Fix 3 : modprobe method
After running the commands
modprobe -r psmouse
modprobe psmouse proto=imps
Follow these steps-
Step 1 : Navigate to required directory
Step 2 : Open text editor
Step 3: Paste this-
options psmouse proto=imps
That said, if you are facing any problems, then feel free to comment. If you followed the guide but had to do something a bit different to get it working, then also comment, as it may help others.