My touchpad was recognized as a mouse

hello,

I’ve managed to create a patch to LKML (https://patchwork.kernel.org/project/linux-input/patch/DM6PR04MB412176BD43A29E1E873FB7E5CEA9A@DM6PR04MB4121.namprd04.prod.outlook.com/). Unfortunately it has been two weeks since i handle the patch without any reply. I may try to handle the patch again.

currently there are two workaround:

  1. the patch above. This patch sets MT_QUIRE_FORCE_GET_FEATURE to let the hid feature related function force SET_FEATURE, and in fact, only the latter step is required.
  2. Install pypi3 package [hid-tools](https://gitlab.freedesktop.org/libevdev/hid-tools). you may need to install it by pipx but i haven’t test it. Then you can call hid-feature in terminal.
    The workaround is:
sudo hid-feature set -f 30000 3 /dev/hidraw0 

if this didn’t work, you may need to find the feature manually. Find it by:

sudo hid-feature list /dev/hidraw0 |grep Inputmode

you would get one-line output like this:

  30000 |      3 | Digitizers                | Inputmode                                  | [ 0,  10] |     1 |   8 

the meaning of these entities can be obtained with the header of output which filtered by grep, referenced by MS standard. here we only need the first entity, 30000. replace this number to the command mentioned above, and the touchpad should works.