Linux Kodi 17 no HW acceleration then under xinit/systemd on CentOS7 [Intel HD 510]
#1
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
Reply
#2
Running this new setup on CentOS is selfmade pain.

No Debug Log no issue.

Provide: id | pastebinit

with the user "igor"
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
Hello

Thank you for stepping in

there is debug

[root@htpc2 userdata]# cat ./advancedsettings.xml
edsettings>
<loglevel>2</loglevel> <!-- Change this to "1" to hide the on-screen debug log text -->
<debug>
<extralogging>true</extralogging>
<setextraloglevel>128,256,16384,32768</setextraloglevel>
<showloginfo>true</showloginfo> <!-- Change this to "false" to hide the on-screen debug log text -->
</debug>
</advancedsettings>


and here is quite large log

http://pastebin.com/VYUBUbhZ
Reply
#4
i have disabled debug for everithing except of marked below

Component setting value
LOGSAMBA 32
LOGCURL 64
LOGFFMPEG 128 <-- -----
LOGDBUS 512
LOGJSONRPC 1024
LOGAUDIO 2048
LOGAIRTUNES 4096
LOGUPNP 8192
LOGCEC 16384 <---------------
LOGVIDEO 32768 <-------------------
LOGWEBSERVER 65536
Reply
#5
10:33:36.217 T:139774491171136 NOTICE: GL_VENDOR = VMware, Inc.
10:33:36.217 T:139774491171136 NOTICE: GL_RENDERER = Gallium 0.4 on llvmpipe (LLVM 3.8, 128 bits)
10:33:36.217 T:139774491171136 NOTICE: GL_VERSION = 2.1 Mesa 11.2.2
10:33:36.217 T:139774491171136 NOTICE: GL_SHADING_LANGUAGE_VERSION = 1.30

Install a proper intel gfx driver
Reply
#6
Ok
It looks like then i changed in systemd kodi.service file user igor to root. it started to work well and use HW acelerations

I will check it complitely later this evening and let know here.

Regarding "Running this new setup on CentOS is selfmade pain." it is just matter of personal preference - i like RHEL/CentOS etter then DEB related distriutions. I also have a lot of stuff running in this system and it is just easier for me to work with.
Reply
#7
Yes !!!
Thanks a lot!!!

now it is

11:59:53.584 T:139842321660224 NOTICE: GL_VENDOR = Intel Open Source Technology Center
11:59:53.584 T:139842321660224 NOTICE: GL_RENDERER = Mesa DRI Intel® HD Graphics 510 (Skylake GT1)
11:59:53.584 T:139842321660224 NOTICE: GL_VERSION = 3.0 Mesa 11.2.2
11:59:53.584 T:139842321660224 NOTICE: GL_SHADING_LANGUAGE_VERSION = 1.30

:-)

i need to work out what was whong to be 100% sure in config process.
Reply
#8
Don't start it as root, just make sure igor is member of video and audio group
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#9
Yes this evening i will make it back to odinary user.
Thanks folks !!!!
Reply
#10
I went home and tested it under user igor
All works fine. Except new Kody interface theme :-) what is i dont like

So my error was in inaccurate Intel drivers installation

Bellow marked by plus that i have succesfuly installed. Download link in first post of this thread.

[root@htpc2 intel-video]# ll /usr/local/src/intel-video/
итого 23036
drwxr-xr-x 15 igor igor 4096 фев 13 10:13 intel-gpu-tools-1.17
-rw-rw-r-- 1 igor igor 1930654 фев 13 00:28 intel-gpu-tools-1.17.tar.bz2
drwxr-xr-x 20 igor igor 4096 фев 13 01:37 libdrm-2.4.74+
-rw-rw-r-- 1 igor igor 1056909 фев 13 00:27 libdrm-2.4.74.tar.gz
drwxrwxr-x 9 transmission transmission 4096 фев 13 00:32 libva-1.7.3+
-rw-rw-r-- 1 igor igor 824490 фев 13 00:27 libva-1.7.3.tar.bz2
drwxrwxr-x 5 transmission transmission 4096 фев 13 01:24 libva-intel-driver-1.7.3+
-rw-rw-r-- 1 igor igor 1547040 фев 13 00:27 libva-intel-driver-1.7.3.tar.bz2
drwxr-xr-x 10 igor users 4096 фев 13 10:13 mesa-13.0.1
-rw-rw-r-- 1 igor igor 9154288 фев 13 00:27 mesa-13.0.1.tar.xz
drwxrwxr-x 9 igor igor 4096 фев 13 10:08 xf86-video-intel-2.99.917
-rw-rw-r-- 1 igor igor 2980541 фев 13 00:27 xf86-video-intel-2.99.917.tar.gz
drwxrwxr-x 30 transmission transmission 4096 фев 13 10:11 xorg-server-1.19.0
-rw-rw-r-- 1 igor igor 6051462 фев 13 00:27 xorg-server-1.19.0.tar.bz2
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 17 no HW acceleration then under xinit/systemd on CentOS7 [Intel HD 510]0