linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* USB remote control
@ 2007-03-22 18:05 Roger Dahl
  2007-03-22 18:12 ` Anssi Hannula
  0 siblings, 1 reply; 3+ messages in thread
From: Roger Dahl @ 2007-03-22 18:05 UTC (permalink / raw)
  To: linux-input

Hello everyone,

I have a remote control that looks like a USB keyboard to the system. 
When I press buttons on the remote, key presses appear in X and the VTs. 
I would like to change my configuration so that events from the remote 
don't turn into key presses and become available only in 
/dev/input/eventN (where I will read them with a custom application).

I'm running FC6. Any help or pointers on how to accomplish this would be 
much appreciated.

Thank you,

Roger

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

* Re: USB remote control
  2007-03-22 18:05 USB remote control Roger Dahl
@ 2007-03-22 18:12 ` Anssi Hannula
  2007-03-22 18:48   ` Roger Dahl
  0 siblings, 1 reply; 3+ messages in thread
From: Anssi Hannula @ 2007-03-22 18:12 UTC (permalink / raw)
  To: Roger Dahl; +Cc: linux-input

Roger Dahl wrote:
> Hello everyone,

Hi!

> I have a remote control that looks like a USB keyboard to the system.
> When I press buttons on the remote, key presses appear in X and the VTs.
> I would like to change my configuration so that events from the remote
> don't turn into key presses and become available only in
> /dev/input/eventN (where I will read them with a custom application).
> 
> I'm running FC6. Any help or pointers on how to accomplish this would be
> much appreciated.

Your custom application can call EVIOCGRAB ioctl on the event device.
Then the events from the device are only sent to this one application :)

-- 
Anssi Hannula

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

* Re: USB remote control
  2007-03-22 18:12 ` Anssi Hannula
@ 2007-03-22 18:48   ` Roger Dahl
  0 siblings, 0 replies; 3+ messages in thread
From: Roger Dahl @ 2007-03-22 18:48 UTC (permalink / raw)
  To: Anssi Hannula; +Cc: linux-input

Anssi Hannula wrote:
> Your custom application can call EVIOCGRAB ioctl on the event device.
> Then the events from the device are only sent to this one application :)
It works! Man, that is awesome :) Exactly what I needed. Thank you!

Roger

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

end of thread, other threads:[~2007-03-22 18:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22 18:05 USB remote control Roger Dahl
2007-03-22 18:12 ` Anssi Hannula
2007-03-22 18:48   ` Roger Dahl

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).