lkml.org 
[lkml]   [2011]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: select() on /dev/input/eventX not level-triggered?
On Fri, May 20, 2011 at 01:50:51AM +0200, Pavel Machek wrote:
> Hi!
>
> I'm debugging strange behaviour on /dev/input/eventX ... it seems that
> select is not behaving level-triggered as it apparently should. I can
> reproduce it when hitting windows & alt keys.
>
> Now, I really should rewrite it into C, first, but perhaps someone has
> an idea?

Is this with next or with mainline? In next we try not to signal that FD
is ready unless we have full packet in the buffer...

FWIW I see python indeed not reading the tail of events (btw the format
should be 'llhhi' and the size on 64 bit arches is 24, not 16) but when
I hacked evtest to use select and non-blockign read it all worked
properly.

Thanks.

--
Dmitry


\
 
 \ /
  Last update: 2011-05-23 20:15    [W:0.055 / U:22.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site