# DVB-T remote control

**URL:** <https://forums.pimoroni.com/t/dvb-t-remote-control/6994>\
**Category:** Support\
**Created:** [January 23, 2018, 10:53pm UTC](https://forums.pimoroni.com/t/dvb-t-remote-control/6994 "2018-01-23T22:53:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![procount](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@procount](https://forums.pimoroni.com/u/procount)\
**Post date:** [January 23, 2018, 10:53pm UTC](https://forums.pimoroni.com/t/dvb-t-remote-control/6994/1 "2018-01-23T22:53:27Z")

</div>

Ahoy pirates!

I bought your DVB-T dongle (black one) about a year ago, but couldn’t get it to work, so I left it. Now I’ve had another go and connected it to a proper aerial via an MCX to Coax pigtail and have finally had success at viewing TV channels in LibreELEC/Kodi using TVHeadend. (I guess the supplied aerial hasn’t got enough gain for my area).

Anyway, the DVB-T dongle comes with an Infra-Red remote control. Can you tell me if the dongle has a built-in IR-Receiver that it works with, or do I have to add one to the Pi itself? At the moment it doesn’t seem to do anything. I tried adding “dtoverlay=lirc-rpi” to /flash/config.txt and rebooting, but it still didn’t do anything. Is there any other configuration or Addon I need to use? (I also tried Xbian and OSMC but LibreElec was the only one I managed to get TVHeadEnd working in).

Thanks.

EDIT: I discovered the dongle does have an IR receiver exposed as /dev/lirc0, So now I just have to work out how to use lirc to configure it.

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [January 24, 2018, 10:47am UTC](https://forums.pimoroni.com/t/dvb-t-remote-control/6994/2 "2018-01-24T10:47:01Z")

</div>

It’s been a loooooonnnng time since I used lirc to configure an IR remote, I’d be keen to know how you get on.

I, too, couldn’t get digital TV channels with any stability in my area- probably the big metal roof on our apartment building. It’s a pretty weedy aerial!

---

<div class="post-metadata">

**Author:** ![procount](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@procount](https://forums.pimoroni.com/u/procount)\
**Post date:** [January 24, 2018, 11:12am UTC](https://forums.pimoroni.com/t/dvb-t-remote-control/6994/3 "2018-01-24T11:12:23Z")

</div>

Further research suggests I shouldn’t need lirc as support is built into the kernel/Kodi now. It’s just taken me a while to find the right documentation. Hopefully I will have the remote working soon.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 24, 2018, 12:35pm UTC](https://forums.pimoroni.com/t/dvb-t-remote-control/6994/4 "2018-01-24T12:35:40Z")

</div>

The last dongle I bough had a remote and the receiver was built into it. I never used the remote though. I used that dongle for a software defined radio setup to listen to HF and VHF aircraft coms. Best guess is the dongle sends what amounts to the media key commands of a USB keyboard. Have a look see here, [https://learn.pimoroni.com/tutorial/robots/controlling-your-robot-wireless-keyboard](https://learn.pimoroni.com/tutorial/robots/controlling-your-robot-wireless-keyboard) I’ve used that procedure to check what codes a remote control sends out. Look for the dongle in the list when you run sudo lsusb

---

<div class="post-metadata">

**Author:** ![procount](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@procount](https://forums.pimoroni.com/u/procount)\
**Post date:** [January 25, 2018, 10:37am UTC](https://forums.pimoroni.com/t/dvb-t-remote-control/6994/5 "2018-01-25T10:37:56Z")

</div>

So here is what I did to get the remote working with LibreElec, by ssh’ing into it.

1. Create a file called `pimoroni_remote` in /storage/.config/rc\_keymaps as follows:

The first columm is the scan codes generated by the different buttons. the next column is the Linux key code you want it to generate. I have arbitrarily mapped these at the moment, until I understand better what keys are useful for TV viewing. Change as you want. The comment after the # is just a note of what the remote key is.

1. Create a file called `rc_maps.cfg` in /storage/.config as follows:

`* * pimoroni_remote`

This tells it to load the above remote control key map file for all devices.

1. Create a file called `autostart.sh` in /storage/.config/ as follows:

This script tells it to autoload whatever keymaps it finds at startup.

For more information, see [https://wiki.libreelec.tv/infrared\_remotes?s](https://wiki.libreelec.tv/infrared_remotes?s)

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [January 25, 2018, 12:31pm UTC](https://forums.pimoroni.com/t/dvb-t-remote-control/6994/6 "2018-01-25T12:31:37Z")

</div>

Nicely done. Insert large thumbs up smiley here. =) Copied and saved for future reference.
