[libhid-discuss] Linux: the device is opened exclusively
Lux Vampere
lux.vampere at yahoo.com
Thu Jan 8 09:05:07 UTC 2009
Hello,
Thanks for your answer. My device acts like a keyboard.
> You have the source code - it is certainly possible.
>
> Whether or not it produces the results you are looking for
> is up in the air. It probably depends on what the Linux
> kernel lets you do if you have not claimed the device.
If I follow this path, should I write my own hid_force_open function, that does not claim the device?
Another way to solve my problem would be to catch the data in the driver, and then broadcast it to the system programmatically. Does this make sense and could there be side effects (like the keys being fired several times in some situations, where the device is not opened exclusively for some reason)? Can this be easily achieved on Linux? Typically, I'll have a key event in the form of an 8 bytes buffer, coming from the USB wire, that I'd like to fire as a system wide key event...
Thanks,
Kind regards
Lux
More information about the libhid-discuss
mailing list