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.
(2018-04-14, 09:48)Rumpelstiltskin Wrote: [ -> ]Hi,

when I listen to music after about 10 minutes, the tv and audio turn off, here's the log

https://pastebin.com/tVNiskFF

What can be wrong?
Make sure that Kodi uses not the OS screensaver. Try one that comes with kodi like black or dim
(2018-04-14, 23:27)wouterbaake Wrote: [ -> ]Thanks for the excellent how-to.
One question: the systemd service does not seem to respond to a stop command.

What is the recommended way to stop or restart kodi from SSH or the CLI?
 U can try to stop it by : sudo service kodi stop
(2018-04-15, 15:54)FernetMenta Wrote: [ -> ]
(2018-04-14, 09:48)Rumpelstiltskin Wrote: [ -> ]Hi,

when I listen to music after about 10 minutes, the tv and audio turn off, here's the log

https://pastebin.com/tVNiskFF

What can be wrong?
Make sure that Kodi uses not the OS screensaver. Try one that comes with kodi like black or dim 
 With the dim run fine !!! It works fine but I wish I could see the screen if possibile
Hi guys,

just wanted to share with you my joy: look what is just arrived (at last)

Image

I'm spending the evening to install ubuntu 18.04 (server so I try it) then if you have any questions, I'm here
Hey @fritsch

sorry if I ever break "the boxes" Smile

as you know I just installed kodi 18 in ubuntu 18.04 , now I have a new problem: after about 20 minutes (random I think) the screen goes green and appears in the logs this message and nothing else 

CVaapi2Texture::Map: vaExportSurfaceHandle failed - Error: invalid VASurfaceID (6)

dpkg -l |grep mesa | pastebinit
DISPLAY=:0 vainfo | pastebinit
cat ~/.kodi/temp/kodi.log | pastebinit 
dmesg | pastebinit
id | pastebinit
amixer | pastebinit
(2018-04-28, 14:37)Rumpelstiltskin Wrote: [ -> ]Hey @fritsch

sorry if I ever break "the boxes" Smile

as you know I just installed kodi 18 in ubuntu 18.04 , now I have a new problem: after about 20 minutes (random I think) the screen goes green and appears in the logs this message and nothing else 

CVaapi2Texture::Map: vaExportSurfaceHandle failed - Error: invalid VASurfaceID (6)

dpkg -l |grep mesa | pastebinitDISPLAY=:0 vainfo | pastebinitcat ~/.kodi/temp/kodi.log | pastebinit dmesg | pastebinitid | pastebinitamixer | pastebinit
 I have a terrible jetlag and did not catch up yet what happened the last three days in kodi land. @yol from the message looks like your new code, but I suspect a problem in combination with the ffmpeg 4.0 update and some decoder flushing?
https://github.com/xbmc/xbmc/pull/13823 could be related - please retry with today's master
(2018-04-29, 10:55)yol Wrote: [ -> ]https://github.com/xbmc/xbmc/pull/13823 could be related - please retry with today's master
 Updated, seems to be stable; now I look a Film and I tell you

EDIT : Works fine!
Hey @fritsch @yol 

Another "problem" : if I switch from HDMI3 (kodi) to HDMI1 (sky) and return in Kodi, I lost the signal.
When I lost the signal : stop kodi service and start kodi service and kodi turn on but without audio.

I must reboot the system to obtain audio + video working again

here the LOG

What could be?
(2018-04-30, 10:29)Rumpelstiltskin Wrote: [ -> ]Hey @fritsch @yol 

Another "problem" : if I switch from HDMI3 (kodi) to HDMI1 (sky) and return in Kodi, I lost the signal.
When I lost the signal : stop kodi service and start kodi service and kodi turn on but without audio.

I must reboot the system to obtain audio + video working again

here the LOG

What could be?
 Fixate the EDID. Switching outputs means, you tell the Linux-Box that no TV is attached anymore ... as a workaround hard code the EDID via drm_kms_helper
Thanks for ur replay,

I followed your guide at post 1793

I have two hdmi output, one is linked into HDMI3 in my TV and the second in BD-DVD in my onkyo.
This is the output for ls -la in /sys/class/drm/card0*

i tried : 
/sys/class/drm/card0-HDMI-A-1/edid 

and 

/sys/class/drm/card0-HDMI-A-2/edid
 cat /etc/initramfs-tools/hooks/include-edid-data | pastebinit

Do you have another idea to advise me Smile ?

One more thing : when i do sudo update-initramfs -u i get this strange warning :
 
Quote:@nucbox:~$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-4.16.3-041603-generic
I: The initramfs will attempt to resume from /dev/sdc3
I: (UUID=cca4de02-4a74-11e8-b920-94c6911ca100)
I: Set the RESUME variable to override this.

I attach the dmesg LOG
I'd say: Use LibreELEC :-)

Even you follow my howto, you did most things terribly wrong, hehe - even the grub entry is not existent.

The error with the resume is wrong UUID in 
Code:
cat /etc/initramfs-tools/conf.d/resume 
RESUME=UUID=810a43dd-fec0-4d77-91ca-f79f5b7d76e5

Make sure it matches your swap partition, e.g.
[code]fritsch@t440s:~$ sudo blkid 
/dev/sda1: UUID="73BD-BA00" TYPE="vfat" PARTUUID="5b4b8aad-1238-4946-bee4-706ab64f7105"
/dev/sda2: UUID="25223c2c-2ab1-4c6c-add6-52eccf56756f" TYPE="ext4" PARTUUID="ad6c2e7a-6d2c-4bb6-9bd8-d1f11956f771"
/dev/sda3: UUID="8bf0674a-ec41-4f0c-9d0d-5bc0bcb06148" TYPE="ext4" PARTUUID="b67884ac-cafe-4771-8e8e-5d7d5485a5cf"
/dev/sda4: UUID="d26a038b-9b6c-4f3a-9e77-30ecfba61a47" TYPE="swap" PARTUUID="810a43dd-fec0-4d77-91ca-f79f5b7d76e5" <- See the SWAP line and it's UUID
I've tried following the 16.04 guide, but using 18.04 and Leia, and a couple of observations.

1. Without pinning, ubuntu gets in a mess at the install of kodi and kodi-bin, it seems to take some "kodi" things from the ubuntu repo and some from the nightly ppa. After a few times hitting the same roadblock, I renamed sources.list while installing leia, then changed it back afterwards (pinning looked too much work for a small problem) --edit adding v17 ppa didn't have this issue
2. Probably expected, but libnfs8 libva1 (should I add the xenial repo?) python-software-properties are not found\wrong for 18.04
3. Lirc doesn't work as it did under 16.04, I removed it and let the kernel driver take over, but am having a few keymap issues -- edit https://forum.kodi.tv/showthread.php?tid=326366 was the answer 

Obviously the guide is not written for either products I'm trying to install, so feel free to take the piss out of me for trying, or point out where I'm being an idiot.... Particularly if there is something obvious around using an HP MCE remote and fintec receiver I'm missing....
Do I need to do anything extra for Gemini Lake ? Use 18.04 and the latest kernel ? Had a quick go last night and there was no display so I tried Librelec and that worked fine (latest nightly)
(2018-05-04, 18:07)luna_s Wrote: [ -> ]Do I need to do anything extra for Gemini Lake ? Use 18.04 and the latest kernel ? Had a quick go last night and there was no display so I tried Librelec and that worked fine (latest nightly)
 Nobody knows - cause your "quick test" on "your hardware that only you have" did not include posting the required logfiles this thread kindly asks for.