README 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Hi,
  2. this is a utility to setup IR control keymaps using the /proc/av7110_ir
  3. interface.
  4. just call
  5. # ./av7110_loadkeys [-i|--invert] [-a|--address <num>] keymapname.(rc5|rcmm) > /proc/av7110_ir
  6. If your IR receiver hardware inverts the signal, you should use the -i
  7. or --invert command line option.
  8. If you have two or more devices which use the same IR protocol, you should
  9. specify the -a or --address parameter. If the parameter is omitted, the
  10. driver listens to all device addresses. Some examples:
  11. Listen to *any* IR transmitter with uses the RC5 protocol:
  12. # ./av7110_loadkeys hauppauge.rc5 > /proc/av7110_ir
  13. Listen to RC5 transmitter with address 2:
  14. # ./av7110_loadkeys -a 2 hauppauge.rc5 > /proc/av7110_ir
  15. If you don't know the correct value for the -a parameter, take a look
  16. on the debug output of the driver (see below).
  17. Now you can test your hardware setup using evtest
  18. # ./evtest /dev/input/eventX
  19. where eventX is the IR input event device, usually event0 if you don't
  20. use USB mice or keyboards.
  21. ------------------------------------------------------------------------
  22. Keymaps are in format:
  23. <key> <associated input keycode>
  24. 0x00 KEY_0
  25. 0x01 KEY_1
  26. 0x42 KEY_HOME
  27. ------------------------------------------------------------------------
  28. In order to write a new keymap you might want to see the raw key
  29. values in the kernel log. Use
  30. # insmod dvb-ttpci.o av7110_ir_debug=1
  31. in order to enable some verbosity in the av7110_ir driver. Then watch
  32. the kernel log while pressing your remote control keys. When you don't see
  33. any messages in your kernel log you should check all electrical connections,
  34. the selected protocol (RC5 or RCMM?) and the inversion setting.
  35. You find a list of all linux input key identifiers in </usr/include/input.h>
  36. and "./input_fake.h".
  37. Please post new keymaps on the linux-dvb mailing list or send them to
  38. me <holger@convergence.de>.
  39. have fun!
  40. Holger