Kodi Community Forum

Full Version: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I know this is not an nvidia thread of course, but I still thought this fits best here since nothing seemed broken and I just wanted to quickly see if this is a known problem with nvidia and your tutorial here, didn't seem worth it's own post. Thanks for the replies, I held off upgrading so far but wanted to get rid of this old system soon anyway (was waiting for HDMI 2.0 and proper hardware decode of H265) so it's probably time to go shopping for some kabylake/apollolake hardware.

To make this complete, my logs (sorry for not posting them from the beginning) but I guess the question is already answered.

cat ~/.kodi/temp/kodi.log | pastebinit > http://paste.ubuntu.com/23707113/
dmesg | pastebinit > http://paste.ubuntu.com/23707114/
id | pastebinit > http://paste.ubuntu.com/23707115/
amixer | pastebinit > http://paste.ubuntu.com/23707116/
DISPLAY=:0 vainfo | pastebinit > http://paste.ubuntu.com/23707117/
Quote:[ 1631.282914] drxk: Error -22 on get_lock_status
[ 1631.793188] drxk: Error -22 on get_lock_status
[ 1632.806386] drxk: Error -22 on get_lock_status
[ 1633.338842] drxk: Error -22 on get_lock_status
[ 1633.821074] drxk: Error -22 on get_lock_status
[ 1634.834418] drxk: Error -22 on get_lock_status
^^ that's totally broken. TV card?
Quote:18:50:13.770 T:140417711966592 DEBUG: Window Manager Name: Openbox
18:50:13.881 T:140417711966592 NOTICE: Using visual 0x27
18:50:13.881 T:140417711966592 ERROR: failed to initialize egl

That's not a problem.

Any real issue you have?
No it seems I have none, the TV card is a strange case not sure why this happens until it first gets a lock on a DVB-C channel. I managed to fix it at some point by compiling media_source myself but that doesn't seem to work anymore and it only seems to be a cosmetic problem, since it does work after the mentioned lock on first channel. Smile

But that is most certainly a story for a different thread! Big Grin
(2016-12-25, 14:48)alex.ba Wrote: [ -> ]Hi all,

I just setup a NUC KIT NUC5PPYH (Braswell) according to this guide. After the first boot I wanted to set the correct Display settings I was a bit surprised as all options under settings/systems/Display are greyed out. No chance to change Resolution or refresh rate. Never had that before on any system with that Display. Find all log files and a Screenshot attached.
Display is a 4K LG 55UH625V. I know that a 4K resolution would not work properly so I wanted to change to 1080P which has been done on this display with other Linux systems several times.

Thanks

http://www.bilder-upload.eu/show.php?fil...669479.jpg

kodi@kodi:~$ dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/23682167/

kodi@kodi:~$ DISPLAY=:0 vainfo | pastebinit
libva info: VA-API version 0.39.2
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
http://paste.ubuntu.com/23682168/

kodi@kodi:~$ cat ~/.kodi/temp/kodi.log | pastebinit
http://paste.ubuntu.com/23682169/

kodi@kodi:~$ dmesg | pastebinit
http://paste.ubuntu.com/23682170/

kodi@kodi:~$ id | pastebinit
http://paste.ubuntu.com/23682171/

kodi@kodi:~$ amixer | pastebinit
http://paste.ubuntu.com/23682172/


Have the same problem, when I connect my nuc box to my 4k lg tv, kodi resolution is set to 4096x2160p, with the option to change it greyed out, if I shut down the box and connected to a 1080p monitor - kodi changes to 1080p with the option to change it now available... I have updated to kernal 4.9 and intel drivers 13.1 but same problem.... Sad

I did install lubuntu 16.04 and all worked fine, but if you run the updates or install lubuntu 16.04.1, I have this problem, I think the problem could be with xorg / xserver as if I disable updates on xorg / xserver when installing from lubuntu 16.04 all seems to work fine, but as I have to install them after installing server 16.04 I keep getting this problem.
Try an xorg.conf in /etc/X11/xorg.conf like:

Code:
Section "Device"
Identifier "Device0"
Driver "intel"
VendorName "INTEL Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "HDMI1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080@50p" "[email protected]" "1920x1080@23p" "1920x1080@24p" "1920x1080@60p"
# "3840x2160@50p" "3840x2160@60p"
EndSubSection
EndSection

