On Sat, Nov 28, 2009 at 1:17 PM, Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx> wrote: > Jon Smirl wrote: >> There are two very basic things that we need to reach consensus on first. >> >> 1) Unification with mouse/keyboard in evdev - put IR on equal footing. >> 2) Specific tools (xmodmap, setkeycodes, etc or the LIRC ones) or >> generic tools (ls, mkdir, echo) for configuration > > About 2: If at all, there only needs to be a decision about pulse/space > to scancode converter configuration. In contrast, scancode to keycode > converter configuration is already solved; the interface is > EVIOCSKEYCODE. If you find the EVIOCSKEYCODE interface lacking, extend > it or submit an alternative --- but this does not affect LIRC and > whether to merge it in any way. EVIOCSKEYCODE is lacking, first parameter is an INT. Some decoded IR codes are over 32b. Christoph posted an example that needs 128b. This is a problem with ioctls, they change size depending on platform and endianess. Also, how do you create the devices for each remote? You would need to create these devices before being able to do EVIOCSKEYCODE to them. > > PS: Drop your "specific vs. generic tools" terminology already. Your > configfs based proposal requires "specific" tools as well, it's just > that they can be implemented in bash, among else. The shell commands are the most generic tools in Unix. udev already knows how to run shell scripts. But there is no technical reason why setkeycodes, getkeycodes, showkey, loadkeys, xmodmap, and dump-keys can't be modified to support IR. I already have to have the man page on the screen when using these commands so adding a bunch more parameters won't hurt. > -- > Stefan Richter > -=====-==--= =-== ===-- > http://arcgraph.de/sr/ > -- Jon Smirl jonsmirl@xxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html