Need help to recompile kernel for ultrastik 360 maps support
  • Hello:

    Trying to make my two ultrastik 360 work with piplay 0.8 beta 5 I've found that axis values up and left are out of range for HID because they are negative.

    What I found as a solution is to comment this code *** from the kernel source /drivers/hid/hid-input.c to avoid the discard of a value that is not fully compliant to HID specs and recompile the kernel. It seems to work for others.

    Please Shea would you mind to help me in this regard?
    I would like to be able to patch this without the need to recompile the kernel each time you provide us an update. But if this is no possible by now I would appreciate any help and configurations files needed to recompile the kernel in piplay without breaking anything else.

    Thanks in advance for your help and thank you for this great distro.
    _______________________________________________________________
    *** Code
    ...
    /*
    * Ignore out-of-range values as per HID specification,
    * section 5.10 and 6.2.25.
    *
    * The logical_minimum < logical_maximum check is done so that we
    * don't unintentionally discard values sent by devices which
    * don't specify logical min and max.
    */
    if ((field->flags & HID_MAIN_ITEM_VARIABLE) &&
    (field->logical_minimum < field->logical_maximum) &&
    (value < field->logical_minimum ||
    value > field->logical_maximum)) {
    dbg_hid("Ignoring out-of-range value %x\n", value);
    return;
    }
    ...
  • Sorry

    Doing some research I found this in the forum

    http://pimame.org/forum/discussion/comment/4029#Comment_4029

    This should solve also the problem with ultrastik360. +1

    Thank you

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!