Basic IR Support - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6) +--- Thread: Basic IR Support (/showthread.php?tid=1424) |
Basic IR Support - xalius - 06-17-2016 Hi, I just mounted the IR receiver that came with the basic Pine Remote on my board. After reading the User Manual and checking the schematics, I know now that the A64 has a dedicated IR receiver block that does low level decoding. According to http://linux-sunxi.org/IR there was legacy support for that for the other sunxi SoCs as a keyboard device and there is a newer driver for 4.x Linux. I had a look at the devicetree entries and it's there with the correct base address... Is this something we could enable in the 3.10.x kernel ? RE: Basic IR Support - xalius - 06-17-2016 Ok I enabled and built the kernel module sunxi-ir-rx in the latest longsleep kernel and that loads fine and creates /dev/input/event3 : Code: [11421.673001] Registered IR keymap rc_map_sunxi Using a small tool from https://github.com/elopez/keybinder.git , binding keys from the Pine64 remote seems to work fine: Code: ubuntu@pine64:~/build/keybinder$ sudo ./keybinder /dev/input/event3 RE: Basic IR Support - pfeerick - 06-26-2016 (06-17-2016, 11:54 AM)xalius Wrote: Ok I enabled and built the kernel module sunxi-ir-rx in the latest longsleep kernel and that loads fine and creates /dev/input/event3 : I managed to get it working without any hassle after updating the kernel to the latest (3.10.102 at time of writing), with the sunxi_ir_recv being registered as /dev/input/event4 right out of the box! So just have to figure out how to drive the keybinder tool. If you haven't come across them yet, the update scripts in /usr/local/sbin are your friends! One script will check for and install updated longsleep kernels, and the other will check for and install uboot image updates... Edit: Don't seem to be able to get keybinder to work... did you fiddle with any LIRC settings at all? evtest is picking up IR button presses ok, but I can't get irrecord or keybinder to respond. I thought that the 'values' that evtest gives for each key would be the code that keybinder wants, but maybe not? |