Hello everyone, I have installed Linux on my machine but the touchpad wasn’t always working. After ~10 days of searching, I had an idea that finally solved the issue.
The steps above have been tested on Fedora 34, kernel 5.11.16, but I expect it to work on any other laptop that has the same touchpad HTIX 5288.
- Go to folder
- Create a file with your favorite editor (i.e. emacs)
import os while os.system('cat /proc/bus/input/devices | grep -I "Touchpad"') != 0: os.system("rmmod i2c-hid") os.system("modprobe i2c-hid")
- Next, on the same folder create a file
#!/usr/bin/env bash echo "Reloading i2c-hid module (touchpad fix)" cd /opt python touchpadfix.py
Now we have to make the script executable :
sudo chmod ugo+x /opt/touchpadfix.sh
Lastly, on the same folder create file for the service which will run the script when system boots,
[Unit] Description=HTIX5288 driver workaround After=basic.target [Service] ExecStart=/opt/touchpadfix.sh [Install] WantedBy=multi-user.target
- Final step, enable the service:
cd /etc/systemd/system && sudo ln -s /opt/touchpadfix.service .
sudo systemctl daemon-reload
sudo systemctl enable touchpadfix.service