Re: mode2 shows output, irrecord fails (using the remote out port of an amplifier)

Matthias Reichl <[email protected]> Sat, 7 Mar 2020 01:13:12 +0100
Newsgroups gmane.comp.hardware.lirc
Message-ID <[email protected]>
On Fri, Mar 06, 2020 at 01:40:09PM +0100, Robert Jäschke wrote:
> The remote seems to be more complex than I thought, though. First, some
> buttons use the RC5x protocol. Second, there are two buttons
> ("CD"/"NET") which change the codes of the keys. E.g., while the number
> keys send out RC5 codes when in CD mode, they send out RC5x codes when
> in NET mode.

Instead of using lirc you could use in-kernel decoding, IIRC the rc5
decoder supports both rc5 and rc5x.

Just run "ir-keytable -p rc5 -t" then press buttons and see if you get
scancodes. If that works you could create a keymap file with the
scancode <-> key mapping and then - depending on your application -
just read the keys from stdin or the input event device or let
lirc in devinput mode or inputlirc translate the linux input events
to lirc events.

so long,

Hias