Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server

I would like to update this post because like me maybe he has the latest NUC model and he's gone crazy.
So I've solved it using a couple of "tricks" that I don't like but that work

I hope that the user (and that I thank him again with all my heart for his infinite patience and goodness) @fritsch does not want to shoot me and that if maybe I'm saying crap to correct me and I try to summarise the steps I have taken (I hope to remember them in the correct order):

-1.) Hardware and software :
       - NUC10i7FNH
       - OS Ubuntu Server 19.10
       - Kernel : 5.5.8-050508-generic

0.) Basic Installation and script tuning
Quote:sudo apt-get install ssh software-properties-common xorg xserver-xorg-legacy alsa-utils mesa-utils git-core librtmp1 libmad0 lm-sensors libmpeg2-4 avahi-daemon libnfs12 libva2 vainfo  intel-media-va-driver-non-free linux-firmware dbus-x11 udisks2 openbox pastebinit udisks2 xserver-xorg-video-intel  xserver-xorg-video-intel
sudo apt-get dist-upgrade 

This is really very important for my system otherwise the hardware acceleration doesn't work.
sudo sh -c "echo 'LIBVA_DRIVER_NAME=iHD' >> /etc/environment"

sudo chmod -R 777 /dev/dri
sudo chmod -R 777 /dev/dri/*

sudo nano etc/modprobe.d/i915.conf
Quote:options i915 enable_guc=2 enable_psr=0

sudo apt remove gdm3
sudo apt remove pulseaudio

Allow "everyone" to start the Xserver
Quote:sudo dpkg-reconfigure xserver-xorg-legacy ->everyone
sudo nano /etc/X11/Xwrapper.config -> needs_root_rights=yes

cat /etc/X11/xorg.conf.d/20intel.conf
Quote:Section "Device"
  Identifier  "Device0"
  Driver      "intel"
  VendorName  "INTEL Corporation"
  Option "AccelMethod" "sna"
  Option "TripleBuffer" "false"
  Option "TearFree" "false"
  Option "DRI" "3"
Section "Extensions"
  Option "Composite" "Disable"

sudo adduser kodi
sudo usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,disk kodi

sudo nano /etc/polkit-1/localauthority/50-local.d/custom-actions.pkla
Quote:[Actions for kodi user]
[Untrusted Upgrade]
sudo nano /etc/systemd/system/kodi.service
Description = kodi-standalone using xinit
Requires = dbus.service
After = systemd-user-sessions.service
User = kodi
Group = kodi
Type = simple
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/openbox-session -- :0 -nolisten tcp vt7
Restart = on-abort
WantedBy =
sudo nano /etc/security/limits.conf
Quote:kodi             -       nice            -1

1.) Now we install the kodi in nightly version:
Quote:sudo add-apt-repository ppa:team-xbmc/xbmc-nightly
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install kodi kodi-x11
As we use openbox as our display manager, we need to auto start kodi, therefore create:
Quote:sudo mkdir -p /home/kodi/.config/openbox
sudo touch /home/kodi/.config/openbox/autostart
sudo chown kodi:kodi /home/kodi/.config -R

cat /home/kodi/.config/openbox/autostart
Quote:OUTPUT=`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'`
xrandr -display :0 --output $OUTPUT --set "Broadcast RGB" "Full"
xsetroot #000000
xset s off -dpms
/usr/bin/kodi --standalone
while [ $? -ne 0 ]; do
/usr/bin/kodi --standalone
openbox --exit

And in my system I also had to update the graphics drivers
Quote:sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt update
sudo apt upgrade

@fritsch if I said nonsense or if the installation history is not correct, feel free to intervene and fix Smile

thank you all

inxi :
Quote:System:    Host: kodi Kernel: 5.5.8-050508-generic x86_64 bits: 64 compiler: gcc v: 9.2.1 Console: tty 0
           Distro: Ubuntu 19.10 (Eoan Ermine)
Machine:   Type: Mini-pc System: Intel Client Systems product: NUC10i7FNH v: K61081-302 serial: <root required>
           Mobo: Intel model: NUC10i7FNB v: K61360-302 serial: <root required> UEFI: Intel v: FNCML357.0038.2020.0131.1422
           date: 01/31/2020
CPU:       Topology: 6-Core model: Intel Core i7-10710U bits: 64 type: MT MCP arch: N/A L2 cache: 12.0 MiB
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38399
           Speed: 3464 MHz min/max: 400/4700 MHz Core speeds (MHz): 1: 3585 2: 3593 3: 3501 4: 3598 5: 3500 6: 3560 7: 3576
           8: 3554 9: 3567 10: 3530 11: 3501 12: 3525
Graphics:  Device-1: Intel driver: i915 v: kernel bus ID: 00:02.0
           Display: server: 1.20.7 driver: intel tty: 229x40
           Message: Advanced graphics data unavailable in console. Try -G --display
Audio:     Device-1: Intel driver: snd_hda_intel v: kernel bus ID: 00:1f.3
           Sound Server: ALSA v: k5.5.8-050508-generic
Network:   Device-1: Intel Wireless-AC 9462 driver: iwlwifi v: kernel port: 3000 bus ID: 00:14.3
           IF: wlp0s20f3 state: down mac: xx:xx:xx:xx:xx:xx
           Device-2: Intel Ethernet I219-V driver: e1000e v: 3.2.6-k port: efa0 bus ID: 00:1f.6
           IF: eno1 state: up speed: 1000 Mbps duplex: full mac: xx:xx:xx:xx:xx:xx
           IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
Drives:    Local Storage: total: 18.65 TiB used: 8.65 TiB (46.4%)
           ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 1TB size: 931.51 GiB
           ID-2: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB size: 465.76 GiB
           ID-3: /dev/sdb type: USB vendor: Western Digital model: WD Elements 10A8 size: 931.48 GiB
           ID-4: /dev/sdc type: USB vendor: Seagate model: ST4000LM024-2AN17V size: 3.64 TiB
           ID-5: /dev/sdd type: USB vendor: Seagate model: ST4000LM024-2AN17V size: 3.64 TiB
           ID-6: /dev/sde type: USB vendor: Western Digital model: WD My Passport 2627 size: 4.55 TiB
           ID-7: /dev/sdf type: USB vendor: Western Digital model: WD My Passport 2627 size: 4.55 TiB
Partition: ID-1: / size: 107.08 GiB used: 31.80 GiB (29.7%) fs: ext4 dev: /dev/sda2
Sensors:   System Temperatures: cpu: 47.0 C mobo: 27.8 C
           Fan Speeds (RPM): N/A
Info:      Processes: 366 Uptime: 16h 21m Memory: 31.20 GiB used: 12.90 GiB (41.3%) Init: systemd runlevel: 5 Compilers:
           gcc: 9.2.1 Shell: bash v: 5.0.3 inxi: 3.0.36

dpkg -l |grep mesa | pastebinit
DISPLAY=:0 vainfo | pastebinit Note that I had to make a direcotry and copy this file "" into it...
cat ~/.kodi/temp/kodi.log | pastebinit
dmesg | pastebinit
id | pastebinit
amixer | pastebinit
cat /var/log/Xorg.0.log | pastebinit
Sorry for grammatical errors, use an online translator

Messages In This Thread
Live TV broken again? - by schamane - 2016-02-29, 19:56
Random crashes - by hal2100 - 2016-03-08, 22:03