README.ir 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. infrared remote control support in video4linux drivers
  2. ======================================================
  3. basics
  4. ------
  5. Current versions use the linux input layer to support infrared
  6. remote controls. I suggest to download my input layer tools
  7. from http://bytesex.org/snapshot/input-<date>.tar.gz
  8. Modules you have to load:
  9. saa7134 statically built in, i.e. just the driver :)
  10. bttv ir-kbd-gpio or ir-kbd-i2c depending on your
  11. card.
  12. ir-kbd-gpio and ir-kbd-i2c don't support all cards lirc supports
  13. (yet), mainly for the reason that the code of lirc_i2c and lirc_gpio
  14. was very confusing and I decided to basically start over from scratch.
  15. Feel free to contact me in case of trouble. Note that the ir-kbd-*
  16. modules work on 2.6.x kernels only through ...
  17. how it works
  18. ------------
  19. The modules register the remote as keyboard within the linux input
  20. layer, i.e. you'll see the keys of the remote as normal key strokes
  21. (if CONFIG_INPUT_KEYBOARD is enabled).
  22. Using the event devices (CONFIG_INPUT_EVDEV) it is possible for
  23. applications to access the remote via /dev/input/event<n> devices.
  24. You might have to create the special files using "/sbin/MAKEDEV
  25. input". The input layer tools mentioned above use the event device.
  26. The input layer tools are nice for trouble shooting, i.e. to check
  27. whenever the input device is really present, which of the devices it
  28. is, check whenever pressing keys on the remote actually generates
  29. events and the like. You can also use the kbd utility to change the
  30. keymaps (2.6.x kernels only through).
  31. using with lircd
  32. ================
  33. The cvs version of the lircd daemon supports reading events from the
  34. linux input layer (via event device). The input layer tools tarball
  35. comes with a lircd config file.
  36. using without lircd
  37. ===================
  38. XFree86 likely can be configured to recognise the remote keys. Once I
  39. simply tried to configure one of the multimedia keyboards as input
  40. device, which had the effect that XFree86 recognised some of the keys
  41. of my remote control and passed volume up/down key presses as
  42. XF86AudioRaiseVolume and XF86AudioLowerVolume key events to the X11
  43. clients.
  44. It likely is possible to make that fly with a nice xkb config file,
  45. I know next to nothing about that through.
  46. Have fun,
  47. Gerd
  48. --
  49. Gerd Knorr <kraxel@bytesex.org>