linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* O_ASYNC not working on /dev/input/event* ?
@ 2010-02-03  8:56 Pavel Machek
  2010-02-03  9:00 ` Dmitry Torokhov
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2010-02-03  8:56 UTC (permalink / raw)
  To: linux-input, dmitry.torokhov, dtor

HI!

I'm trying to use O_ASYNC on /dev/input/event* (getting SIGIO when key
is pressed), but so far no luck. Is it possible that O_ASYNC is not
implemented there?
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: O_ASYNC not working on /dev/input/event* ?
  2010-02-03  8:56 O_ASYNC not working on /dev/input/event* ? Pavel Machek
@ 2010-02-03  9:00 ` Dmitry Torokhov
  2010-02-03  9:03   ` Dmitry Torokhov
  2010-02-04  7:02   ` Pavel Machek
  0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2010-02-03  9:00 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-input

On Wed, Feb 03, 2010 at 09:56:00AM +0100, Pavel Machek wrote:
> HI!
> 
> I'm trying to use O_ASYNC on /dev/input/event* (getting SIGIO when key
> is pressed), but so far no luck. Is it possible that O_ASYNC is not
> implemented there?

You should be getting SIGIO when driver sends EV_SYN/SYN_REPORT...

-- 
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: O_ASYNC not working on /dev/input/event* ?
  2010-02-03  9:00 ` Dmitry Torokhov
@ 2010-02-03  9:03   ` Dmitry Torokhov
  2010-02-04  7:02   ` Pavel Machek
  1 sibling, 0 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2010-02-03  9:03 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-input

On Wed, Feb 03, 2010 at 01:00:46AM -0800, Dmitry Torokhov wrote:
> On Wed, Feb 03, 2010 at 09:56:00AM +0100, Pavel Machek wrote:
> > HI!
> > 
> > I'm trying to use O_ASYNC on /dev/input/event* (getting SIGIO when key
> > is pressed), but so far no luck. Is it possible that O_ASYNC is not
> > implemented there?
> 
> You should be getting SIGIO when driver sends EV_SYN/SYN_REPORT...

BTW, see here:

http://patchwork.kernel.org/patch/70736/

-- 
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: O_ASYNC not working on /dev/input/event* ?
  2010-02-03  9:00 ` Dmitry Torokhov
  2010-02-03  9:03   ` Dmitry Torokhov
@ 2010-02-04  7:02   ` Pavel Machek
  2010-02-04  7:09     ` Dmitry Torokhov
  1 sibling, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2010-02-04  7:02 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input

> On Wed, Feb 03, 2010 at 09:56:00AM +0100, Pavel Machek wrote:
> > HI!
> > 
> > I'm trying to use O_ASYNC on /dev/input/event* (getting SIGIO when key
> > is pressed), but so far no luck. Is it possible that O_ASYNC is not
> > implemented there?
> 
> You should be getting SIGIO when driver sends EV_SYN/SYN_REPORT...

Thanks, it works now. Signal setup needs to be before fcntl(). 

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: O_ASYNC not working on /dev/input/event* ?
  2010-02-04  7:02   ` Pavel Machek
@ 2010-02-04  7:09     ` Dmitry Torokhov
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2010-02-04  7:09 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-input

On Thu, Feb 04, 2010 at 08:02:53AM +0100, Pavel Machek wrote:
> > On Wed, Feb 03, 2010 at 09:56:00AM +0100, Pavel Machek wrote:
> > > HI!
> > > 
> > > I'm trying to use O_ASYNC on /dev/input/event* (getting SIGIO when key
> > > is pressed), but so far no luck. Is it possible that O_ASYNC is not
> > > implemented there?
> > 
> > You should be getting SIGIO when driver sends EV_SYN/SYN_REPORT...
> 
> Thanks, it works now. Signal setup needs to be before fcntl(). 
> 

Cool. Thanks for letting me know.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-04  7:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-03  8:56 O_ASYNC not working on /dev/input/event* ? Pavel Machek
2010-02-03  9:00 ` Dmitry Torokhov
2010-02-03  9:03   ` Dmitry Torokhov
2010-02-04  7:02   ` Pavel Machek
2010-02-04  7:09     ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).