Re: Multiple clients reading from /dev/input/eventX

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

 



>> Can anyone here confirm the behaviour under the situation that one
>> client
>> is busy? What is the maximum time it can be 'away' or what is the size
>> of
>> the inline buffer?
>
> Every user of event device has a buffer that can hold up at least 64
> input events and is completely independent from other users. Newer
> kernels generate EV_SYN/SYN_DROPPED event to indicate that user was too
> slow reading data and there was buffer overrun.
>
> Hope this helps.

Yes, very helpful.... I am seeing 'SYN_DROPPED' on my system, so the next
question is how to work around this?

In the event of an overflow is there any method of reading/polling the
last (correct) event value for each of the axis?

In my case on the G27 wheel when your foot transitions from the brake to
accelerator, you get no more 'brake events' to 'refresh' the value.

I see that I could use QUIRK to enlarge the buffer for this device, would
that be an acceptable workaround?
http://www.spinics.net/lists/linux-input/msg15497.html

Attached is a little log showing SDL 'missing' 68 events, which are
correctly reported by 'evtest'. The time stamps in log will give you an
idea about how quickly the events are coming in from this wheel.

Thanks,
Simon.

Attachment: SDL_missing_events2.txt.gz
Description: GNU Zip compressed data


[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