|
Edited by nopnop2002 at 2016-3-29 04:46
I have Orange pi PC
built-in IR is works with Debian_jessie.
1.Load module
$ sudo modprobe sunxi-ir-rx
2.Check device
$ cat /proc/bus/input/devices
I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="sunxi-ir" ------> This is a mark
P: Phys=RemoteIR/input1
S: Sysfs=/devices/virtual/input/input2 ------> Your input2 may be different.
U: Uniq=
H: Handlers=sysrq kbd event2 cpufreq_interactive ------> Your event2 may be different.
B: PROP=0
B: EV=100003
B: KEY=ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe
3.Install evtest
$ sudo apt-get install evtest
4.Check remote
$ sudo evtest /dev/input/event2 -----> Your event2 may be different.
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "sunxi-ir" ----> This is a mark.
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 1 (KEY_ESC)
Event code 2 (KEY_1)
(more)
Event code 255 (?)
Key repeat handling:
Repeat type 20 (EV_REP)
Repeat code 0 (REP_DELAY)
Value 280
Repeat code 1 (REP_PERIOD)
Value 40
Properties:
Testing ... (interrupt to exit)
5.You press a button of the remote control with this timing.
If these messages are indicated,remote is OK.
If there is no message,try other remote control.This receiver is answering to only NEC protocol.
Event: time 1458307272.097859, type 1 (EV_KEY), code 69 (KEY_NUMLOCK), value 1
Event: time 1458307272.097872, -------------- EV_SYN ------------
Event: time 1458307272.377002, type 1 (EV_KEY), code 69 (KEY_NUMLOCK), value 2
Event: time 1458307272.377009, -------------- EV_SYN ------------
Event: time 1458307272.416983, type 1 (EV_KEY), code 69 (KEY_NUMLOCK), value 2
Event: time 1458307272.416987, -------------- EV_SYN ------------
Event: time 1458307272.456974, type 1 (EV_KEY), code 69 (KEY_NUMLOCK), value 0
Event: time 1458307272.456978, -------------- EV_SYN ------------
Event: time 1458307273.060295, type 1 (EV_KEY), code 70 (KEY_SCROLLLOCK), value 1
Event: time 1458307273.060306, -------------- EV_SYN ------------
Event: time 1458307273.306974, type 1 (EV_KEY), code 70 (KEY_SCROLLLOCK), value 0
Event: time 1458307273.306978, -------------- EV_SYN ------------
Event: time 1458307274.540761, type 1 (EV_KEY), code 71 (KEY_KP7), value 1
Event: time 1458307274.540772, -------------- EV_SYN ------------
Event: time 1458307274.786972, type 1 (EV_KEY), code 71 (KEY_KP7), value 0
Event: time 1458307274.786977, -------------- EV_SYN ------------
6.Please follow this article.
https://github.com/cubieplayer/Cubian/issues/75
ambrosa commented on 28 Aug 2013
Sorry my poor English.
|
|