Posts by HiassofT

    It looks like the issue is triggered by the vfs.sftp addon

    Code
    2019-09-17 20:48:04.305 T:1937068048 ERROR: Unable to load /storage/.kodi/addons/vfs.sftp/vfs.sftp.so.1.0.1, reason: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory

    On LE 9.2 several crypto libraries were changed and the one used by vfs.sftp on LE9.0 is no longer available on LE 9.2.

    Can you try uninstalling that addon, then upgrade to LE 9.2 beta 2? If that succeeded you can install the LE 9.2 vfs.sftp addon which should then work as befoe.

    so long,

    Hias

    This is very odd. Just did a test here with white, green, blue and red images and it looks fine (RPi4 with Arduino/Adalight).

    Could you do a test with this hyperion addon? service.hyperion-9.1.901.112.zip

    I fixed screenshot grabbing not working on the command line so you can check if the dispmanx grabber works. ssh in and then run

    Code
    hyperion-dispmanx --width 320 --height 180 --screenshot

    This will save a 320x180 pixel screenshot to "screenshot.png" in the current directory. Copy that over to your PC and verify that it's matching what you have on screen (especially the colors).

    so long,

    Hias

    If you downloaded hypercon from the hyperion website and used that to install hyperion you are running the wrong version.

    In that case try to remove whatever hypercon changed on the LibreELEC installation (or just start with a fresh LibreELEC installation, that might be easier) and install hyperion from the LibreELEC addon repository - that'll be the correct version to use.

    You can then use hypercon from here Hypercon [LibreELEC.wiki] to configure hyperion on LibreELEC.

    Read also here for more information: Hyperion [LibreELEC.wiki]

    so long,

    Hias

    In general it's best to avoid USB DACs on RPi0-3, the USB controller isn't too great and we are still seeing occasional reports of crackling audio etc.

    If you want something small and well supported then use one of the plenty I2S audio cards / hats. eg pHAT DAC, Hifiberry, Justboom or IQaudio.

    so long,

    Hias

    After looking a bit it turned out there are tools available for that in the lirc distribution and some of them are already included in LibreELEC.

    With "irsimsend" (which is available in LE) you can convert a lircd.conf file to a raw file with pulse/space codes. It's a very simple test tool and writes the raw codes always to simsend.out. By default it'll dump all codes (which isn't too useful), but you can tell it to only dump a single button.

    eg with your lircd.conf file saved to panasonic.conf you can do

    Code
    irsimsend -k KEY_POWER panasonic.conf
    mv simsend.out power.raw
    irsimsend -k KEY_VOLUMEUP panasonic.conf
    mv simsend.out volumeup.raw
    ...

    In the lirc source code I found a "pronto2lirc" python script, it's not installed in LE and by default wants Python3, but also works with Python2. I've attached that script (in a zip) and checked that it works on LE.

    You need to create a file with the pronto hex codes of each button all in one line and put the button name followed by a colon at the beginning of each line. eg create a file panasonic.pronto:

    Code
    poweron:0000 0071 0000 0032 0080 003F 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0010 0010 0030 0010 0A98
    poweroff:0000 0071 0000 0032 0080 003F 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0010 0010 0010 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0030 0010 0010 0010 0030 0010 0A98

    And then run that through pronto2lirc.py

    Code
    ./pronto2lirc.py panasonic.pronto

    That'll create a lircd.conf file in the current directory and you can then use irsimsend (with -k poweron, -k poweroff) to create raw files.

    so long,

    Hias

    config.txt looks fine but according to dmesg communication with wm8804 fails:

    Code
    [ 7.844393] wm8804 1-003b: Failed to read device ID: -121
     [ 7.844554] wm8804: probe of 1-003b failed with error -121

    Are you sure the card isn't defective or plugged in wrong?

    I did a test with my justboom digi card (no config.txt changes required as it has a HAT eeprom onboard) on RPi4 running LE 9.1.002 and it worked just fine

    Code
    [ 9.267296] wm8804 1-003b: revision E
    [ 9.274108] snd-rpi-wm8804 soc:sound: wm8804-spdif <-> fe203000.i2s mapping ok

    so long,

    Hias

    It could be that you need to transmit the IR code multiple times - my old Panasonic CRT TV only powered up if the power button was held down for about 0.5-1 seconds.

    You could try something like this:

    Code
    ir-ctl -g 75000 --send=button-power--send=button-power--send=button-power--send=button-power--send=button-power

    "-g 75000" sets the gap / pause between IR signals to 75ms - that's about the value I see with my panasonic remote. You can also try other values in the range of (about) 50000 to 100000.

    To add more repeats just add --send... more often - maybe try with 10 instead of 5 if it doesn't work.

    It's a bit odd though that the TV didn't blink when you sent the code (IIRC my old CRT TV blinked shortly, multiple times when powering up).

    It could be that the recorded signals aren't accurate enough - MCEUSB has 50µs resolution and this page Description of the panasonic infrared protocol (REC-80) says the intervals are about 420µs in USA and 450 in europe (not sure if that's correct, different lengths are quite odd).

    so long,

    Hias

    The easiest way to do that with ir-ctl would be to capture the raw signals to a file and then send those. for example:

    record a button to file "tv-power"

    Code
    ir-ctl -1 --receive=tv-power

    transmit the signal:

    Code
    ir-ctl --send=tv-power

    An alternative would be to use lircd if you can find a lircd.conf with the signals/codes for your TV.

    Converting those various "ir codes" you find on the net to a format suitable for ir-ctl or lircd isn't easy as there's no real standard for them.

    so long,

    Hias

    Kodi already supports context-specific keymapping. For example to map up/down on the navigation wheel to volume-up/down when visualization/full-screen music or full-screen video is playing you can use add the following block (between </global> and </keymap>) to keymap.xml:

    The main reasons for dropping atvclient is that it didn't really work perfect and was constantly causing issues over the past few years. And as no one on the team is using an Apple IR remote testing and fixing was rather cumbersome.

    As in the meanwhile the Apple IR receiver is perfectly supported by the linux kernel and with kodi keymap configuration people have a far more flexible possibility to map and configure the remote the decision to drop atvclient wasn't a really hard one - as a better alternative to it exists.

    I'm a bit undecided if we should route it through eventlircd (like a few other remotes) by default, the pro of that would be that you could use the navigation wheel to navigate through the menus OOTB, but you'd also loose the possibility to use longpress mappings - which some users prefer to have on low-button-count remotes like the Apple one.

    so long,

    Hias

    Good to know that navigation works now!

    How did you previously (with atvclient) get volume up/down?

    With keyboard input in kodi (which is how the remote is recognized/setup at the moment) you can assign separate functions to long-pressing a button.

    eg to get volume-up/down when long-pressing up/down add the following 2 lines after the volume_up / down entires in your keymap:

    Code
    <volume_up mod="longpress">VolumeUp</volume_up>
    <volume_down mod="longpress">VolumeDown</volume_down>

    PS: forget about lirc, it's not needed and you would loose longpress support in kodi.

    so long,

    Hias

    Thanks for the info!

    The info on the kodi wiki page looks a bit outdated. Please try with this keymap instead:

    This maps the "menu" button on the remote to "Back" (something in kodi's "menu" key handling doesn't look quite right, therefore I had to use the id variant), long-pressing on the center return/OK/select button will bring up the context menu (that's the default action in kodi, so it's not listed in the keymap above).

    so long,

    Hias

    First install the System Tools addon (from the LibreELEC repository, in the section "Programs") and enable debug logging in kodi. Then reboot.

    Now press up/down/left/right/OK buttons (plus any other buttons on the remote) and observe if they trigger some obvious functions in kodi.

    Then ssh into LE and run the following commands and post the output:

    Code
    systemctl stop kodi
    systemctl stop eventlircd
    paste .kodi/temp/kodi.log
    journalctl -a | paste
    lsusb

    Then run

    Code
    evtest

    and choose the event device number of the Apple IR receiver (it should have appleir or something similar in it's description. evtest will then output some info, ignore that.

    Now press all of the buttons, one after the other. You should see some lines like

    Code
    Event: time 1565859742.121362, type 4 (EV_MSC), code 4 (MSC_SCAN), value c00e9
    Event: time 1565859742.121362, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
    Event: time 1565859742.121362, -------------- SYN_REPORT ------------
    Event: time 1565859742.137362, type 4 (EV_MSC), code 4 (MSC_SCAN), value c00e9
    Event: time 1565859742.137362, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
    Event: time 1565859742.137362, -------------- SYN_REPORT ------------

    for each button press. Post that output here, too.

    so long,

    Hias