Microsoft MCE remotes should work out of the box on current LibreELEC master (9.0 preview) builds LibreELEC.tv/package.mk at master · LibreELEC/LibreELEC.tv · GitHub
so long,
Hias
Microsoft MCE remotes should work out of the box on current LibreELEC master (9.0 preview) builds LibreELEC.tv/package.mk at master · LibreELEC/LibreELEC.tv · GitHub
so long,
Hias
Which IR receiver (exact part number) are you using?
There's nothing you can do in software to influence pulse/space detection, this is performed inside the IR receiver.
Basically there are 2 key parameters for choosing an IR receiver, one is the carrier frequency of the IR signal (usually 36-40kHz), the other is the remote protocol a receiver has been optimized for and/or how well it can deal with external IR interference (eg sun shining directly on the receiver, nearby CCFL lamps etc).
Usually using a 38kHz (which is used eg for NEC proto)l receiver will work fine, 36kHz (used eg for rc-5 and rc-6) and 40kHz (eg sony) are near enough to work fine.
As for protocol optimization have a look at the last page of this document on the Vishay website: dataform.pdf - more detailled info are in the specific datasheets of the receivers.
AGC1 is the most universal AGC implementation, AGC4 (which is optimized for eg NEC and RC5/6) doesn't work well with a bunch of protocols.
So, my recommendation would be to try a TSOP34138 (1 is the AGC version, 38 the frequency). TSOP34438 (AGC4) could be problematic.
Some IR protocols have a rather large pulse/space at the beginning (eg NEC starts with a ~9000 pulse and ~4500 space) and you'll also see a large space (or a timeout) between button repeats. But the other pulse/space values within an IR message are usually in the 400-2000 range.
I searched a bit and the original Xbox remote indeed seems to use a non-standard protocol. So in-kernel decoding won't work, but you could be able to create a lircd.conf with irrecord (you might have to use irrecord raw mode if normal mode doesn't work) - but first you have to sort out the IR reception (pulse/space) issues.
As for the old lirc_xbox driver: well, that never made it into the official Linux kernel, OpenELEC/LibreELEC included it as long as possible (it needed a bit of tweaking now and then, but not too dramatic), but it's time had ended and we had to drop it. All IR receiver drivers in the kernel got moved to a new code base (which allows IR decoding in the kernel) and the old code lirc_xbox was built around got dropped.
so long,
Hias
The mode 2 output looks very odd - the space values are oddly large. So I'm not 100% sure if there might be some problem with IR reception - or maybe the batteries of the remote are flat and it's not working properly?
I'm not familiar with the original xbox remote, but if ir-keytable configuration doesn't work you could try the lircd.conf files from here: lirc-remotes / Code / [395780] /remotes/microsoft
This one looks like it could work: xbox.lircd.conf?format=raw
Download the file and copy it to /storage/.config/lircd.conf, then reboot (LE9.0 preview builds will automatically pick the file up and run lirc, in LE 8.2 you have to enable Lirc in LE settings).
But before doing that I'd check into the mode2 output, the pulse/space values should usually be about 400-2000.
so long,
Hias
Please upload a kodi debug log. Without logs it's hard to tell what's happening - it could be anything (some addon, some custom configuration you made, a faulty SD card etc).
Testing with a fresh installation on a known good SD card without any addons installed would be a good idea.
Also: when the RPi locks up can you still ssh in?
so long,
Hias
A few RPi3B+s seem to be suffering from stability issues, the RPi folks are busy working on a solution for that - see this thread on the RPi forum: Raspberry Pi 3 B+ lockups - Raspberry Pi Forums
To make checking for that issue easier we included memtester in LE 8.2.5. Please run the following commands and let memtester run for a coupe of hours
If memtester reports an error it could be worth trying one of the suggestions from the RPi forum thread. One suggestion is to add the following 2 lines to /flash/config.txt
Then reboot and check with memtester again.
Edit: most importantly, even when using a recommended power supply, it's always good to check if it performs as expected. Run the following command:
If you get anything else than 0x0 you have either a power or temperature issue.
so long,
Hias
Thanks for the feedback!
After disabling Lirc in LE settings you have to reboot, then in-kernel decoding will be used (running Lirc disables that) and the remote should work again. Could you try that?
so long,
Hias
Yes, you are absolutely right, the "slice" DT overlay seems to be broken. I'll ping the
To get back IR on the Slice the following line in /flash/config.txt should work
This will use the more modern gpio-rc-recv driver which means you'll also be able to disable Lirc in LE settings.
so long,
Hias
Is this on original Slice (1) or Slice 3? Do you use a custom /storage/.config/lircd.conf?
Please upload system logs (LE settings->System->Submit Log) and post the URL.
so long,
Hias
Starting with LE 8.2 gpio-ir is the preferred/officially supported way to handle IR remotes on RPi. lirc-rpi is included as a legacy alternative while people migrate to gpio-ir. LE9.0 doesn't include lirc-rpi anymore.
gpio-ir has been included in LE for a while, but in LE 8.0 and before the easy userspace configuration (via rc_maps.cfg) didn't exist yet (overriding the keymap eg via .config/rc_keymaps/rc6_mce did work though).
Which LE version are you using and how does your setup look like? i.e. which dtoverlay lines did you use, do you have Lirc enabled or disabled in LE settings, do you have a custom lircd.conf file, did you add something lirc related to autostart.sh or add other custom configurations?
If you do a fresh installation of LE 8.2 and just add "dtoverlay=gpio-ir" to config.txt your harmony remote should work out of the box if you configure it as a Microsoft MCE remote.
so long,
Hias
I'm not an expert with Amlogic devices but IIRC with 8.2.x builds you'll have to go the amremote remote.conf route. Creating a /storage/.config/lircd.conf file and enabling Lirc in LE settings could also work.
Proper ir-keytable configuration for Amlogic devices was added very recently to the 9.0 LE development branch, so the documentation in the wiki does not apply to 8.2 AML builds.
"LibreELEC-S912.arm-8.2.4-Subtitles-ff" suggests you are using some community build, so you probably have to ask the creator of this build for details.
so long,
Hias
Sean, the kernel maintainer, was faster than me and discovered and fixed the issue before I had time to have a closer look at it
[v2,6/7] media: rc: mce_kbd decoder: fix stuck keys - Patchwork
A backport of the fix will be included in LE 8.2.5 [8.2] fix stuck keys with MCE keyboard by HiassofT · Pull Request #2643 · LibreELEC/LibreELEC.tv · GitHub
so long,
Hias
Yes, this setup will work.
One thing to keep in mind is that the IR receiver of your DVB dongle will still be setup with the kernel driver's default config (in most cases to decode the manufacturer's remote, eg hauppauge remotes on hauppauge dongles - ir-keytable will tell you which table is active). If that causes issues (eg when you also use such a remote in the same room) you'll still need aluminium tape or blacklist the IR receiver driver module.
The only case when you might want to run "ir-keytable -a ..." manually is when testing a new setup, to check if it works and eg find out if you have typos in your files. This is why I mentioned it in the wiki Infrared Remotes [LibreELEC.wiki]. If you are sure everything's correct you could also just reboot so the config is automatically applied.
so long,
Hias
What do you mean with v7, are you still using an ancient 7.x LibreELEC version? If yes, I can't help you much other than suggest you upgrade to the current 8.2 version and read through the docs in the wiki Infrared Remotes [LibreELEC.wiki]
so long,
Hias
With 2 IR receivers the configuration is a bit tricky.
Your "* * avermedia_remote" rc_maps.cfg will configure both the gpio-ir receiver and the receiver on your DVB dongle to decode the signals of your remote. One possibility is to change the file so that only the gpio-ir receiver is configured:
Another thing to keep in mind is that it's not guaranteed that the gpio ir receiver will always be the first IR device (check the output of "ir-keytable"). If you manually run ir-keytable to change the config it'll apply the settings to the first rc device (rc0) unless you explicitly change that with the "-s" option.
The automatic configuration run by the udev rules take care of that, ir-keytable -a will be run for all your IR receivers with -s set appropriately - so that rc_maps.cfg is applied to all IR receivers on your system.
So, better remove the ir-keytable call from your autostart.sh.
Instead of covering the IR receiver with black or aluminium tape it'd be better to blacklist the the driver for the IR receiver in your DVB dongle - or just use the IR receiver in your DVB and not add gpio-ir. With only one receiver life's a lot easier ![]()
so long,
Hias
Connect the TSOP4838 to 3.3V and drop the voltage translation circuit - TSOP4838 can be powered from 2.5 to 5.5V (see the datasheet tsop48.pdf ).
Also drop all modifications to autostart.sh - you only need to set up rc_maps.cfg and put the keytable in rc_keymaps. This config will be automatically picked up.
If you still have problems post the output of ir-keytable. If you have another ir receiver (eg on a DVB USB dongle) you could get double keypresses as the signal will be received by 2 receivers.
so long,
Hias
Thanks a lot for the test output and the capture!
I could reproduce the issue here, it looks like it's a bug in the kernel's MCE keyboard decoder (or probably multiple issues in there).
I'll have a closer look at it and discuss it with the kernel maintainer. I'll keep you posted about the status.
so long,
Hias
Interesting. It looks like the mce_kbd decoder might be sending a key down event but no key up event.
Also odd that ir-keytable -t doesn't show anything, I'd expected to see KEY_... events from the driver.
Could you install the system tools addon and check with evtest instead of ir-keytable -t? Kodi and eventlircd must be stopped, as usual. Please post the evtest output of a short keypress.
It would also be interesting to have a capture of the raw IR signals, then I could try to reproduce that here. Could you run the following command
then press a key on the IR keyboard, then abort ir-ctl with control-c and upload the file "rawkey.txt" here?
so long,
Hias