linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Breton M. Saunders" <bms20@brettnet.eu>
To: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Cc: linux-input <linux-input@vger.kernel.org>
Subject: Re: HID input dealing with multiple collections?
Date: Mon, 09 Sep 2013 16:40:46 +0100	[thread overview]
Message-ID: <522DEBFE.1040303@brettnet.eu> (raw)
In-Reply-To: <CAN+gG=F9OmeXM_s_MX1_q+H=hAwZB518Lx_6FZd42Z8PX=SpJw@mail.gmail.com>

HI Benjamin,
> You can still try to use my backport available here:
> https://github.com/bentiss/hid-multitouch
Great - thanks for that!  It may be a solution.
>
> it _should_ work on a 3.2. You only have to add your VID/PID in
> hid-multitouch to make it work.

Unfortunately not. It seems that writes on the device to the interrupt 
endpoint never complete; I haven't had the USB analyzer on this yet, but 
I suspect that the host running kernel 3.2 is not polling the endpoint.

I did upgrade my Mint13 box to Ubuntu's latest kernel 3.11; and the 
multitouch support looks pretty good.  It worked out of the box. 
However, the mouse channel support isn't working - if I cat /dev/mouse1 
or /dev/mouse2 I see no data coming over when I report mouse events from 
my device.

>
>>    I will, however, install a more modern kernel to test against; esp. since
>> I note your HID-replay tool requires 3.6 to test with.
> well, it requires the module uhid, which is available in 3.6, but also
> in my backport :)
> run "modprobe uhid_compat" and run hid-replay against the
> /dev/hidraw-compatN device.
>
> Anyway, if this is too much of a pain, just send me the report
> descriptor in hexadecimal (and some hexadecimal captures of your
> events), I'll do the formatting myself.
Let me check if I can do this; I may get permission to open up the 
descriptors too.

>>    Would the correct approach here be to implement a composite USB device and
>> have separate USB interfaces for mouse, touch and pen for compatibility with
>> older kernel revisions?
> I would say no because I don't know what would be the behavior of
> Windows. But if you don't care about Windows and if this solution
> works, it's entirely up to you.
>

I may have to resort to that approach.  I believe Microsoft added the 
mouse top level collection to support windows xp; so it may also just 
work out of the box if a separate mouse appears on the same interface.

Cheers,

-Brett


      reply	other threads:[~2013-09-09 15:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-09 12:56 HID input dealing with multiple collections? Breton M. Saunders
2013-09-09 13:12 ` Benjamin Tissoires
2013-09-09 14:01   ` Breton M. Saunders
2013-09-09 14:16     ` Benjamin Tissoires
2013-09-09 15:40       ` Breton M. Saunders [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=522DEBFE.1040303@brettnet.eu \
    --to=bms20@brettnet.eu \
    --cc=benjamin.tissoires@gmail.com \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).