[libhid-discuss] Talking to an HID device from user account in Linux

Xiaofan Chen xiaofanc at gmail.com
Mon Mar 30 23:40:43 UTC 2009


2009/3/31 Ali Asad <Asad.Ali at gemalto.com>:
> As I understand it, the use of libhid requires root access in order to
> read-write from the device, right? This is how I have tested my application.
> Is there another way to talk to the HID device so that root access is not
> required? If so what would I need to do from my application, and more
> importantly, what would the end-user have to do on their Linux machines in
> order to run this application? I am targeting the Ubuntu distribution.
>

You need to use udev rules.
Ubuntu is quite consistent in terms of udev rules.
http://piklab.wiki.sourceforge.net/USB+Port+Problems

Regards,
Xiaofan



More information about the libhid-discuss mailing list