Skip to content

Commit 582e26e

Browse files
chewittgitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent 2e0f225 commit 582e26e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

configuration/ir-remotes.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Infra-Red Remotes
22

3-
Like mst current Linux distros LibreELEC uses `ir-keytable` to configure Infra-Red Remotes. Each IR receiver kernel driver installs a default `keytable` which specifies the IR protocol to use, e.g. RC5, RC6, NEC, and the scancode to Linux keycode mappings.
3+
## Introduction
4+
5+
Modern Linux kernels \(used in LibreELEC\) have built-in support for IR remotes. IR signals are decoded by the kernel and programs see button presses from IR remotes in the same way as key presses from a normal keyboard, as Linux input events. This approach is the successor to LIRC where a separate program, lircd, decodes IR signals and programs obtain button presses from a socket as LIRC events.
6+
7+
While this new scheme is really handy, there's a small gotcha: Kodi's remote handling is built for LIRC and it doesn't cope well with Linux input events. In general all buttons also present on a normal keyboard, like arrows and numbers, work fine but rather important buttons like `OK` and `channel up/down` don't. To solve this LibreELEC runs `eventlircd` in the background to translate Linux input events into LIRC events. So "under the hood" the new scheme is being used, but remote buttons still show up as LIRC events in Kodi.
8+
9+
Kodi then translates the LIRC events to Kodi button names via `Lircmap.xml` and then buttons are mapped to Kodi actions via `remote.xml` and `keyboard.xml` files. This wiki page describes the LibreELEC configuration. Information on Kodi configuration is available in the [Kodi LIRC](http://web.archive.org/web/20201111212253/https://kodi.wiki/view/LIRC) and [Kodi Keyboard.xml](http://web.archive.org/web/20201111212253/https://kodi.wiki/view/Keyboard.xml) wiki pages.
10+
11+
LibreELEC still ships with LIRC so IR remotes with non-standard protocols and rather special setups can be supported. In general, keep LIRC disabled \(in LibreELEC Settings → Services\) and only enable it for exceptional cases where you actually need it.
12+
13+
## Configuration
14+
15+
Like most current Linux distros LibreELEC uses `ir-keytable` to configure Infra-Red Remotes. Each IR receiver kernel driver installs a default `keytable` which specifies the IR protocol to use, e.g. RC5, RC6, NEC, and the scancode to Linux keycode mappings.
416

517
Most universal receivers work with the rc-rc6-mce table so RC6 MCE remotes can be used without further configuration. Drivers for DVB devices sold with a remote usually install their own keytable, e.g. the Hauppauge remote that came with a Hauppauge DVB stick.
618

0 commit comments

Comments
 (0)