first of all I started with setting up a headless Debian system with Kernel 4.9 from jessie backport repository. It runs without any x-server or window manager on an asrock j3710.
Then I thougt why not using temporarily to running kodi on it as long as my TV is available in the Network. Therefore I installed x-server, xinit and also Kodi 16.1 from repository.
On my first trial when I started a X-session with:
I got an error message because the installed mesa libs were out of date. So I updated them from backport repository to version 184.108.40.206, as you can see here: mesa-libs
With it the X-session with Kodi starts well, but the cpu becomes nearly 100%. Here is a screenshot made from htop while kodi is running:
uname -a gives the follwowing output:
Linux debianServer 4.9.0-0.bpo.2-amd64 #1 SMP Debian 4.9.18-1~bpo8+1 (2017-04-10) x86_64 GNU/Linux
Here you you can see the Kodi-Logfile. I couldn't find there any issue.
I recognise that the handling with HID-keyboard is really poor, against using web control via smartphone app. Also I read in the web, that it could be a problem, when the open gl lib (mesa) isn't running!?
Currently I've no idea how to debug this issues.