From: Jon Smirl <jonsmirl@gm...> - 2008-11-07 18:53:34
I posted V4 of my in-kernel IR system to LKML. It supports mapping
from IR events to key strokes now.
To do the mapping it uses configfs (part of the kernel). The main
directory is remotes. You use a shell script to build mappings between
the IR event and key stroke.
echo 7 >remotes/sony/one/procotol
echo 264 >remotes/sony/one/command
echo 2 >remotes/sony/one/keycode
This transforms a button push of 1 on my remote into a key stroke for KEY_1
* configfs root
* ----specific remote
* ------repeat keymaps
* ----another remote
* ------more keymaps
You can map the 1 button from multiple remote to KEY_1 if you want. Or
you can use a single remote to create multiple virtual keyboards.
I'm always looking for help with this code. I've implemented support
for my embedded GPIO based receiver and Microsoft MCEUSB. I'd really
like to see IR added to existing Linux input family of keyboards,
mice, joystick, tablet, touchscreen and gameport.
Get latest updates about Open Source Projects, Conferences and News.