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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux