[ 2.478959] input: sunxi-ir as /devices/virtual/input/input0
# cat /proc/bus/input/devices
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="sunxi-ir"
P: Phys=RemoteIR/input1
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=sysrq rfkill kbd event0
B: PROP=0
B: EV=3
B: KEY=ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe
(...)
# evtest /dev/input/event0
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "sunxi-ir"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 1 (KEY_ESC)
Event code 2 (KEY_1)
Event code 3 (KEY_2)
(...)
Event code 247 (KEY_RFKILL)
Event code 248 (?)
Event code 249 (?)
Event code 250 (?)
Event code 251 (?)
Event code 252 (?)
Event code 253 (?)
Event code 254 (?)
Event code 255 (?)
Properties:
Testing ... (interrupt to exit)
Event: time 1417698487.436218, type 1 (EV_KEY), code 2 (KEY_1), value 1
Event: time 1417698487.436227, -------------- EV_SYN ------------
Event: time 1417698487.959104, type 1 (EV_KEY), code 2 (KEY_1), value 0
Event: time 1417698487.959113, -------------- EV_SYN ------------
Event: time 1417698489.688749, type 1 (EV_KEY), code 2 (KEY_1), value 1
Event: time 1417698489.688757, -------------- EV_SYN ------------
Event: time 1417698489.989063, type 1 (EV_KEY), code 2 (KEY_1), value 0
Event: time 1417698489.989070, -------------- EV_SYN ------------
Event: time 1417698490.761935, type 1 (EV_KEY), code 2 (KEY_1), value 1
Event: time 1417698490.761947, -------------- EV_SYN ------------
Event: time 1417698491.069059, type 1 (EV_KEY), code 2 (KEY_1), value 0
Event: time 1417698491.069065, -------------- EV_SYN ------------
Event: time 1417698491.961707, type 1 (EV_KEY), code 2 (KEY_1), value 1
Event: time 1417698491.961715, -------------- EV_SYN ------------
Event: time 1417698492.269065, type 1 (EV_KEY), code 2 (KEY_1), value 0
Event: time 1417698492.269072, -------------- EV_SYN ------------
IR remotes use different protocols. These protocols are supported by
different kernel modules like NEC, RC5, etc. You also need keymaps
for mapping the remote protocols into standard key events. Look in the
kernel source at drivers/media/rc/...... If you get things set up
right Linux can decode every IR remote on the market.
#pwd
/usr/lib/modules/3.4.90/kernel/drivers/media/rc
# ls
ati_remote.ko ir-jvc-decoder.ko ir-mce_kbd-decoder.ko ir-rc5-decoder.ko ir-rc6-decoder.ko ir-sony-decoder.ko lirc_dev.ko rc-core.ko streamzap.koimon.ko ir-lirc-codec.ko ir-nec-decoder.ko ir-rc5-sz-decoder.ko ir-sanyo-decoder.ko keymaps mceusb.ko redrat3.ko
What's your fex like? Did you recognise https://github.com/linux-sunxi/sunxi-boards/commit/68acb3b1610a44b9402560623f7e35b7882585e9?
Regards
What's your fex like? Did you recognise https://github.com/linux-sunxi/sunxi-boards/commit/68acb3b1610a44b9402560623f7e35b7882585e9?
Regards
[ir_para]
ir_used = 1
ir0_rx = port:PB04<2><default><default><default>
It is unlikely that your built-in IR can also transmit. Your box
would need to have a jack labeled "IR out".
You will probably need an external USB box like this one:
http://www.hauppauge.com/site/webstore2/webstore_remote-mckit.asp
That bundle of wire on the left is the transmitter.
Or if you are a hacker you can build your own IR transmitter for a
couple of dollars.