4K in Kodi - Linux Mint 18.3, i3-7100U

Bought an Azulle Inspire for my dad with an i3-7100U and 4K playback is choppy in Kodi. Running Linux Mint 18.3. Any tips for how to fix it?

Have you enabled any sort of hardware acceleration?

I haven’t messed with kodi in ages, but I know 4K playback can be achieved on a raspberry pi, so I can tell you that this is a configuration issue.

All hardware acceleration options in Kodi are enabled.

DISCLAIMER: I take no responsibility for what you do on your own system. This is what worked for me.

Add unstable Kodi repository and upgrade to Kodi 18

sudo add-apt-repository ppa:team-xbmc/unstable
sudo apt-get update
sudo apt-get install kodi

Upgrade Linux kernel to Linux 4.15.0-13-generic
sudo apt-get install linux-image-4.15.0-13-generic

Add apt-key to download intel-linux-graphics-installer in Mint

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-GROUP-KEY-ilg
sudo apt-key add RPM-GPG-GROUP-KEY-ilg

Fake lsb-release to report Ubuntu so the installer works.
sudo vi /etc/lsb-release

#DISTRIB_ID=LinuxMint
#DISTRIB_RELEASE=18.3
#DISTRIB_CODENAME=sylvia
#DISTRIB_DESCRIPTION="Linux Mint 18.3 Sylvia"
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"

Download and install updated 64-bit libpackagekit-glib2-18 .deb file required by intel-linux-graphics-installer

wget http://security.ubuntu.com/ubuntu/pool/main/p/packagekit/libpackagekit-glib2-18_1.1.5-2ubuntu1_amd64.deb
sudo dpkg -i libpackagekit-glib2-18_1.1.5-2ubuntu1_amd64.deb

Download, install, and run intel-linux-graphics-installer

wget -O intel64.deb https://download.01.org/gfx/ubuntu/16.10/main/pool/main/i/intel-graphics-update-tool/intel-graphics-update-tool_2.0.4_amd64.deb
sudo dpkg -i intel64.deb
sudo intel-linux-graphics-installer

Reboot
sudo reboot

Revert lsb-release changes
sudo vi /etc/lsb-release

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18.3
DISTRIB_CODENAME=sylvia
DISTRIB_DESCRIPTION="Linux Mint 18.3 Sylvia"