[FIX] Linux touchpad HTIX 5288

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 /opt
  • Create a file with your favorite editor (i.e. emacs) touchpadfix.py :
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 touchpadfix.sh :
#!/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, touchpadfix.service :

Description=HTIX5288 driver workaround


  • Final step, enable the service:
    cd /etc/systemd/system && sudo ln -s /opt/touchpadfix.service .
    sudo systemctl daemon-reload
    sudo systemctl enable touchpadfix.service

Today I will attach the files I described above for someone who is too lazy to copy-paste them.
The solution was inspired from the fedora forum, special thanks to linux-user.gr.

1 Like

Hi, this is not a fix, just a temporary solution. Also, you can make a pure bash version as follow:

while [ $i -le 10 ]
  TP=`cat /proc/bus/input/devices | grep -I "Touchpad"`
  if [ -v TP ] && [ -z "$TP" ]; then
    rmmod i2c_hid
    modprobe i2c_hid

it would be nice if we can understand why this shitty laptop doesent work with i2c

1 Like

Thanks for your suggestion on the pure bash version. Your script might not always work as you cant be 100% sure that the system will recognize the touchpad in less than 10 attempts. Changing the while loop’s condition might be a more solid option.

I think that this is the easiest way to deal with the problem as it is not distribution-dependent and it can survive kernel updates, in comparison to others who applied patches on the kernel, that required to recompile it.

it would be nice if we can understand why this shitty laptop doesent work with i2c

Unfortunately this problem exists on other models/brands too. But I have to tell you a little story about my experience with the specific model, as it is the second lapbook pro that I have bought. The first one was the 4/64 version which I had ordered from amazon de at launch, and I had no issues with the touchpad on linux. My guess is that they changed touchpad hardware some time.

P.S.: I didn’t attach the files as I did promise, because the forum doesn’t allow me to upload files other than images. Maybe I can edit this post later with a “better” pure-bash version.

1 Like