[Buildroot] buildroot Digest, Vol 69, Issue 3

Frank Hunleth fhunleth at troodon-software.com
Mon Aug 13 16:57:50 UTC 2012


 Hi Ozgun,

On Mon, Aug 13, 2012 at 11:16 AM, Ozgun <ozgun.gunay at gmail.com> wrote:
> I have to use a gamepad with br linux. The gamepad is recognized by linux
> as a HID device and I can read hid commands form “/dev/input/event6” with
> the evtest ( http://www.freedesktop.org/wiki/Evtest  ).
> Even if the interval of device is 1ms, I can read very few values form
> “/dev/input/event6”. see below. (The gamepad produces signals with 1ms
> interval on windows.)

There's probably a better list for your question, since it really
concerns whatever gamepad that you have and the Linux kernel. I've
worked with a number of custom HID devices and haven't had an issue
with br. I'd suggest that you see how your gamepad performs with
desktop Linux. I would expect a similar report rate. My guess is that
there's a Windows device driver that enables the faster gamepad report
rate.

Also, the Linux input event system does try to suppress redundant
reports. I don't think that this is your problem from your trace.

> Do I have to configure libhid or chose another method?

I like the hidraw interface, but I'd check for a special command being
sent on Windows before changing anything.

Frank


More information about the buildroot mailing list