I succeded in enabling the hid-multitouch, if anyone needs it this is roughly what I did on Debian 11 bullseye
Steps Taken to Enable hid-multitouch Driver:
Install Linux Source:
Installed the source for the 5.10 kernel using:
bash
Copy code
sudo apt install linux-source-5.10
Build the Kernel:
Built the 5.10.218-1 kernel from source, disabling some certificates during the build process.
Extract Relevant Drivers:
Copied the /drivers/hid folder from the built kernel source.
Created a DKMS module directory at /usr/src/hid-multitouch-1.0.
Adjust Header Files:
Copied necessary .h files from /usr/src/hid-multitouch-1.0/intel-ish-hid/ishtp to /usr/src/hid-multitouch-1.0/intel-ish-hid/ipc.
Create DKMS Configuration:
Created a dkms.conf file in /usr/src/hid-multitouch-1.0 with the following content:
plaintext
Copy code
PACKAGE_NAME="hid-multitouch"
PACKAGE_VERSION="1.0"
BUILT_MODULE_NAME[0]="hid-multitouch"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="yes"
MAKE[0]="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build CFLAGS=\"-I${kernel_source_dir}/drivers/hid/intel-ish-hid/ishtp\""
CLEAN="make -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build clean"
Build and Install DKMS Module:
Added the module to DKMS:
bash
Copy code
sudo dkms add -m hid-multitouch -v 1.0
Built the module for the current vanilla kernel:
bash
Copy code
sudo dkms build -m hid-multitouch -v 1.0
Install Intel ESE Kernel Headers and Kernel:
Installed the headers and kernel for 5.10.179-rt87-intel-ese-standard-lts-rt+. The DKMS install failed initially due to the hid-multitouch driver being disabled in the kernel configuration.
Enable Driver in Kernel Configuration:
Modified the kernel configuration file to enable CONFIG_HID_MULTITOUCH:
bash
Copy code
sudo pluma /usr/src/linux-headers-5.10.179-rt87-intel-ese-standard-lts-rt+/.config
Added or modified the line:
plaintext
Copy code
CONFIG_HID_MULTITOUCH=m
Update Grub and Reboot:
Updated Grub configuration:
bash
Copy code
sudo update-grub
Rebooted into the 5.10.179-rt87-intel-ese-standard-lts-rt+ kernel.
Manually Install DKMS Module:
Ran the DKMS install manually, which succeeded:
bash
Copy code
sudo dkms install -m hid-multitouch -v 1.0
Verify Touchscreen Functionality:
After rebooting, the touchscreen was working as expected.
By following these steps, you successfully enabled and installed the hid-multitouch driver for the 5.10.179-rt87-intel-ese-standard-lts-rt+ kernel.