Posts by HiassofT

    can someone help me get my XBOX ONE remote working? using raspberry pi with IR on GPIO.

    on 8.0.1 it was working perfectly

    i attached all my config files whish was working on 8.0.1 but stopped working on 8.1.0.

    BTW i switched on/off (everytime reboot) lirc in settings but no luck.

    First remove this block from autostart.sh:

    Code
    killall lircd
    ir-keytable -p lirc
    lircd --device=/dev/lirc0 /storage/.config/lircd.conf

    Then enable lirc in LE settings, this wil automatically pick up your lircd.conf file.

    You also have to change your Lircmap.xml, the remote device has to be set to "devinput" instead of "XBOX-ONE".

    Instead of using the "lirc-rpi" dtoverlay plus your lircd.conf file you can also use the "gpio-ir" dtoverlay and disable Lirc in LE settings. This should support the Xbox one remote out of the box, some of the KEY names seem to be different to the ones from your lircd.conf file though (see /usr/lib/udev/rc_keymaps/xbox_one) so you'll need to adapt your Lircmap.xml

    so long,

    Hias

    The position of the IR receiver can certainly have an impact, you can try rotating/moving your RPi - ideally the receiver should point directly to you.

    Use of Hifiberry should be harmless, I'm using a GPIO receiver myself with the Cirrus logic audio card.

    Since you mentioned streaming from NAS the linked issue immediatly came to my mind. Simply speaking: transferring data via USB can mess with GPIO IR receivers. And on RPi the (wired) ethernet chip is connected via USB.

    While personally I haven't experienced that issue yet (but I mainly play from local USB HDD, sometimes stream from the internet) it's not unthinkable that you are hit by it.

    so long,

    Hias

    First check with "mode2" that your IR receiver is hooked up correctly and the GPIO pin setting in config.txt is correct. You should get a bunch of "pulse" and "space" messages when you press a button on your remote.

    I'm currently writing a new guide on IR remotes in LibreELEC, until that's finished here are some additional hints and pointers.

    Instead of "dtoverlay=lirc-rpi" better use "dtoverlay=gpio-ir". To configure the latter for GPIO 4 add this line to config.txt:

    Code
    dtoverlay=gpio-ir,gpio_pin=4

    With gpio-ir you can use the new (and IMO easier to use) "ir-keytable" method to configure remotes and don't need to enable lirc.

    Have a look at this thread for detailled infos on how to setup a custom configuration using ir-keytable:

    WD TV Live remote

    so long,

    Hias

    Hi, I'm a little confused now. For me before everything was fine (no repetitions) but now the key presses are repeated sometimes (Logs). I have new batteries in my remote and I really only pressed once :P It seems like it occurs more often when I watch a file from my NAS then when I watch it from a USB Stick, but maybe this is just arbitrary.

    Quite certainly you are hit by this issue: lirc_rpi is sensitive to interrupt latency · Issue #906 · raspberrypi/linux · GitHub

    Unfortunately there's not much we can do about that, it's a general problem of the RPi and how USB and GPIO remotes are handled.

    As an alternative you can use a USB IR receiver, eg one integrated into a USB DVB receiver:

    [SOLVED] LibreELEC + PCTV 461e + XBox One Remote

    so long,

    Hias

    Similar issue with double press with 8.1 generic with harmony remote upgraded from 8.0.2. Lirc is not listed under my services. Is there a file I can edit to disable lirc?

    Scroll down to the end of services, the option should be there always (in 8.0 the option was only shown if an IR receiver was detected).

    You can also manually disable lirc via

    Code
    cd /storage/.cache/services/
    mv lircd.conf lircd.disabled

    and then reboot.

    so long,

    Hias

    Another thing I noticed is that my IR remote stops working for about a minute after I switch my HDMI output cables. Not a big deal, but maybe it is helpful to know.

    Have you double-checked the batteries in the remote aren't flat? :)

    Other than that: output of

    Code
    journalctl -a | paste

    after this has happened could be useful.

    Also check with "mode2" if the IR receiver is getting any signals.

    so long,

    Hias

    Hmmm, probably this (huge left/right padding)


    Code
    /* force left sidebar to 255px */
    .col-3cm .main { background: url(../img/sidebar/s-right-s2.png) repeat-y right 0; }
    .col-3cm .main-inner { background: url(../img/sidebar/s-left.png) repeat-y left 0; padding-left: 255px; padding-right: 260px; }
    .col-3cm .sidebar.s1 { float: left; margin-left: -255px; }
    .col-3cm .sidebar.s2 { float: right; margin-right: -260px; /* ingenuity! */ position: relative; right: -100%; }
    .col-3cm .content { float: right; }
    .sidebar.s1 { width: 255px; z-index: 2; }
    .s1.expanded .post-nav { opacity:1;min-width: 255px; }

    These settings are without @media

    so long,

    Hias

    I can reproduce this with firefox-esr on debian stretch

    Code
    hias@camel2:~$ apt-cache policy firefox-esr
    firefox-esr:
    Installed: 52.3.0esr-1~deb9u1
    Candidate: 52.3.0esr-1~deb9u1
    Version table:
    *** 52.3.0esr-1~deb9u1 500
    500 http://security.debian.org stretch/updates/main amd64 Packages
    100 /var/lib/dpkg/status
    45.9.0esr-1 500
    500 http://ftp.at.debian.org/debian stretch/main amd64 Packages

    Anyone played with the CSS lately? :)

    so long,

    Hias

    This time, I was able to use my remote once after I started the Pi (not immediately), afterwards, the remote was dead again.

    Update: After I posted this, I removed the batteries and put them back into my remote. Now it works again, so the problem was the remote, sorry. So everything works perfectly fine for me with LibreELEC 8.1 and "Enable Lirc" activated.

    Thanks for your help :)

    Cool, I like problems that can be solved that easily :)

    As I have you here with an Xbox One remote, could you test another thing?

    Change the "dtoverlay=lirc-rpi" line in config.txt to "dtoverlay=gpio-ir", disable Lirc in LE settings and then reboot.

    The Xbox one remote should work out-of-the box, without having to run lirc.

    so long,

    Hias

    if you still need some feedback :

    Thanks a lot for the logs!

    It looks like lircd runs a tad earlier than on my RPi, disabled in-kernel decoding, but the udev rule configuring ir-keytable seems to have run a bit later (not visible in the logs), as at the end nec and rc-6 protocols are also enabled.

    Parallel startup and race conditions can be a lot of fun :)

    so long & thanks to all of you for your feedback,

    Hias

    It's strange. I have activated 'lirc', reboot, and the error with double commands no longer occurs. But if I now deactivate 'lirc' again, irc no longer works, so I have to activate 'lirc' in settings now. o0

    This means lircd successfully disabled in-kernel decoding. If you then disable lirc that won't be re-enabled again and your remote no longer works. You could manually enable it on the shell via "ir-keytable -p rc6,nec", but in general it's easier to just reboot.

    Quote

    Here still my logs:

    Crap, the interesting stuff (enabled protocols) didn't make it into the logs - ir-keytable sends them to stderr instead of stdout...

    If you catch a situation with double-presses again, please run these commands instead:

    Code
    ir-keytable -r 2>&1 | paste
    
    journalctl -a | paste

    But no need to spend too much time on that, the info that the issue doesn't always occur was already helpful!

    Quote
    Looks as if the error only happens at the first reboot after update.

    It's probably rather random if you get that issue or not - after all if there's a fight between 2 configuration services it's not good and the easy solution is to just disable lirc in LE settings.

    so long,

    Hias