Section "Monitor"
Identifier "HDMI1"
HorizSync 14.0 - 150.0
VertRefresh 24.0 - 62.0
Option "PreferredMode" "1920x1080@50p"
Modeline "1920x1080@23p" 74.176 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
Modeline "1920x1080@24p" 74.250 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
Modeline "1920x1080@50p" 148.500 1920 2448 2492 2640 1080 1084 1094 1125 +hsync +vsync
Modeline "[email protected]" 148.352 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
Modeline "1920x1080@60p" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
#Modeline "3840x2160@50p" 586.61 3840 4136 4560 5280 2160 2161 2164 2222 -hsync +vsync
#Modeline "3840x2160@60p" 712.34 3840 4152 4576 5312 2160 2161 2164 2235 -hsync +vsync
EndSection

Make sure to change above's HDMI1 to whatever your output device is - you see in Xorg.0.log. It might be DP1 for newer HDMI 2.0 device or HDMI2 for others. Also see that the 4k@50 and 4k@60 modes are commented out - as HDMI 1.4 does not support them. If you need them (HDMI 2.0) just comment them in (bottom) and also in the Modes line above, by removing the #
(2016-12-31, 09:01)fritsch Wrote: [ -> ]Try an xorg.conf in /etc/X11/xorg.conf like:

Code:
Section "Device"
Identifier "Device0"
Driver "intel"
VendorName "INTEL Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "HDMI1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1920x1080@50p" "[email protected]" "1920x1080@23p" "1920x1080@24p" "1920x1080@60p"
# "3840x2160@50p" "3840x2160@60p"
EndSubSection
EndSection

Section "Monitor"
Identifier "HDMI1"
HorizSync 14.0 - 150.0
VertRefresh 24.0 - 62.0
Option "PreferredMode" "1920x1080@50p"
Modeline "1920x1080@23p" 74.176 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
Modeline "1920x1080@24p" 74.250 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
Modeline "1920x1080@50p" 148.500 1920 2448 2492 2640 1080 1084 1094 1125 +hsync +vsync
Modeline "[email protected]" 148.352 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
Modeline "1920x1080@60p" 148.500 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
#Modeline "3840x2160@50p" 586.61 3840 4136 4560 5280 2160 2161 2164 2222 -hsync +vsync
#Modeline "3840x2160@60p" 712.34 3840 4152 4576 5312 2160 2161 2164 2235 -hsync +vsync
EndSection

Make sure to change above's HDMI1 to whatever your output device is - you see in Xorg.0.log. It might be DP1 for newer HDMI 2.0 device or HDMI2 for others. Also see that the 4k@50 and 4k@60 modes are commented out - as HDMI 1.4 does not support them. If you need them (HDMI 2.0) just comment them in (bottom) and also in the Modes line above, by removing the #


Hi fritsch

I created the xorg.conf file with the information you supplied I just changed my PreferredMode to 1920x1080@60p and changed the Identifier to HDMI2 (even though my intel nuc box is connected to HDMI1... Eek ) and all is ok on my box... many thanks for your help, hope it also works for alex.ba .
I have an issue with aspect ratio, from about two weeks videos are stretched as in the screenshots above

https://www.dropbox.com/s/jwge6a6srzag1x...0.png?dl=0

https://www.dropbox.com/s/p95fepdkg5x1qk...1.png?dl=0

Also native 16:9 1080p videos are played with black bars.

On video settings View mode is in normal as always, set to "force 16:9" is a workaround only for native 16:9 videos...

I never had any problems so far

I have a baytrail j1900 with lubuntu 16.04 connected with a Samsung 46" 1920x1080 on hdmi.

dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/23728667/

DISPLAY=:0 vainfo | pastebinit
http://paste.ubuntu.com/23728668/

cat ~/.kodi/temp/kodi.log | pastebinit
http://paste.ubuntu.com/23728669/

dmesg | pastebinit
http://paste.ubuntu.com/23728670/

id | pastebinit
http://paste.ubuntu.com/23728671/

amixer | pastebinit
http://paste.ubuntu.com/23728674/

Thanks for your help
Please open another thread, you don't run the kodi version we support in this thread.
Ok, I did, please delete my post in this thread

Thanks
Quick question, if I wanted to move off the nightlies which repo should I change to? unstable? Will get the major beta and RC versions?
Currently: unstable
Is it possible to install latest libva-driver-intel 1.7.3?
Which feature do you need and which hw do you run?

For my apolla lake I am based on this mesa ppa https://launchpad.net/~paulo-miguel-dias...untu/pkppa

For libva / vaapi I rebuild from source.
I run on Intel NUC 4th gen. No need for special features, just question if latest drivers are already available.
wsnipex is currently building libva / libva-driver-intel version 1.7.3 into the vaapi ppa. But yeah, you don't need them on your hardware.