Thread (4 messages) 4 messages, 3 authors, 2009-06-23

Re: How do you keep input from a USB Mag card reader from going to STDIN?

From: Janusz Krzysztofik <hidden>
Date: 2009-06-23 14:19:29

Jiri Kosina wrote:
On Wed, 10 Jun 2009, Mark Butsch wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help