Skip to content

Instantly share code, notes, and snippets.

@ozturkoktay
Last active February 26, 2025 16:44
Show Gist options
  • Save ozturkoktay/8471f5bd9b366aaa4a0c491498483774 to your computer and use it in GitHub Desktop.
Save ozturkoktay/8471f5bd9b366aaa4a0c491498483774 to your computer and use it in GitHub Desktop.

-- Fix Touchpad

wget https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190/+attachment/5422562/+files/i2c-hid_standalone.zip

$ unzip i2c-hid_standalone.zip
$ make
$ sudo rmmod i2c_hid
$ sudo insmod /path/to/i2c-hid.ko polling_mode=1
$ sudo cp /path/to/i2c-hid.ko /lib/modules/$(uname -r)/kernel/drivers/hid/i2c-hid/i2c-hid.ko
$ sudo depmod

then append i2c_hid.polling_mode=1 to kernel commandline

  use a text editor to open /etc/default/grub as root, then change the line
  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to
  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i2c_hid.polling_mode=1"

,finally save the changes

then run:

$ sudo update-grub2
$ sudo update-initramfs -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment