Another approach to IR
Hello,
Some years ago I wrote a tool called "inputlirc" that translates evdev events into LIRC events, to allow remotes that then already used the input system to work with LIRC. At the time, lircd itself could do this, but you had to "train" it to "decode" evdev bitstreams. Instead, inputlirc uses a fixed mapping between evdev names and LIRC key names, so you don't need to train or configure anything.
It seems that if you want to merge LIRC into the kernel, and have it generate standard events, then inputlirc can be used to provide backwards compatibility to those applications that only work with LIRC, or that rely on LIRC specific behaviour (such as mode switching).
Debian package: http://packages.debian.org/inputlirc Git repository: http://git.sliepen.org/inputlirc/
Signature · 2 lines
Met vriendelijke groet / with kind regards,
Guus Sliepen <[email protected]>Quoted 8 lines · Guus Sliepen
Hello,
Some years ago I wrote a tool called "inputlirc" that translates evdev events into LIRC events, to allow remotes that then already used the input system to work with LIRC. At the time, lircd itself could do this, but you had to "train" it to "decode" evdev bitstreams. Instead, inputlirc uses a fixed mapping between evdev names and LIRC key names, so you don't need to train or configure anything.
No longer necessary, there's a proper devinput lircd userspace driver that when paired with an lircd.conf (auto-generated based on linux/input.h) Just Works.
http://lirc.sourceforge.net/remotes/devinput/lircd.conf.devinput
Quoted 2 lines
It seems that if you want to merge LIRC into the kernel, and have it generate standard events,
It already can. If your button names in lircd.conf match button names in input.h, lircd can reinject the key presses into the input subsystem via uinput.
Signature · 2 lines
Jarod Wilson [email protected]
Quoted 2 lines · Jarod Wilson
Quoted 2 lines
Some years ago I wrote a tool called "inputlirc" that translates evdev events into LIRC events,
[...]
Quoted 5 lines
No longer necessary, there's a proper devinput lircd userspace driver that when paired with an lircd.conf (auto-generated based on
linux/input.h) Just Works.http://lirc.sourceforge.net/remotes/devinput/lircd.conf.devinput
Ah, great, I can retire inputlirc then.
Signature · 2 lines
Met vriendelijke groet / with kind regards,
Guus Sliepen <[email protected]>