Jump to content

Tutorial on how to use your own IR remote controller


royk

Recommended Posts

I've found information on how to use your own IR remote controller from this site: https://forum.odroid.com/viewtopic.php?f=215&t=44671

In short:

1. Enable logging from the IR kernel module, enter in a terminal: 

sudo -i

echo 1 > /sys/module/rockchip_pwm_remotectl/parameters/code_print

dmesg -w
 

2. Check if your remote is supported by pressing the keys on your remote. It should give you info like:

[ 3485.342354] USERCODE=0xfb04
[ 3485.369309] RMC_GETDATA=fd
 

3. Download the overlay file below and edit the usercode and the code for each key. So for like with the key above it'll be 0xfd

 

4. Place the header file "rk-input.h" in the same directory as the overlay file. In my case the location is "/usr/src/linux-headers-6.1.43-vendor-rk35xx/include/dt-bindings/input/rk-input.h"

 

5. Compile and install with:

cpp -nostdinc remote.dts remote-precompiled.dts
sudo armbian-add-overlay remote-precompiled.dts

remote.dts

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines