From: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Mark Butsch <mbutsch@syntech-fuelmaster.com>,
"'linux-input@vger.kernel.org'" <linux-input@vger.kernel.org>
Subject: Re: How do you keep input from a USB Mag card reader from going to STDIN?
Date: Tue, 23 Jun 2009 16:19:25 +0200 [thread overview]
Message-ID: <4A40E46D.80303@tis.icnet.pl> (raw)
In-Reply-To: <alpine.LRH.2.00.0906231600510.31685@twin.jikos.cz>
Jiri Kosina wrote:
> On Wed, 10 Jun 2009, Mark Butsch wrote:
>> How would I disconnect the "kbd" handler from the mag card reader (and
>> the mag card reader from the "kbd" handler) or is that the wrong
>> approach?
>
> You can either unbind HID driver from the device completely, and write
> your own userspace driver using libusb.
>
> Or you can patch the HID driver not to attach this device to inpu
> subsystem, and only trigger creation of /dev/hidraw (or /dev/hiddev
> respectively), and write user-space application that will process the HID
> events from these device nodes, and process them in your application as
> needed.
I thouhgt this could be done from userspace without any kernel
modification, just the way "input-events -g" does it. Am I missing anything?
Janusz
next prev parent reply other threads:[~2009-06-23 14:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-10 19:40 How do you keep input from a USB Mag card reader from going to STDIN? Mark Butsch
2009-06-23 14:02 ` Jiri Kosina
2009-06-23 14:19 ` Janusz Krzysztofik [this message]
2009-06-23 14:22 ` Jiri Kosina
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=4A40E46D.80303@tis.icnet.pl \
--to=jkrzyszt@tis.icnet.pl \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=mbutsch@syntech-fuelmaster.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