Posts by jant90

    Could you please share your binary so I can try it out as well?

    I tried compiling it myself as well but the build process failed. Maybe I didn't have all the required dependencies? Anyways, it would be nice if I could try your binary! :)

    Thank you, if a low power device such as the Odroid XU4 is capable of doing 4 (HD) channels (including descrambling) simultaneously then I'm hopeful my new HTPC should be capable of that as well. Oh and I'm on Ziggo as well btw :).

    I'm wondering something though: how does Tvheadend communicate with Oscam? Assuming I got my reader properly set up in Oscam, then what do I need to configure in Oscam for Tvheadend to reach and talk to Oscam? And after that, how do I configure Tvheadend so it can find my Oscam server, I have to add Oscam as my CI right but what protocol and settings do I use for that? I don't have the TV hardware yet so I can't try stuff myself yet.

    Btw, USB port speed shouldn't be an issue with the HDHomeRun right? That's only the case when you use USB tuners.

    Thanks for you reply, and I agree, old hardware is cheap to get by, especially those old office desktops. They perform quite well and the quality of the hardware is very decent so it will last long. However old hardware is also relatively power hungry, so what you save now you will pay back in power costs big time. Also modern techniques that would greatly improve media center capabilities aren't included (4k / HEVC decoding and such) and it's not quiet (there are moving parts and fans). Also I can only find them in 150-200€ price range btw.

    So I think I'm gonna go with the new ASRock J4205-ITX motherboard with onboard Apollo Lake CPU that is cooled passively. I'm gonna put it in a mini ITX case with external 12V adapter so it's 100% fanless, perfect for in the living room, and excluding storage it will cost me about 200€. Idle it should do around 7-8 Watts so I don't have to worry about my power bill either.

    I will run Ubuntu so I hope I'll manage setting up Tvheadend and will also add some other server software. I hope that the system is powerful enough to run all I want simultaneously (while smoothly playing back all my content in Kodi) but I can only find out through trial and error I guess.

    I'm wondering if descrambling encrypted channels on a Amlogic S905X box would work (performance-wise) for one or more channels simultaneously? I'm interested in buying an HDHomeRun network tuner for my DVB-C subscription (network tuner with 4 built in tuners).

    I've seen a YouTube video of a user running Tvheadend with an HDHomeRun on a S905X already so I assume the HDHomeRun drivers are good, but he showed FTA (free to air) channels only, and as I hardly have any FTA channels I would like to do descrambling as well. Also, I installed Tvheadend and OSCam (through which I should be able to descramble the channels) on the box from the LibreELEC repository and I can reach their webinterfaces just fine, only I can't test anything yet without the tuner.

    You haven't somehow got the 'shutdown after idle' open enabled in the power settings, have you ?

    Thanks, but that wasn't it. Shortly after that post I noticed that the box turned off when my TV turned off because of HDMI CEC.

    You can change that from the GUI, in Kodi 16 it's in Settings > System > Input Devices > Peripherals > CEC Adapter then choose if and when the device powers on and off, if the device pauses or not when switching sources, etc etc. I assume the setting is still in Kodi 17.


    Thanks you, totally missed that one! I was pretty sure I ran through all settings (on expert) after upgrading to Kodi 17 / LibreELEC 7.95 but that one is hidden quite well. It's actually amazing how much finetuning you can do with regards to HDMI CEC already.

    So as of now for me LibreELEC / Kodi 17 seems to run very well on my S905X (Sunvell T95M 2G), I will keep an eye on possible framedrops / choppy playback every now and then but that may have been solved by migrating my advancedsettings.xml to the new Kodi 17 format, but I will find that out over the next couple of days.

    kszaq thanks again for an amazing job!

    Great, thanks, that works. As I stream everything from a central server running Emby the PlayerDebug screen is useful to see if the stream is fast enough and how the cache is filling up. I also had to update my advancedsettings.xml manually because the variables related to caching changed and I had no idea (and apparently you have to change to manually). I will look at the PlayerDebug window when I experience framedrops again.

    Anyways I also figured out why my box is being turned off all the time, it's because apparently the box is listening to CEC events from the TV and turns off when I turn my TV off. I did read somewhere that a new CEC driver (libcec) is included in this version so perhaps that's why this behavior has changed between versions? kszaq , is there a way to prevent that from happening?

    I know they're completely different but Raspberry Pi's have the "HDMI_IGNORE_CEC_INIT" setting in their config.txt file, I guess we need something similar for Amlogic boxes so we can still use our TV remotes to control the box but don't control the box's powerstate with it. Is something like that already available perhaps? Are there HDMI-CEC config files somewhere that we can tinker with?

    Rename CodecInfo to PlayerDebug and you'll be able to see dropped and skipped frames.

    Could you elaborate on that please? Do I need to make a custom hotkey for that?

    Jant90, the shutdown issue sounds similar to the issue I'm having.

    Glad I'm not alone, do you see a pattern in this? I have never seen it shut down because it always happens after I haven't used it for a while (and thus it's been idling) for I would guess several hours. So I'm not sure if it gracefully shuts down or just crashes.

    I always leave my box running 24/7 but ever since I updated to 7.95 (first beta 5 and now beta 6) I find that the box shuts down after idling a couple of hours (it didn't shutdown/crash during playback yet btw). Is that a known bug?

    Also playback stutters occasionally (something I didn't see on Kodi 16 either). It's frustrating that the codec info overlay (O button) is so limited so it's hard to know what's going on in terms of caching, refresh rate matching / av syncing and frame dropping/skipping.

    My device: Sunvell T95M

    Yeah, I got a working solution via now:

    1. (
    2.     sleep 5 # wait for the Bluetooth service to run at boot
    3.     hciconfig hci1 down # disable the internal Bluetooth controller
    4. ) &

    Be sure to enable the Bluetooth service in the settings to the service runs on boot. I run it in the background because I don't want to add 5 seconds to the boot time.

    I guess this works but the downside to this approach is that disabling and enabling the Bluetooth service will cause the internal Bluetooth controller to be up again. But this can be solved by rebooting I guess.

    To identify your internal Bluetooth controller just run hciconfig and check the MAC address, then connect the external Bluetooth adapter and run hciconfig again. Then reboot your device with the external adapter connected because the order could change and hci0 and hci1 could be reversed.

    I'm running LibreELEC on an Amlogic S905X box with built-in Wi-Fi and Bluetooth. The Wi-Fi and Bluetooth share a chipset (rtl8723bs) and I believe they share the antenna as well. When using both Bluetooth and Wi-Fi at the same time this is causing issues (both Wi-Fi and Bluetooth connections drop to unworkable low bitrates). Also the Bluetooth connection is quite bad in general (streaming music is quite choppy), especially when you get a little farther away from the TV box. To fix this I got an external USB Bluetooth dongle which performs great. Music streams perfectly, even at longer distances.

    However this causes an issue as every Bluetooth device found is listed twice in LibreELEC as each Bluetooth controller is picking them up. As a result I have no way of identifying which one to connect with. Therefore I wish to disable the internal Bluetooth controller so that one won't pick up any Bluetooth devices. I tried disabling it with:
    hciconfig hci1 down
    (hci1 is the internal Bluetooth controller)

    This appears to be working fine, however this is only temporary. After a reboot or manually disabling and enabling the Bluetooth service the internal Bluetooth controller is up again.

    So basically I'm looking for a way to completely disable the internal Bluetooth controller (hci1) while keeping the Wi-Fi on the same chipset enabled. Is "hciconfig hci1 down" the best way to do this? And is there a way to make this permanent?

    When installing to an S905X device it's not necessary to replace the dtb.img, which of course is very convenient.

    However what about updating? Will the device tree be updated automatically too (with the default dtb.img file inside the img.gz)? Or should we extract the dtb.img file and add it to the update folder?

    I bought a new box (a T95m with s905x chipset, 2GB RAM) with built-in Bluetooth hoping I would be able to use it with LibreELEC but unfortunately LibreELEC reports that no Bluetooth adapter is found.

    Would it be possible to get the internal Bluetooth working with LibreELEC somehow? Like by compiling drivers or something.

    I can get Bluetooth working with an external USB dongle btw that I also used on my RPi2.

    Just this weekend I installed build 010 to SD card and it appears to be running great, thanks a lot kszaq!

    I don't want to install LibreELEC to NAND so I can still boot to Android whenever needed. So I just want to make sure I got the updating procedure right if I want to keep running it from SD card. Are these the steps?

    1. $ cd /storage/.update
    2. $ wget ""
    3. $ wget "" #(or whichever version is relevant for your particular box)
    4. $ mv gxbb_p200_1G_1Gbit.dtb dtb.img
    5. $ reboot
    6. Or I could put the img.gz file and device tree file in the update folder through SAMBA and then reboot from the LibreELEC GUI for the same result I guess.

    And what is the differences between the img.gz file and the file by the way?

    I would like to enable and disable the Bluetooth service without going into the LibreELEC settings menu. What are my options for that?

    I will try to elaborate a little more: I want to enable/disable the Bluetooth service based on specific events in Kodi. For this I would like to use the plugin Kodi Callbacks. Basically the plugin can execute a script (Bash / shell / Python) or one of Kodi's builtin functions upon certain events.

    In addition it would also be nice if I can configure a button in Yatse (Android remote control app) to do the same thing. From Yatse it's easy

    If it's possible via one of the builtin functions, for example the RunPlugin function it would be fairly simply to set it up in both the Kodi Callbacks plugin and in Yatse.

    Thanks, then I guess I just have to buy one and hope to be lucky.

    In your example in the wiki you use the analog output of you Amlogic box as sink right (aml_m8)? If I may ask: what device do you have and what is the output of pactl list short sinks?