Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server
#2
Want to boot with AVR / TV powered off?
Have a look here: http://forum.kodi.tv/showthread.php?tid=...pid2148505 for Ubuntu and here: http://wiki.openelec.tv/index.php/Config...#tab=Intel for OpenELEC. This is considered an advanced task.

Upgrading from 15.10
 
Code:
sudo do-release-upgrade -d

after it is run through succesfully readd the ppas and now the crucial part:

Install the legacy xserver package and configure it to allow anybody to start the xserver
 
Code:
sudo apt-get install xserver-xorg-legacy
sudo dpkg-reconfigure xserver-xorg-legacy

Now edit: /etc/X11/Xwrapper.config
and append the line:
 
Code:
needs_root_rights=yes

After you updated / readded or enable the ppas (Only the kodi ppas are needed, vaapi not as 16.04 ships 1.7.0 already):
 
Code:
sudo apt-get update
sudo apt-get dist-upgrade

I want to use fritsch's home build kernel with the Video 16:235 mode and I understand what it does
Download the latest kernel / headers from here: http://fritsch.fruehberger.net/kernel/ and install these with sudo dpkg -i. Afterwards alter the autostart such that it ooks like (see the two xrandr commands, switching to full and then switching to fritsch's Video Range, which is not available on non patched kernels):
 
Code:
OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'`
xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Full"
/usr/bin/kodi --standalone
openbox --exit
Sources
FernetMenta's master: https://github.com/FernetMenta/xbmc/commits/master (ppa)

Known Issues
160626: Colorspace averaging issue
libva-driver-intel version 1.7.0 of Xenial has a color filter issue ( see: https://bugs.freedesktop.org/show_bug.cgi?id=94845 ), we use the wsnipex vaapi ppa to use 1.7.1
 
Code:
sudo apt-add-repository ppa:wsnipex/vaapi
sudo apt-get update
sudo apt-get dist-upgrade

170813 - Add dpms setting
Through to changes in kodi concering the screensaver inhibitation kodi does not stop the screensaver when it is running on normal menus - which is fully correct. Some people expect other behaviour though, but don't want to change the relevant systemwide settings. Therefore I added xset -dpms to the openbox startup command.

171022 - Change systemd startup file
Added dependency on dbus.service - this is needed since Ubuntu 17.10

180521 - Adjust to 18.04
Changed some packages, made a notice for AMD users.

180527 - AMD users
AMD users that want to use kodi v18 with vaapi (Take care: v17 won't work), you need to install mesa 18.0.1 or later. You can do this via Paulo's ppa:
 
Code:
sudo add-apt-repository ppa:paulo-miguel-dias/pkppa
sudo apt-get update
sudo apt-get dist-upgrade
after following above howto. If you run a vega or later - you need a drm-next kernel + firmware not yet in linux-firmware git -> 4.18 will be the first kernel with full VEGA M support out of the box / make sure to update firmware.

180601 - v17 users:
If usb mounting does not work, please install udevil. For v18 and later udisks2 is properly working.

180929:
Changed iso to match 18.04.1 server iso (thx @tutu )

190130:
Changed the ppa link to 18 stable. We are live now.

190620:
Added Information for AMD users to properly install mesa-va-drivers and amdgpu / radeon drivers.

200209:
Added information about very modern intel gpus which are not supported by the intel-xorg driver anymore nor by ubuntu 18.04.[/b]

230512:
If you are using the iHD drivers for vaapi, make sure to add the kodi user to the render group: adduser kodi render
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply


Messages In This Thread
RE: New Era: VAAPI with EGL interoperation - by fritsch - 2015-07-12, 20:07
Live TV broken again? - by schamane - 2016-02-29, 19:56
Random crashes - by hal2100 - 2016-03-08, 22:03
Strange Behaviour - by MicTie - 2016-12-07, 10:46
Working lirc with mce remote - by fr1day - 2019-08-10, 17:36
Logout Mark Read Team Forum Stats Members Help
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server18