Posts by kszaq

    kostaman I think I might have identified a small bug in libcec that can be causing CEC disconnection notification and no CEC until Kodi restart/box reboot. Can you please test this build and tell me if there is any improvement for you:
    thermal-test-02-libcec-test

    From previous test build I changed CPU governor from ondemand to interactive to boost performance a bit. Now that thermal levels are working for everyone I think we may try switching to it.

    sonofdibnah  Midnight63  bobones Thank you for reporting. I have a 7.0.1.4 build ready with improvements from test build included, I hope the test build works fine for you. Waiting on your feedback!

    PatrickJB Yes, I've also noticed the LE Settings glitch and at first I thought it is related to new compile flags I used... but it also does that with old settings. Since it's a minor bug and only in LE Settings (which we don't use that often, do we?), I don't care much. ;)

    kostaman Thanks for reporting. I think that CEC-related issues your experience are specific to your TV model, at the moment I'm out of ideas on how CEC driver can be improved... you may want to try using libcec-daemon, there's a quick guide by sammaz on previous page of this thread. You have to note that some keys work differently with daemon and need to be remapped.

    Try to boot your box without SD card in slot and with toothpick inserted. Does it boot to recovery? If not, you have a wrong recovery image installed on your internal memory and it has nothing to do with my OE/LE releases as they don't modify recovery for some time now.


    Thanks kszaq. I've just tried this on my box (tar update), which had been running 7.0.1.2 MXQ port just fine, and it locked up quite a few times just navigating kodi menus. Box is a Sumvision Cyclone X4, but I can find out more details later if you let me know what information will help.

    Please try running this version: thermal-test-01

    I have modified thermal management a bit and would like to see if it fixes your issue.

    Can you also post a log from any LE/OE version? It needs to be collected after a "fresh" boot, i.e. plug out power, plug in and boot. Thanks.

    7.0.1.3 7.0.1.3

    Commits from 7.0.1.2 to 7.0.1.3: Comparing 7.0.1.2...7.0.1.3 · kszaq/LibreELEC.tv · GitHub
    Kernel commits from 7.0.1.2 to 7.0.1.3: Comparing 9d4e014...83ba060 · kszaq/linux · GitHub

    Changelog:

    • added support for Realtek 8723BS Bluetooth
    • reverted NAND driver to previous version
    • turned off Realtek WiFi driver debugging
    • more stable system: applied thermal and power management improvements from OSMC with some fixes from me
    • more performance: switched default CPU governor to ondemand which is now stable thanks to thermal management improvements
    • allowed to put remote.conf in root SD card folder for easier first-time installations (idea inspired by OpenElecCrazy 's need )
    • Kodi improvements:

      • added local system buffering to avoid video-audio desync when resuming video and source needs to wake up
      • added special compile flags to bump interface and SW decoding performance a bit
    • minor build tree improvements


    Known issues:

    • V3_1 board cannot wake up from suspend/power off by pressing remote power button (u-boot bug)
    • 29.97 progressive videos may stutter
    • sometimes CEC may not work
    • power LED on not officially supported boxes may not work as intended (too many boards to support them with a single build)
    • no HD-Audio passthrough and multichannel audio output
    • DVB support is experimental, some USB DVB tuners don't work at all


    An extra note: with this release reported CPU temperature may be a bit higher due to a small change in calibration code - this is nothing to worry about.

    mwp1  sammaz Thanks for testing and I'm glad that it finally works! Can you please do a one more test for me, confirm that both WiFi and Bluetooth work in this build: le_8723bs_bt_test_02
    I made a small clean-up for 8723BS drivers and need to confirm that they still work before pushing changes to release build. I don't have a 8723BS device so I rely on you with this.

    sammaz Thank you for posting instructions for libcec-daemon. I'll soon include a README of some sort.

    mwp1 You have to keep in mind that with libcec-daemon key mappings are different than defaults in Kodi. I did not have time to look into key mappings yet. For PS4 controller, as far as I know game controller support has been added for Kodi 17.

    OpenElecCrazy Have you had a chance to test 7.0.1.2 build with SSV6051Q WiFi? There is a small difference between the last test build I made for you and 7.0.1.2 release, it might work this time.

    I can see that you figured out sound and 4k patches.

    For power off and suspend how this works depends partly on bootloader. You can try using this patch: LibreELEC.tv/add_meson8b_power_off.patch at libreelec-7.0 · kszaq/LibreELEC.tv · GitHub Remember to change every "meson8b" to "meson8".

    As for CEC, does it not work at all? You'll always see some write errors at the beginning as they appear during polling process. Afterwards they should disappear. If CEC does not work at all, make sure that it works in Android, you may have to use a different HDMI cable if it doesn't.

    I don't think I can accept your pull request as I don't have resources to build for S802 devices nor means to test the builds. You are very welcome to provide project-wide patches.

    A small update on V3_1 board: I managed to find a USB Burning Tool image that shows 1GB RAM in u-boot but unfortunately neither Android nor LibreELEC boot with this image. This could be another sign that this board has only 512MB of usable RAM.

    @Runblefish: Thank you for the logs you sent me. Unfortunately there is nothing about your tuners in the log and this needs further investigation. I need you to provide me a copy of kernel and kernel modules. If you have a link to Android firmware, that would be the best. If you don't, you can provide me appropriate files by logging over SSH to LE and doing the following:

    Code
    mkdir -p /tmp/system
    mount -o ro /dev/system /tmp/system
    find /tmp/system -name \*.ko | xargs tar cvzf /storage/downloads/modules.tgz
    dd if=/dev/boot | gzip > /storage/downloads/boot.tgz


    You'll find files I need in "Downloads" shared folder.

    As for remote control, I'm planning on adding some additional key mappings to Kodi so that people won't need to remap their remotes that much.

    I'm quite busy with life stuff so things will go a little bit slower than usual.
    [hr]
    sammaz Here's libcec-daemon compiled from the repository you linked: tools.libcec-daemon-7.0.2.zip

    I noticed that it doesn't map all the buttons needed. For the time being please confirm whether it works or not for you.

    Rumblefish: I've sent you a PM few days ago, but I'll post this for others to see: for the remote.conf issue you posted (that you want to have out-of-box working remote) I can make a change in my next build so that you'll be able to copy remote.conf to root folder of your SD card without a need to modify the whole image. I think that'll be easy and convenient.

    If you want to repackage a current build you need to:

    • mount SD card image
    • unpack SYSTEM image with unsquashfs
    • copy your remote.conf to /etc
    • repack SYSTEM image with mksquashfs


    All of this needs to be done in Linux.

    As for DVB tuners, you need to have kernel driver source code so that I can compile them in. There is no way to download the driver somewhere from the Internet and I'm afraid that binary driver extracted from Android won't work. The best thing you can do is to grab logs from LibreELEC so that I can see what tuners you have.

    A few things to clear up:

    • my OE/LE builds do not modify bootloader - aml_autoscript modifies u-boot variables to allow booting from SD card and this can be losslessly reverted at any time - this change is not permanent
    • in OE/LE there is no "MBox" animation
    • the reason for "MXQ" logo not showing is not connected to OE/LE


    I found a branch of libcec-daemon that shows as working well because it links itself also as a keyboard...That will make it more universally suppported :

    GitHub - diablodiab/libcec-daemon

    Shown in this video he has it working on RPi...so i think it will work for us.

    my-setup-and-perhaps-some-inspiration-for-new-recalbox-functionality

    Can you try to compile a new version using his sources?

    I'll give it a try later today.