Skip to contentSkip to conversation

USB remote control

DISCUSSION Roger Dahl 2 participants 3 messages Mar 22, 2007 HID

lore
Share & tools
lore

Roger Dahl

author
#0 lore raw

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

#1 lore raw
Quoted 1 line · Roger Dahl

Hello everyone,

Hi!

Quoted 8 lines

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

Signature · 1 line
Anssi Hannula
author
#2 lore raw
Quoted 2 lines · Anssi Hannula

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