Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 66

Thread: genius mousepen tablet i608 pen does not draw

  1. #41
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: genius mousepen tablet i608 pen does not draw

    Hi viktoria.s,

    Well the ideal way would be to put in a Launchpad bug report on the KYE tablets for Precise. And on that report post Nick's patch, so they know there is a fix available. Then hope the kernel team backports the KYE support into Precise's 3.3 (?) kernel. That's much more likely if the patch has been accepted upstream by the kernel into 3.4.

    But even if the kernel team decided to do that it might be months before you actually see the backport.

    Doing it yourself isn't that hard. See appendix 1 at the bottom of the Wacom HOW TO. The command to download the Ubuntu kernel source code is there. Also the magic command to compile modules. Nick's patch will tell you which modules are changed and that will tell you which ones to copy into place. You could end up with a little HOW TO to post for KYE tablets.

  2. #42
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: genius mousepen tablet i608 pen does not draw

    Hi,

    I've got the patch in a patch form that I can attach to a post and you can download. And I've got preliminary instructions roughed out.

    Did you want to try this?

  3. #43
    Join Date
    Apr 2011
    Beans
    25

    Re: genius mousepen tablet i608 pen does not draw

    Hi Favux,

    thank you for your advices.

    Quote Originally Posted by Favux View Post
    Hi,

    I've got the patch in a patch form that I can attach to a post and you can download. And I've got preliminary instructions roughed out.

    Did you want to try this?
    Yes, sure . Thanks.

  4. #44
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: genius mousepen tablet i608 pen does not draw

    I forgot to ask. What kernel (uname -r) are you using? I've forgotten which Ubuntu release you have.

  5. #45
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: genius mousepen tablet i608 pen does not draw

    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:
    Code:
    cd drivers/hid
    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:
    Code:
    sudo depmod -a
    A reboot and with luck the KYE tablet should be working.
    Attached Files Attached Files
    Last edited by Favux; March 19th, 2012 at 04:10 PM. Reason: Corrected modules path and cp of usbmouse.ko per viktoria.s

  6. #46
    Join Date
    Apr 2011
    Beans
    25

    Re: genius mousepen tablet i608 pen does not draw

    Hi Favux!

    Thank you for the instructions. I have installed XUbuntu 12.04 onto a virtual machine and tried you method on that one. (To me testing if I can do it on precise is more important than to test it in oneiric, since there is a package in oneiric, but there will not be a package for precise (Unless of course the 3.4 linux kernel comes out and there will be a package in the mainline kernel ppa ))
    So I could make the modules and it is seems working on the VM at least. I have only a few comments to make.
    When you do the backup and copy the correct directory is /lib/modules/kernel/drivers/hid
    Code:
    sudo cp /lib/modules/$(uname -r)/kernel/drivers/hid/hid.ko /lib/modules/$(uname -r)/kernel/drivers/hid/hid.ko.orig
    I guess you have missed the /drivers/ in the path. And in the /lib/modules/kernel/drivers/hid/usbhid directory I had to replace all the files: usbhid.ko, usbkbd.ko, usbmouse.ko too (not just the one you have mentioned), otherwise there was errors on the startup of X. (The X started but with errors.)(Probably because the MousePen i608X has a mouse so it seems logical that at the least minimum the usbmouse.ko is required as well, but I have replaced the usbkbd.ko too just to make sure everything will be OK.)

  7. #47
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: genius mousepen tablet i608 pen does not draw

    Hi viktoria.s,

    I have installed XUbuntu 12.04 onto a virtual machine...I could make the modules and it is seems working on the VM
    Great! Thank you for testing.
    I guess you have missed the /drivers/ in the path.
    Sorry. Thanks for catching that.

    Could you test with the original usbkbd.ko, not the newly compiled usbkbd.ko? And see if that still gives you X startup errors. Since we're using the patched vanilla kernel HID I'm trying to make the minimum changes needed to get the KYE tablet working. On the hope that will minimize the risk of breakage. So that's important to get a definite answer on.

    And in the /lib/modules/kernel/drivers/hid/usbhid directory I had to replace all the files: usbhid.ko, usbkbd.ko, usbmouse.ko too (not just the one you have mentioned), otherwise there was errors on the startup of X.
    My fault because prior to Oneiric (or maybe Natty?) in the usbhid directory there was only usbhid.ko. Presumably because the Ubuntu Makefiles combine usbhid.ko, usbkbd.ko, and usbmouse.ko into usbhid.ko in earlier kernels, I'll have to check. I noticed that Oneiric no longer did that but then I went ahead and acted like it was an earlier kernel. Oops!
    Last edited by Favux; March 20th, 2012 at 12:37 AM.

  8. #48
    Join Date
    Apr 2011
    Beans
    25

    Re: genius mousepen tablet i608 pen does not draw

    Hi Favux,

    Could you test with the original usbkbd.ko, not the newly compiled usbkbd.ko? And see if that still gives you X startup errors.
    I have tested and it seems working OK with the original usbkbd.ko file.

  9. #49
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: genius mousepen tablet i608 pen does not draw

    Great. Thanks for narrowing it down. I think we now have a working HOW TO.

    I'm hoping it will generalize to Nick's other kernel patches for the earlier Ubuntu kernels for Lucid, Maverick, and Natty.


    FYI everyone: I've created a new HOW TO Add Support for KYE, UC-logic, and Waltop Tablets in Ubuntu which includes the above KYE tablet support instructions.
    Last edited by Favux; March 25th, 2012 at 04:23 PM.

  10. #50
    Join Date
    Feb 2012
    Beans
    6

    Post Re: genius mousepen tablet i608 pen does not draw

    Last edited by janailson; March 25th, 2012 at 10:31 PM.

Page 5 of 7 FirstFirst ... 34567 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •