mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Robin Theunis <robint91@gmail.com>
Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: USB HID plug and play, hardware developer frustration
Date: Sat, 29 Jan 2011 00:36:38 -0800	[thread overview]
Message-ID: <20110129083638.GD26915@core.coreip.homeip.net> (raw)
In-Reply-To: <AANLkTinytMpW8-7eEDg1O+vUP=C6-MHc8H8yssRbbxUc@mail.gmail.com>

Ho Robin,

On Sat, Jan 29, 2011 at 09:15:11AM +0100, Robin Theunis wrote:
> Hi Devs,
> 
> Currently I am design a USB product, and in that process I also look
> if almost every OS supports my device.
> The device is just only a HID digitizer or touch tablet thingy. It
> reports it self also as HID device. This is to have it
> work PLUG and PLAY. But I gotten a cold shower when trying this on my
> linux pcs. It doesn't work!
> I did some investigation and found that the linux (kernel) only
> support mouses and keyboard, all the other usage pages
> that are included in the USB HID specs aren't implemented.
> http://www.usb.org/developers/devclass_docs/Hut1_11.pdf
> 
> Is there a reason why they aren't implemented? especially the
> digitizer thingies because of all the new tablets?

Linux HID driver does have code to handle digitizers, please take a look
at drivers/hid/hid-input.c::hidinput_configure_usage().

> Is it difficult
> to make a driver to support my device?

It should not be. You might need to tweak usage mappings a bit by the
way of writing small HID sub-driver. Look for examples in
drivers/hid/hid-<vendor>.c

If you need additional help I'd recommend asking on
linux-input@vger.kernel.org

> I have seen that there are a
> lot of wacom drivers, I think doing all the same thing.
>

Wacoms are quite different since they are not HID devices but handler by
a completely separate driver.

Thanks.

-- 
Dmitry

  reply	other threads:[~2011-01-29  8:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-29  8:15 Robin Theunis
2011-01-29  8:36 ` Dmitry Torokhov [this message]
2011-01-29  9:15   ` Robin Theunis
2011-01-29  9:23     ` Dmitry Torokhov

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=20110129083638.GD26915@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robint91@gmail.com \
    /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

all inboxes | Powered by JetHome®