Alright, here goes.
If the kernel source code doesn't download then you may need to check in Software Sources in the Ubuntu Software tab if you have the box in front of Source code checked.
We'll do everything on the Desktop.
First download on your Desktop HID-kye-Add-support-for-3-tablets.patch and extract it. Then open a terminal and download your Ubuntu kernel's source code onto your Desktop with the following commands.
Code:
cd Desktop
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
apt-get source linux-image-$(uname -r)
The dependencies can take a while to download. The kernel is about 94 MB and takes a few minutes to download depending on your connection. You'll see something like linux_3.0.0.orig.tar.gz, linux_3.0.0-16.29.dsc, linux_3.0.0-16.29.diff.gz, and linux-3.0.0 if your release is Oneiric.
To see the files you want to patch and then compile you can use Nautilus (Places) to go into the kernel's folder (linux-3.0.0) now on your Desktop and navigate to drivers/input/hid.
You'll apply the patch in the terminal using the following commands:
Code:
cd linux-3.0.0
patch -p1 < ~/Desktop/HID-kye-Add-support-for-3-tablets.patch
I tested and this 3.4 kernel patch did apply succesfully to the 3.0 kernel, albeit some hunks requiring an offset. After the files are patched change directory to the downloaded kernel's source code /drivers/hid directory:
Now you are ready to compile the HID modules. Use the following command:
Code:
make -C/lib/modules/`uname -r`/build M=`pwd` modules
This compiles all the HID modules, which you don't need, but the compile goes fast even so.
I think we want 3 of the compiled modules: hid.ko, hid-kye.ko, and usbhid.ko. First make a backup of your current versions using some extension. You want to be able to restore them from the Recovery Mode command line if you have to. I don't think the changes to hid.ko or usbhid.ko will break anything else, but to be safe.
Code:
sudo cp /lib/modules/$(uname -r)/kernel/drivers/hid/hid.ko /lib/modules/$(uname -r)/kernel/drivers/hid/hid.ko.orig
sudo cp /lib/modules/$(uname -r)/kernel/drivers/hid/hid-kye.ko /lib/modules/$(uname -r)/kernel/drivers/hid/hid-kye.ko.orig
sudo cp /lib/modules/$(uname -r)/kernel/drivers/hid/usbhid/usbhid.ko /lib/modules/$(uname -r)/kernel/drivers/hid/usbhid/usbhid.ko.orig
sudo cp /lib/modules/$(uname -r)/kernel/drivers/hid/usbhid/usbmouse.ko /lib/modules/$(uname -r)/kernel/drivers/hid/usbhid/usbmouse.ko.orig
Now you copy the appropriate newly compiled modules into your system kernel's modules directory with:
Code:
sudo cp hid.ko /lib/modules/$(uname -r)/kernel/drivers/hid/hid.ko
sudo cp hid-kye.ko /lib/modules/$(uname -r)/kernel/drivers/hid/hid-kye.ko
sudo cp usbhid/usbhid.ko /lib/modules/$(uname -r)/kernel/drivers/hid/usbhid/usbhid.ko
sudo cp usbhid/usbmouse.ko /lib/modules/$(uname -r)/kernel/drivers/hid/usbhid/usbmouse.ko
* need for usbmouse.ko from viktoria.s
Rebuild all of the module dependencies:
A reboot and with luck the KYE tablet should be working.
Bookmarks