I am running the latest kernel 2.6.32-21 and this is the error I get when I try to patch the kernel.


patch -p1 < /home/ehab/Documents/touchscreen.patch

patching file drivers/hid/hid-cando.c
patching file drivers/hid/hid-core.c
Hunk #1 FAILED at 1295.
1 out of 1 hunk FAILED -- saving rejects to file drivers/hid/hid-core.c.rej
patching file drivers/hid/hid-ids.h
Hunk #1 FAILED at 123.
1 out of 1 hunk FAILED -- saving rejects to file drivers/hid/hid-ids.h.rej
patching file drivers/hid/Kconfig
Hunk #1 FAILED at 86.
1 out of 1 hunk FAILED -- saving rejects to file drivers/hid/Kconfig.rej
patching file drivers/hid/Makefile
Hunk #1 FAILED at 26.
1 out of 1 hunk FAILED -- saving rejects to file drivers/hid/Makefile.rej

t
and the reject file for ......

cat drivers/hid/hid-ids.h.rej


--- drivers/hid/hid-ids.h 2010-04-14 13:35:09.000000000 +0200
+++ drivers/hid/hid-ids.h 2010-04-07 23:14:25.000000000 +0200
@@ -123,6 +123,9 @@
#define USB_VENDOR_ID_BERKSHIRE 0x0c98
#define USB_DEVICE_ID_BERKSHIRE_PCWD 0x1140

+#define USB_VENDOR_ID_CANDO 0x2087
+#define USB_DEVICE_ID_CANDO_MULTI_TOUCH 0x0a01
+
#define USB_VENDOR_ID_CH 0x068e
#define USB_DEVICE_ID_CH_PRO_PEDALS 0x00f2
#define USB_DEVICE_ID_CH_COMBATSTICK 0x00f4




Quote Originally Posted by floem View Post
You'll need to install the Ubuntu kernel source first (see here: https://help.ubuntu.com/community/Kernel/Compile ) Then, change to the source directory and use patch -p1 < touchscreen.patch to apply. After that, rebuild the kernel once and install it (I've used the "old-fashioned Debian way" described on that page).

Note: around line 218 in hid-cando.c, you might need to change
ret = hid_hw_start(hdev,HID_CONNECT_DEFAULT);
to
ret = hid_hw_start(hdev,HID_CONNECT_DEFAULT|HID_CONNECT_ HIDINPUT_FORCE);

This somewhat depends on the base kernel version you're using - I had to add the FORCE flag for 2.6.31.9.

Floe