LCDProc: no driver for Kodi 19 Activy Media Center 570 VFD

  • Who can build a driver for the Activy Media Center 570 VFD Display for Kodi 19? With the instructions I have built a driver for kodi 18:

    Code
    tar xvf lcdproc-0.5.2-henlar-v0.2.tar.gz
    cd lcdprov-0.5.2/
    ./configure --enable-drivers=dm140
    make
    sudo make install
    edit /usr/local/etc/LCDd.conf

    in dm140.c we find following piece of code

    Code
    p->pszVendor = "040b";
    p->pszProduct = "7001";

    But this device on the AMC 570 has

    Code
    p->pszVendor = "1509";
    p->pszProduct = "925d";

    3. in led.c we can see:

    Code
    int Compare(const char *pszValue, short sValue)
    { int iValue; // convert the pszValue to a number sscanf( pszValue, "%4x", &iValue); return( iValue == sValue );
    }

    hier must be

    Code
    int Compare(const char *pszValue, short sValue)
    { int iValue; // convert the pszValue to a number sscanf( pszValue, "%4x", &iValue); return( (short) iValue == sValue );
    }

    now the method works fine for Kodi 18 (libreelec 9 Kernel 4.x). But the dm140.so no longer works unter Kodi 19(libreelec 10 Kernel 5.x).

    Please Help

    Edited once, last by Voosjey (July 5, 2021 at 2:33 PM).

  • that doesn't work because the dm140.so is for ph2 and kernel 4.xx

    I would need the current dm140.so which is built into the libreelec lcdproc package, only with the changes from the first post

    maybe a new driver name as AMC570 directly integrated

  • dm140 is not in the upstream lcdproc code (it was refused due to licensing issues https://github.com/lcdproc/lcdproc/pull/47) so the easiest thing to do is probably to build the add-on yourself with edits made to the patch that we use to add support. If you are only modifying existing lines in the patch e.g. to use different USB IDs then the line-count of the patch will not change and it will still apply when LE buildsystem compiles the add-on. There is no need to change the module name to amc570.so. It's probably not too hard to do, but it's not necessary.

    patch location packages/addons/service/lcdd/patches/lcdd-0.5.6-dm140_henlar_v0.2.patch