This post will describe the installation and configuration of LibreElec
8.0.2 8.1.2 on the new Intel NUC7I5BNK. More details on this hardware can be found here. I have my setup working right now, but there are still a few glitches left on which I did not find a solution at the moment. Because this is fairly new hardware there is not yet much information to be found on the net. Below you will find my experiences. Thanks for reading this long post
I am coming from a Minix NEO X7 with Kodi 16.1 where the Kodi database is on a MySQL server on my Synology NAS. The setup of my hardware can be found in the drawing below. The Logitech Harmony Touch operates the Proximus STB, the HDMI matrix, the media-center and the Sonos system. No further explanation needed I think.
I know that the Intel NUC7I5BNK is new bleeding edge hardware. The reason I have chosen this NUC is that it supports HEVC10, 4K and some other ‘modern’ functions and formats. Therefore I expect that it will not be a painless installation.
I first started to upgrade Kodi 16.1 to 17.1 on my Android tablet. While upgrading the application the database was auto-magically converted to the 17.1 format.
The coverage of the remaining installation process can be found in the next chapters.
Before installing LibreElec 8.0.1 I modified some BIOS settings. Some in favor of the LibreElec installation and some in favor of my taste.
Updated BIOS to the latest version
- Setting “HDD activity LED” to “Disabled”. My HTPC is not a Christmas tree.
- Setting the“Primary video port” to “HDMI” and the “Secondary video port” to “None”. This makes pass-through on HDMI the most robuust in Kodi. Strange enough, in Kodi, I have to set my Audio device and pass-through device to "ALSA: HDA Intel PCH, MEI Panasonic-TV on Displayport #0" in stead of the expected "ALSA: HDA Intel PCH, MEI Panasonic-TV on HDMI #0".
- Disabled “Auto turn on TV” (HDMI CEC) in BIOS. I operate all my devices with the Logitech Harmony Touch remote.
- Setting “Fan Control Mode” to “Cool”. The NUC is in my TV furniture and maybe needs a little extra cooling. Noise levels are still very acceptable in “Cool” mode.
- Some settings I made to reduce the amount of flickering LED’s (image 1 and image 2) on the front panel. Again, my HTPC is not a Christmas tree.
- Setting “POST Function Hot-keys Displayed” to “Disabled”.
Settings to get Kodi to work on NUC7i5BNK
In Settings -> System -> Display -> Video calibration, I adjusted the overscan for my TV.Don't do this. Better adjust the over-scan on your TV. See this reply.
- In Settings -> LibreElec I enabled "Wait for network before starting Kodi". Otherwise Kodi does not connect to my MySQL database. I kept the “Maximum Wait Time” at 10 seconds.
- In Settings -> System -> Audio I set "Audio output device" to "ALSA: HDA Intel PCH, MEI Panasonic-TV on Displayport #0"
- In Settings -> System -> Audio I enabled "Allow pass-through".
- In Settings -> System -> Audio I set "Passthrough output device to "ALSA: HDA Intel PCH, MEI Panasonic-TV on Displayport #0"
- In Settings -> System -> Audio I enabled Dolby Digital (AC3) capable reciever (Sonos). DTS Capable receiver has been left switched off because Sonos does not support DTS.
- In Settings -> System -> Audio I disabled Dolby Digital (AC3) transcoding (Sonos).
Selecting the audio output device.
Audio output device set to "ALSA: HDA Intel PCH, MEI Panasonic on Displayport #0”
Passthrough output device set to"ALSA: HDA Intel PCH, MEI Panasonic on Displayport #0”
Other Kodi settings (Relative to my network)
- In Settings -> Services I enabled the webserver
- In Settings -> Services I configured WINS server to 192.168.1.248 (My NAS server who is WINS server)
- In Settings -> Services I configured Workgroup to "HOME", which is the name of my workgroup in my home network.
- In Settings -> Interface I set "Region default format" to "Central Europe" for Belgium.
- In Settings -> LibreElec I configured the wired network to DHCP. My DHCP server gives the NUC a fixed IP based on the MAC address.
- In Settings -> LibreElec I enabled SSH. Make sure you enable SSH when installing LibreElec.
- In Settings -> LibreElec I enabled Samba. Make sure you enable Samba when installing LibreElec.
Problems to solve
1. [SOLVED] Bluetooth.
When I enable Bluetooth in Settings -> LibreElec, Kodi says that there is no Bluetooth adapter found. I fact, after investigating the boot log, I seemed that the bluetooth kernel modules are missing and therefore not loaded. The command “dmesg | grep -i bluetooth” give the following results. The solution for this problem was given in the posts below: Download the files “ibt-12-16.ddc” and “ibt-12-16.sfi” and copy them to the directory /storage/.config/firmware/intel/ on the NUC. If the directory “/storage/.config/firmware/intel/” does not exists you have to create it. Make sure the owner, group and rights of the new kernel modules and the new directories are the same as the other kernel modules and directories. Restart the NUC and Bluetooth should be working now. I have my Logitech Dinovo Edge connected now.
The command “dmesg | grep -i bluetooth” now give the following results.
This issue is solved in LibreElec 8.0.2. The kernel modules are included now. See this reply.
2. [ONGOING] WiFi Firmware.
LibreElec is trying to load newer versions of the WiFi firmware (23-26). The “lsmod” command reveals that the WiFi kernel module is loaded. Apparently versions 23-26 are not supported yet. For the moment wifi is working fine with version 22 except for the one time crash of kodi when fiddling with the wifi interface in Kodi, which is described further on in this post. Latest wifi firmware is now 27. The latest wifi kernel modules for LibreElec can be found here. Don't have any problems left for about WiFi. Everything is working fine.
3. [ONGOING] Audio pass-through. Audio pass-through is working more or less right now, there are a few things that still bother me:
- [ONGOING] "ALSA: HDA Intel PCH, MEI Panasonic-TV on Displayport #0" port is listed in possible audio output devices in stead of the expected "ALSA: HDA Intel PCH, MEI Panasonic-TV on HDMI #0", this in spite of the BIOS settings. Anyhow, selecting "Displayport #0" from the list of possible audio output devices gives me GUI sound and pass-trough on the HDMI port. Also I don’t understand why the ports “HDMI #1” and “HDMI #2” are listed. I only have one full HDMI port on the NUC. Selecting HDMI #1 or HDMI #2 results in no audio at all (video and GUI).
Sometimes when Kodi starts I have no sound from whatever video in my library. The strange thing is that I have GUI sounds. A restart does not help. I have to choose Power down the system en start it again to get sound from my videos again.Problem is no longer there. I don't know if its due the the BIOS updates or LibreElec updates since I was not able to find the cause of this.
For the moment I have problems with passtrough using AC3 DD5.1 streams. I only have sound when I switch-off pass-through. Details about this phenomena start on page 3.The problems with passtrough using AC3 DD5.1 streams are more or less solved. For more details see this post.
The soundcard itself however is working fine. The output of “journalctl -a | grep -i sound” LibreElec first says that no sound cards are found but later on the sound system is loaded by systemd. In kodi.log the audio devices are enumerated.
4. [SOLVED] HDMI Firmware. If you are running HDMI firmware earlier than 1.66 you will have problems with the audio pass-through to an AV receiver that is HDMI 2.0 capable. After the update, which can be downloaded on the Intel Download Center, all audio formats should work fine.
Intel states only to install this update when a HDMI 2.0 capable device is connected to the NUC. All my other devices are HDMI 1.4 and 1.4a so I think I have no possibility to install this update. Anyone experience with this update? Is it solving some of the audio pass-through problems? I managed to do the update to version 1.66. For installing this update, you need Windows 10. I created a "Windows to Go" version on an external USB 3.0 hard-disk using "Win2USB". Use the latest Windows 10 PRO iso. This can be downloaded at Microsoft. After that I started windows on my NUC booting from this external drive. The free win2usb can't create an UEFI bootable disk. So when you want to boot from this disk you have to go into the BIOS and switch of UEFI boot and you have to select the external USB disk as boot device under "Legacy Boot". Restart the NUC and go into windows, do the updates and start the HDMI firmware update utility. Despite all my devices, except the NUC are HDMI 1.4a I was able to update the HDMI firmware to version 1.66.
5. [ONGOING] Other errors/fails/warnings found. Although the system is working right now there are still some error/warnings in the log-files that maybe need attention:
- Apparently the pulseaudio errors above seems to be a bug that is still open.
- kernel: [drm] failed to retrieve link info, disabling eDP. Don't now what this error means. Has something to do with direct rendering?
- Process '/sbin/hdparm -E8 /dev/sr' failed with exit code 2. I think this is normal for my configuration. LibreElec is looking for an optical drive which I do not have.
[pulseaudio] authkey.c: Failed to open cookie file '/var/run/pulse/.config/pulse/cookie': No such file or directory. Don't now why this error shows up. The file cookie exists in directory /var/run/pulse/.config/pulse/ and in /storage/.config/pulse. Only the file .pulse-cookie does not exist in both directories. More info here.
I made a symlink: "cd /storage/.config/pulse ; ln -s cookie .pulse-cookie". After a reboot the error messages are still there. Maybe the file cookie is not there yet or or the directory "/var" is not yet mounted when pulseaudio is looking for it.
- bluetoothd: Failed to obtain handles for "Service Changed" characteristic. Don't know what this error means. Bluetooth is working though.
- xorg-launch: Starting Xorg server with: "/usr/bin/Xorg -nolisten tcp vt01 -s 0 -noreset -allowMouseOpenFail -config /etc/X11/xorg-i915.conf"_XSERVTransTransNoListen: unable to find transport: tcp. Looks like an ongoing topic here.
- kernel: thermal thermal_zone0: failed to read out thermal zone (-5). More info here and here. Seems to be an ongoing problem also.
- Mediacenter connmand: Time request for server 2a03:b0c0:0:1010::3:4001 failed (101/Network is unreachable). It seems that LibreElec make a request to a timeserver on IPV6. I disabled IPV6 on the wired and on the wireless interface. Don't know why LibreElec is still sending out a request to a timeserver on IPV6.
- May 19 15:42:41 Mediacenter kernel: WARNING: You are using an experimental version of the media stack.
May 19 15:42:41 Mediacenter xorg-launch: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
Don't know what these two warnings mean and if they cause a malfunction of some parts of LibreElec. Will do more investigation.
- ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files.
- WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList".
WARNING: CSkinInfo: failed to load skin settings
Don't know what these error/warnings mean and if they cause a malfunction of some parts of LibreElec. Will do more investigation.
I hope there are other users on this forum with a NUC7I5BNK who are willing to share their experiences with me.