• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Exchange the remote control from 2 tv boxes

Search This thread

vag13

Member
Oct 13, 2020
10
5
111.png


I have 2 android tvboxes and i want to exchange them the remote controls.

1) H9x3 with Slimbox firmware
2) VONTAR X3 with Slimbox firmware

I have the 2 files remote.conf. I tried to copy the files on /etc folder but are read only. Also there is not remote.conf files in /etc folder.
Has anyone any idea how i do that ?
 

kalehrl

Senior Member
Nov 22, 2017
612
277
Unfortunately, it's much more difficult than just copying the remote.conf files but not impossible. I've just done the same thing. Firstly, you need to be rooted. Secondly, you need to have access to the box via adb, Thirdly, you need to use a root file explorer like X-plore which is included in slimbox fw. Have a look here:
You will definitely need a couple of hours if not more.
 
  • Like
Reactions: vag13

kalehrl

Senior Member
Nov 22, 2017
612
277
In /vendor/etc/init/hw/init.amlogic.rc I added this line:
Code:
service remotecfg1 /vendor/bin/remotecfg -c /vendor/etc/remote_tanix.cfg -t /vendor/etc/remote_tanix.tab -d
    class main
    oneshot
    seclabel u:r:remotecfg:s0
I added remote_tanix.cfg and remote_tanix.tab in /vendor/etc with 644 rights. remote_tanix.cfg is basically the same as remote.cfg. remote_tanix.tab was created using dmesg output after pressing the buttons on a Tanix remote which I wanted to use with my h96 max x3 box.
 

Attachments

  • Remotes.zip
    1.2 KB · Views: 28

vag13

Member
Oct 13, 2020
10
5
I think that something is wrong with my remote.tab file or something missing.
I have these errors when push buttons from remote control
Code:
[ 1175.201851] <3>[ [email protected]] meson-remote ff808040.rc: invalid custom:0xbd42df00
[ 1175.202336] <3>[ [email protected]] meson-remote ff808040.rc: cur_custom is nulll
[ 1175.207881] <3>[ [email protected]] meson-remote ff808040.rc: no valid key to handle
[ 1208.559821] <3>[ [email protected]] meson-remote ff808040.rc: invalid custom:0xf906df00
[ 1208.560346] <3>[ [email protected]] meson-remote ff808040.rc: cur_custom is nulll
[ 1208.565872] <3>[ [email protected]] meson-remote ff808040.rc: no valid key to handle
Code:
HOME -> 0xbd42df00
OK -> 0xf906df00
I used remote-0xfа00.tab from 4pda.ru seems are same remote control :unsure:
 
  • Like
Reactions: kalehrl

kalehrl

Senior Member
Nov 22, 2017
612
277
Your remote code is df00 but the code of the remote tab you downloaded is fа00 assuming 0xfа00 in the file name is remote code. Check if you have 0x42 and 0x06 in the tab file. I'm positive you won't find them because otherwise you wouldn't have that error if your tab file was correct.
 
  • Like
Reactions: vag13

vag13

Member
Oct 13, 2020
10
5
Perfect, you are right. I changed ff00 with df00 and detected the remote control.
I have found all buttons codes.

keytab.png



I think the only i must found, is the key number (2,3,4,etc.). How can i found them ?

Code:
    0x54  2      #1
    0x16  3      #2
    0x15  4      #3
    0x50  5      #4
    0x12  6      #5
    0x11  7      #6
    0x4c  8      #7
    0x0e  9      #8
    0x0d  10     #9
    0x0c  11     #0

If i use the following code, it will work ?

Code:
0xdf1a KEY_UP
0xdf48 KEY_DOWN
0xdf47 KEY_LEFT
0xdf07 KEY_RIGHT
 
  • Like
Reactions: kalehrl

kalehrl

Senior Member
Nov 22, 2017
612
277
Code:
0x54  2      #1
    0x16  3      #2
    0x15  4      #3
    0x50  5      #4
    0x12  6      #5
    0x11  7      #6
    0x4c  8      #7
    0x0e  9      #8
    0x0d  10     #9
    0x0c  11     #0
This should work fine according to your button codes.
You can find the Linux codes in /root/vendor/usr/keylayout/Vendor_0001_Product_0001.kl
Linux key for number 1 is 2 etc.
Code:
0xdf1a KEY_UP
0xdf48 KEY_DOWN
0xdf47 KEY_LEFT
0xdf07 KEY_RIGHT
No. You erase 2 characters after 0x and replace them with the next 2.
Code:
0x1a 103 #KEY_UP
0x48 108 #KEY_DOWN
0x47 105 #KEY_LEFT
0x07 106 #KEY_RIGHT
 
  • Like
Reactions: vag13

vag13

Member
Oct 13, 2020
10
5
Finally i did it. It was a bit time consuming but the result pleased me.
Thank you very much for your help !! :)
I will upload the 2 files if anyone want them in the future.

Also, the remote control df00 to work the 2 buttons APPLICATION_SWITCH & MEDIA_PLAY_PAUSE, i did add the line
Code:
key 0     MOUSE
in /root/vendor/usr/keylayout/Vendor_0001_Product_0001.kl
I don't know why it needed that line, but without this line, didn't detect these 2 buttons.
 

Attachments

  • Remotes.zip
    1.2 KB · Views: 20
  • Like
Reactions: kalehrl

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Unfortunately, it's much more difficult than just copying the remote.conf files but not impossible. I've just done the same thing. Firstly, you need to be rooted. Secondly, you need to have access to the box via adb, Thirdly, you need to use a root file explorer like X-plore which is included in slimbox fw. Have a look here:
    You will definitely need a couple of hours if not more.
    1
    Thanks i will give a try. At first glance, I think the most difficult part is that it is in Russian language.
    1
    That would be helpful.
    1
    I think that something is wrong with my remote.tab file or something missing.
    I have these errors when push buttons from remote control
    Code:
    [ 1175.201851] <3>[ [email protected]] meson-remote ff808040.rc: invalid custom:0xbd42df00
    [ 1175.202336] <3>[ [email protected]] meson-remote ff808040.rc: cur_custom is nulll
    [ 1175.207881] <3>[ [email protected]] meson-remote ff808040.rc: no valid key to handle
    [ 1208.559821] <3>[ [email protected]] meson-remote ff808040.rc: invalid custom:0xf906df00
    [ 1208.560346] <3>[ [email protected]] meson-remote ff808040.rc: cur_custom is nulll
    [ 1208.565872] <3>[ [email protected]] meson-remote ff808040.rc: no valid key to handle
    Code:
    HOME -> 0xbd42df00
    OK -> 0xf906df00
    I used remote-0xfа00.tab from 4pda.ru seems are same remote control :unsure:
    1
    Your remote code is df00 but the code of the remote tab you downloaded is fа00 assuming 0xfа00 in the file name is remote code. Check if you have 0x42 and 0x06 in the tab file. I'm positive you won't find them because otherwise you wouldn't have that error if your tab file was correct.