kodi 17 no HW acceleration then started under xinit/systemd

Hello

Need help or advice

I have compiled kodi 17 from source on CentOs 7.2
on system Elitegroup Q170-SF100 (V1.0)
http://www.ecs.com.tw/ECSWebSite/Product…40&LanID=0
GL82Q170 graphic chipset – intel q170 express chipset linux graphics driver – Intel HD 510 graphics

Linux Kernel 4.7.3 self-compiled with “i915.preliminary_hw_support=1” in kernel startup parameters .
Intel drivers taken from https://01.org/linuxgraphics/downloads/2…ack-recipe (i compiled only Libva – 1.7.3 and vaapi intel-driver – 1.7.3)
So after “i915.preliminary_hw_support=1” and intel libva i was able to build Kodi 17 without errors and with VAAPI support

Started from comand line in basic graphic user session GDM Kodi definitely use HW acceleration. I can see it then press button “o” during HD movi play. Smooth vidio and 5% to 8% main CPU usage depending of movie file.

Then i prepared systemd script, disabled GDM start, and emabled kodi start by “systemctl enable kodi”
Started from systemd kodi uses CPU up to 99-100% and video play becomes laggy.

Here is systemd service script just in case.

[root@htpc2 ~]# cat /etc/systemd/system/kodi.service
[Unit]
Description = Kodi Media Center

# if you don’t need the MySQL DB backend, this should be sufficient
After = systemd-user-sessions.service network.target sound.target

# if you need the MySQL DB backend, use this block instead of the previous
# After = systemd-user-sessions.service network.target sound.target mysql.service
# Wants = mysql.service

[Service]
User = igor
Group = igor
Type = simple
#PAMName = login # you might want to try this one, did not work on all systems
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch –exit-with-session /usr/local/bin/kodi-standalone — :1 -nolisten tcp vt7
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target