(2014-09-11, 12:59)belliash Wrote: [ -> ]I got one more question.
Is it possible to use custom remote control with MX Linux?
I know i need to replace remote.conf, but how can I generate it?
Actually i use this remote control with RaspberryPi and I have lircd.conf generated. Maybe i can reuse it?
I have been trying to figure this out for a while now and I recently have made some progress. Here is what I have done so far.
First, I had to ssh (I used putty) to my atv520. Then I ran the command:
Code:
while true ; do dmesg -c ; sleep 1; done
That will start spitting out system messages (mine are 99% ethernet driver messages) once every second. Leave that running while you do the next step.
Next, use whatever remote you want to reprogram and press the same button (like a down arrow) multiple times.
Quickly go look at your ssh window and you should hopefully see messages like:
Wrong custom code is 0xbe41fb04
The last 4 digits of that code are the first 4 digits of the "factory code" (fb04 in my example).
The 2 digits before fb04 are the key code (41 in my example).
Now, armed with that information, edit the /etc/xbmc/remote.conf (I'd recommend making a backup of this file before you make any changes so you can easily revert).
in the remote.conf, edit the "factory_code =" to the last 4 digits of the code plus 0001. So in my example it would be 0xFB040001
Then in the same remote.conf file find the line that's commented with the word "down":
0xd2 108 ;DOWN
and change that to the key code from the "wrong custom code" error (in my example it was 41):
0x41 108 ;DOWN
Save and reboot your atv520. After it has rebooted, test it out by pressing down on the remote you reprogrammed. It should move down in the menu's. None of the other buttons will work at this point, but the down button should work. Assuming that the down button works, you can then continue on to reprogram the rest of the keys.
Again, use putty to ssh to your atv520 and run the same command:
Code:
while true ; do dmesg -c ; sleep 1; done
Now press a different button that you wish to reprogram (let's use the up arrow for example), you should get a line in ssh like this:
scancode is 0x0006, invalid key is 0x0000.
Change the remote.conf up arrow to 06:
0xca 103 ;UP
to
0x06 103 ;UP
Save and reboot and now both your up and down arrows should work. Repeat for the rest of the buttons (you don't have to reboot between each button, once you have one button working, you can do all the rest in one update if you want).
I have not yet figured out how to get multiple remotes working at the same time and I also have not yet figured out how to add new functions that are not yet in the remote.conf (like pause, stop, ff, rw, etc).
Hope this helps. If i figure out how to get more buttons working (like pause, stop, etc), I'll update this post.