Hi,

On 20-01-16 10:23, Dan MacDonald wrote:
Has anyone had any success using IR on the BPi under 4.4.0 or another
recent kernel? I was trying last night without any luck.

To get the kernel to recognise it, I first had to

modprobe sunxi-cir

After loading that, the kernel seems to create (at least) two new IR input
devices, /dev/input/event1 and /dev/input/event2 IIRC (I'm not logged into
my BPi right now to checkbut I think that's correct) - one is just labelled
sunxi-ir and the other was sunxi-ir mouse and keyboard or something. I got
IR working with on the BPi with my remote under the sunxi 3.x kernel but
there was only one IR input device then, /dev/input/event0.

I've been testing /dev/input/event1 and /dev/input/event2 using the
keybinding app but I've yet to get any input. Has anyone had more luck? Is
there a better way to test it than using keybinding?

You need to first set a ir-protocol, from the top of my head
go to /sys/class/ir/ir0 and then do "cat protocols" and then
echo "one-of-them" > protocols.

If you do not have the right protocol listed make sure to load the kernel
module.

Note as said this is all from the top of my head, so to path / filenames
may be a bit different then what I'm typing here.

Once you've set the right proto (typically nec, sometimes rc4) then you
can test using e.g. evemu-record on the input node. AFAIK you should
get only one input node related to the ir btw..., evemu-record will
print the human friendly names of all nodes which should explain which
node is what.

Regards,

Hans

--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to