You think you can set-up this remote? You fool...
#1
Hello guys
At first I wanted to apologise if I posted it in wrong category or maybe even wrong forum, but I'm getting more and more frustrated because of my issue.

Backstory:
I bought my first Rpi like year ago cause I wanted to „smartify” my old 2005 TV. To do so I bought DVB-T adapter like this one: NotOnly Deluxe
The reason I took exacly this one is because it has IR Receiver built in and it comes with quite decent remote.
In addition I saw tutorial how to set it up (both DVB-T and remote) to work on Linux Mint and I thought to myself that it should be pretty similar setting it up on Kodi with LibreElec.

After succesful setup of DVB-T came time to set up the remote, cause what whould be a TV without remote, right?

Attempt 1:
As I said I tried to mimic steps from this tutorial
Basically the guy uses only „ir-keytables” and downloads keymap from online.
I used:
Code:
ir-keytable -s rc0 -t
to test if the reciever picks up anything but it didn’t work at all. I tried all protocols one by one and none of them has worked. I thought that maybe my reciver is broken, so I tried it on Ubuntu. Guess what? Receiver picked up signal like it should.

Attempt 2:
I came across this tutorial on youtube in which guys shows how to set up remote using LIRC.
I talk about this one:

I used the default remote that came with the DVB-T adapter.
It went pretty ok, but after mapping all the keyes I opened the file I’ve created and I saw that all keycodes where set as 0x0. So I tried to manually change those codes. I went back to the first tutorial, found exact file he used and tried to write same codes in.
Even that didn’t help.
After that I tried another remote that I have but I couldn’t get past mapping cause I ran out of attempts.

On the left is the default remote and on the right is the remote that I used after
Image

I saw tutorial from official Kodi-Wiki but it used the same „irrecord” procedure so it doesn’t work neither.

To be honest I don’t know what I could try more so I ask you guys for help.
The first one that will help me with setup will get beer as soon as he'll come to my city Big Grin
 

PS: After using
Code:
ps aux
I found that my lirc commands looks a little bit different than those from the youtube tutorial. Is it because of different version of Kodi or maybe because he uses XBMC and I use LibreElec?
Reply
#2
Make sure eventlircd and kodi are stopped when testing with ir-keytable - otherwise these programs will grab the input and ir-keytable doesn't output anything.

See the official LibreELEC wiki page for details https://wiki.libreelec.tv/infrared_remotes

so long,

Hias
Reply
#3
Hias, you sir, you just got yourself a beer Smile Send me message when you'll be in Cracow Tongue

One more question: Is it possible to map buttons to do some state changing? I mean something like this:
>if you are on screen1 change it to screen2 and if you are on screen2 change it to screen1
Reply
#4
If you have the remote working you can nearly define everything using python in built functions, skin info-labels, probably boolean conditions and keymapping.

You could trigger a python script which does the case handling either using if/else/elif statements or maybe with a try ... except section.

Not sure how familiar you are with python Wink
Reply
#5
(2018-07-15, 10:54)DaVu Wrote: If you have the remote working you can nearly define everything using python in built functions, skin info-labels, probably boolean conditions and keymapping.

You could trigger a python script which does the case handling either using if/else/elif statements or maybe with a try ... except section.

Not sure how familiar you are with python Wink
Well I tried Python a while ago and I don't know much about it. But I'm into C/C++ so I guess it shouldn't be hard to learn it, right? Smile
Reply
#6
You can do a lot only with remote.xml setup. For example I mapped the "star" button on my remote to toggle between teletext on/off. In video mode it's mapped to "activate teletext" and in teletext mode it's mapped to "back" (close teletext).
Code:
<keymap>
  <FullscreenVideo>
    <remote>
      <star>ActivateWindow(Teletext)</star>
    </remote>
  </FullscreenVideo>
  <Teletext>
    <remote>
      <star>Back</star>
    </remote>
  </Teletext>
</keymap>

Maybe a similar approach can do what you are looking for.

so long,

Hias
Reply
#7
See the link in my sig for some help.
Need help programming a Streamzap remote?
Reply

Logout Mark Read Team Forum Stats Members Help
You think you can set-up this remote? You fool...0