On 10/05/2011 10:39 PM, Przemek Klosowski wrote:
> On Wed, Oct 5, 2011 at 6:45 PM, Sebastian Kuzminsky<s...@highlab.com>  wrote:
>
>>> Unexpected event EV_ABS ABS_48
>>> Unexpected event EV_ABS ABS_49
> That's because the EMC HID driver hal_input doesn't handle all data
> from your USB device.
>
> The regular kernel HID driver defines the EV_ABS events with codes
> (ABS_xxx) up to 63 (0x3f), but hal_input only handles what is defined
> in lib/python/linux_event.py, where the highest event is ABS_MISC
> (0x28 or decimal 40), and throws an error when your USB device sends
> ABS_MT_TOUCH_MAJOR (code 0x30 or decimal 48) and higher.
>
> The Linux kernel driver uses codes defined in
> /usr/include/linux/input.h, so linux_event.py should be modified to
> match it; I enclose a patch that Sebastian can apply directly. I don't
> have the check-in privileges in the EMC2 git repo, so perhaps the
> original author of linux_event.py (Jeff Epler) or someone else could
> apply it there.

Thank you Przemek!

Wow, that's a lot of happy trigger buttons!

I applied it, but reordered BTN_TOOL_QUADTAP to be in sequential order 
with the rest of the BTNs.

My USB jogpad works fine after the patch (it also worked fine before the 
patch).

John, if you pull the 2.4 branch now you should get Przemek's fix.  Or 
if you wait 30 minutes and install the buildbot debs.

I'll try to merge this into the 2.5 branch and master tonight.


Oh yeah, one more thing: the evtest program is super handy for debugging 
these kinds of devices.


-- 
Sebastian Kuzminsky


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to