Posts by nvdias

    I had some similar issues in the past, and just added a small script to crontab to force a connman restart when there's no connection.

    Something like this:

    in crontab (each 3 minute of the hour, test connection. The --reset-network parameters restarts connman if needed):

    Code
    03 * * * * /storage/bin/network-connection-test.sh --reset-network

    the script:

    I'm not sure exactly when the issue started.

    It was after 4e4a6f9 , but don't know exactly which commit started with issues. I've tried several, but was not able to find exactly which one.

    I might try a794735ee if you think it would help (which should have pvr addons changes only - but not for the tvheadend pvr client).


    Thank you

    LIVE-TV non-fluid playback after 4e4a6f9


    I've been using tvheadend to watch live-tv with libreELEC.

    Up to LibrEELEC 13 compile for 01 feb 2025 (4e4a6f9) all was ok.


    Compilations made after that one gives me non-fluid play back - noticed mostly in full screen panes (left-right or right-left).
    Perceived mainly in sports (football, or sports cars races).

    Every compilation I've tried up to 1st July has he same symptoms.
    Going back to 4e4a6f9 works just fine.

    I've tried to understand what's happening by looking into source code changes but without success.
    Anyone else with similar issues or suggestions on how to trace and solve ?

    I don't believe that my configuration poses an issue as it is the same for every test i've made, but here it goes:

    - Raspberry Pi4, 4GB RAM
    - tvheadend 4.3
    - PAL-HD TV channels (Western Europe)
    - SONY android TV
    - HDMI connection
    - 1920x1080 resolution
    - 23.976, 25, 29.97, 50, 60 fps playback unlocked


    Thanks

    Maybe the x64 build is different?

    This thread is for the RPi4 patches. I have not tested it in x64. Don't know if they are compatible.

    Note that you will need to convert the rpi4 patch file to x64 in order to compile the proper modules.


    Hi nvidas, thank you for the information. I think i missed the new Patch from 2024 .... Sorry for that.... compile worked now....

    Great !

    I don't know why I cannot remove the files from May.

    I've just adjusted the text to be more clear where is the link for the last patches .

    I needed a lot of RAM to do build LE Monitoring with htop it was hitting over 24GB even with one CPU. so if you don't have enough memory make sure you have lots of swap. I ended up increasing my RAM to 64GB.

    Martin

    what ? to compile LE ???

    I use an Ubuntu VM machine with 2 processors and 4 GB RAM.

    No issues.

    After applying the patches in the first post, just compile with:

    PROJECT=RPi DEVICE=RPi4 ARCH=aarch64 make image

    hi.

    Hi emveepee, hi nvidas,

    i still did not get a running compilation with current master (LE 13). there are errors when i try to compile tsb5520. So is there a way i can fix this? There are errors like: replace strlcpy with strscpy. Maybe there is another patch available? I'm not a developer, so its hard for me to find the error....

    Try recreating your dev environment following libreelec guidelines.

    I've successfully compiled yesterday afternoon (WET time zone), with the patches from the 1st post, dated december 2024.

    Nope, but the basic instructions in /storage/.config/system.d/openvpn.service.sample are valid for creating a client connection. If you want to create a server, read up on how to create an OpenVPN server conf and use the same service/conf to start a server. The only challenge with LE will be that any external files you link into conf will need to be located somewhere under /storage and not the usual /etc/openvpn location used in any guides you read.

    Great Suggestion - I feel the need to test some configs and put-it to work as a server, forgetting the docker image :)

    ...

    The compilation of LibreELEC13 devel, commit from today with TBS patches worked just fine.

    But ... The patches are different from thes one i've previosly shared.

    In fact I've changed the patches with the help of smp and forgot to update the last version.

    The last version is already available in the first post.

    Thanks

    The master branch on github now seems to started LibreELEC 13 development.

    There may be some changes at the kernel level that could create issues with TBS patches.

    Give me some days to look at it.


    Meanwhile you can checkout a previous commit - I'm currently using commit 4513878 from April 29th, which compiles tbs patches just fine.

    ok. sorry. I am not trying to do anything :)

    I was just looking into /var/log and noticed that there is a ssh-tunnel.log

    with repeated lines. All of them with "Host key verification failed."

    Once per minute a new line is added to ssh-tunnel.log.

    ---

    The only configuration I have made for ssh was adding a public key for the server in /storage/.ssh/authorized_keys.

    And disabled SSH PASSWORD authentication in :

    Settings >> Libreelec >> Services >> Disable ssh password


    Also note that /storage/.ssh/known-hosts is empty.

    [EDIT 31/07/2024]

    Attached to this post:

    1. the patches ;
    2. a link to a compilation of LE13-devel with TBS drivers (29 July 2024) aarch64 ;
      https://mega.nz/file/tHpSzBYB#…7SlLfCdxSGceRSU

    Notes:

    • This package was recompiled for aarch64 (following jassi0001 suggestion, thanks) to be aligned with official repositories.
    • arm add-ons will NOT run in aarch64 - Some will update depending on your kodi configuration, others will need to be manually updated (it is not in the scope of this thread to handle with add-on updates)

    ----------

    Following the compiled drivers for TBS 5520 SE DVB receiver for LE10 - LE13 on RPI4 (available here: LE10 & TBS 5520SE on RPi4 // updated drivers [SOLVED])

    I've created this thread to share the source code of the patches to apply, compatible with LE11 and LE12 and LE13 current source code from GITHUB.

    The patches were made by smp (thank you :) ).

    I've just made some small offset adjustments to go on with kernel source code updates.


    - 2 patch files are included :

    a) lepatch_prepare_tbs_module_enable.patch - to enable tbs5520se module compilation in kernel;

    b) lepatch_code_changes_tbs5520se.patch - to add tbs5520se needed source code;


    - how to apply these patches for RPi4:

    download and go into LibreELEC git source local copy:

    Code
    git clone https://github.com/LibreELEC/LibreELEC.tv.git
    cd LibreELEC.tv


    copy the attached patches to LibreELEC git source directory:

    then run:

    Code
    cp lepatch_code_changes_tbs5520se.patch projects/RPi/devices/RPi4/patches/linux
    git apply lepatch_prepare_tbs_module_enable.patch


    - if later on git complains about branches mismatch or similar on updating sources

    Code
    git stash
    git pull

    then, re-apply the patches.


    Good luck !


    LINK TO THE LAST PATCHES:

    LibreELEC_TBS5520SE_241203.zip