For those who want to try the polling mode i2c-hid, here are the
instructions to build a single i2c-hid module without building a whole
kernel or downloading the whole kernel source code,


1. After you download the attached file which contains patched i2c-hid-core.c 
and other headers for building, run make to build this module,

$ make
make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory '/usr/lib/modules/5.9.0-1-MANJARO/build'
  AR      /home/coiby/Desktop/kernel/other/i2c-hid_standalone/built-in.a
  CC [M]  /home/coiby/Desktop/kernel/other/i2c-hid_standalone/i2c-hid-core.o
  CC [M]  
/home/coiby/Desktop/kernel/other/i2c-hid_standalone/i2c-hid-dmi-quirks.o
  LD [M]  /home/coiby/Desktop/kernel/other/i2c-hid_standalone/i2c-hid.o
  MODPOST /home/coiby/Desktop/kernel/other/i2c-hid_standalone/Module.symvers
  CC [M]  /home/coiby/Desktop/kernel/other/i2c-hid_standalone/i2c-hid.mod.o
  LD [M]  /home/coiby/Desktop/kernel/other/i2c-hid_standalone/i2c-hid.ko
make[1]: Leaving directory '/usr/lib/modules/5.9.0-1-MANJARO/build'


2. Copy i2c-hid.ko to override the current one whose path can be found by 
modinfo

$ modinfo i2c-hid.ko
filename:       
/lib/modules/5.9.0-1-MANJARO/kernel/drivers/hid/i2c-hid/i2c-hid.ko.xz

$ cp i2c-hid.ko /lib/modules/5.9.0-1-MANJARO/kernel/drivers/hid/i2c-hid
/i2c-hid.ko.xz

3. run depmod
$ sudo depmod

4. reboot the system and play with your touchpad


** Attachment added: "i2c-hid_standalone.zip"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190/+attachment/5422428/+files/i2c-hid_standalone.zip

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xserver-xorg-input-libinput in Ubuntu.
https://bugs.launchpad.net/bugs/1887190

Title:
  MSFT Touchpad not working on Lenovo Legion-5 15ARH05

To manage notifications about this bug go to:
https://bugs.launchpad.net/pop-os/+bug/1887190/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to     : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp

Reply via email to