Kodi Community Forum
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server (/showthread.php?tid=231955)



RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-07-22

@fritsch @FernetMenta 

Guys, I don't know how to thank you! It seems to be working beautifully!
To Tell the truth, I don't know any differences in gbm, it works really well!!


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-22

(2018-07-22, 19:53)Rumpelstiltskin Wrote: @fritsch @FernetMenta 

Guys, I don't know how to thank you! It seems to be working beautifully!
To Tell the truth, I don't know any differences in gbm, it works really well!!
 Could you describe the problem again that you had before that GBM fixed?


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - bibi - 2018-07-22

Hi Fritsch and Fernetmenta,

My pi just died following an electricity cut.
Im using my laptop so far, but i cant find all i want for the video settings...
In the video menu while watching somerthin, i cant choose auto for deinterlacing and i dont have any evoluate upscaling algorythm like lanczos...
Is it normal ?
https://paste.kodi.tv/diricuhima

Bibi


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-22

(2018-07-22, 21:39)bibi Wrote: Hi Fritsch and Fernetmenta,

My pi just died following an electricity cut.
Im using my laptop so far, but i cant find all i want for the video settings...
In the video menu while watching somerthin, i cant choose auto for deinterlacing and i dont have any evoluate upscaling algorythm like lanczos...
Is it normal ?
https://paste.kodi.tv/diricuhima

Bibi

Not sure where to start - your log has nothing to do with the howto you just pasted in (including KWIN ... ).

"Auto" was removed years ago. Choose what the howto asks for (post 1)

Lanczos and friends will only be available if you actually "scale" something. Use HQ scaling when scaling above 20% is the default, means:

Screen: 1080p Video: 720p -> HQ available
Screen: 1080p Video 1080p -> No HQ available

as it would not make any sense to upscale a video that matches the output resolution with a large resource hungry convolution filter.

And finally: Your kodi version does not fit into this thread also.

For further questions, please open your own thread.


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - bibi - 2018-07-22

You're right, not the good poste, was deceived by the title of the point 1 which indicates krypton... Should have read the title of the post ^^.
Anyway you gave me all the answers i needed so thank you !

Bibi


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-22

(2018-07-22, 22:09)bibi Wrote: You're right, not the good poste, was deceived by the title of the point 1 which indicates krypton... Should have read the title of the post ^^.
Anyway you gave me all the answers i needed so thank you !

Bibi
 You are welcome :-) And as a long-term contributor you have special credits with me Tongue


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - User 29008 - 2018-07-23

@fritsch 

hey man, just followed your guide in terms of fixed edid, seems to be working fine according to dmesg output:

---
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-23-generic root=UUID=c3120b2b-f0e8-41e1-98f0-cdb7205663a1 ro quiet splash video=DP-3:1920x1080@50D drm_kms_helper.edid_firmware=DP-3:edid/edid.bin vt.handoff=1
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-23-generic root=UUID=c3120b2b-f0e8-41e1-98f0-cdb7205663a1 ro quiet splash video=DP-3:1920x1080@50D drm_kms_helper.edid_firmware=DP-3:edid/edid.bin vt.handoff=1
[    1.212925] [drm] drm_kms_firmware.edid_firmware is deprecated, please use drm.edid_firmware intead.
[    1.655070] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-3"
[    1.948448] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-3"
[    2.253386] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-3"
[    3.646102] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-3"
[    4.741728] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-3"
----

Just regarding that one message in terms of drm_kms_helper.... deprecated. Should I update the grub command line to drm.edid_firmware something ... ?

thanks,

boba


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-07-23

(2018-07-22, 20:00)fritsch Wrote:
(2018-07-22, 19:53)Rumpelstiltskin Wrote: @fritsch @FernetMenta 

Guys, I don't know how to thank you! It seems to be working beautifully!
To Tell the truth, I don't know any differences in gbm, it works really well!!
 Could you describe the problem again that you had before that GBM fixed?  

The problem was, if I was passing hdmi1 to hdmi2 and I went back to hdmi1, I lost the signal.

My Nuc (NUC7PJYH) has two Hdmi - only the first (HDMI-A1) is connected to Denon.
In Denon -> hdmi1 = Kodi, hdmi2 = sky;
if I wanted to watch Sky and later watch a movie with Kodi, I lost the video signal, and the only solution was to make a reboot


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-23

(2018-07-23, 11:55)boba23 Wrote: @fritsch 

hey man, just followed your guide in terms of fixed edid, seems to be working fine according to dmesg output:

---
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-23-generic root=UUID=c3120b2b-f0e8-41e1-98f0-cdb7205663a1 ro quiet splash video=DP-3:1920x1080@50D drm_kms_helper.edid_firmware=DP-3:edid/edid.bin vt.handoff=1
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-23-generic root=UUID=c3120b2b-f0e8-41e1-98f0-cdb7205663a1 ro quiet splash video=DP-3:1920x1080@50D drm_kms_helper.edid_firmware=DP-3:edid/edid.bin vt.handoff=1
[    1.212925][drm] drm_kms_firmware.edid_firmware is deprecated, please use drm.edid_firmware intead.
[    1.655070][drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-3"
[    1.948448][drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-3"
[    2.253386][drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-3"
[    3.646102][drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-3"
[    4.741728][drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-3"
----

Just regarding that one message in terms of drm_kms_helper.... deprecated. Should I update the grub command line to drm.edid_firmware something ... ?

thanks,

boba
 Yes. Take care that in "later version" of the kernel video in combination with drm_kms or drm.edid_firmware is sadly broken :-( - in short: choose what works.


RE: Intel VAAPI howto with Krypton v18 nightly based on Ubuntu 18.04 server - Rumpelstiltskin - 2018-07-23

(2018-07-22, 10:54)fritsch Wrote: Now copy the proptest binary to the directory /usr/local/bin/

Edit your systemd serivce to add before the ExecStar line:
Code:
ExecStartPre=/usr/local/bin/proptest -M i915 -D /dev/dri/card0 101 connector 103 1

sudo systemctl daemon reload
sudo reboot

kodi now needs to be set to "Use Limited Range" and your TV also to limited Range 
Hi @fritsch


I've been searching for documentation on the Internet for "probtest but I found almost nothing, I wanted to ask you something, what are these values about? 
Quote:105 content type:
          flags: enum
          enums: No Data=0 Graphics=1 Photo=2 Cinema=3 Game=4


Is it possible to also combine the right cinema mode to see if there can be any further improvement?

like so :
Quote:ExecStartPre=/usr/local/bin/proptest -M i915 -D /dev/dri/card0 101 connector 103 1 connector 105 3



RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - fritsch - 2018-07-24

Try or make a second start pre line. proptest is from libdrm test.


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - User 29008 - 2018-07-26

Alright, just wanted to report back on my adventures with my new rig, in short I am a happy camper now since everything seems to work.
I have to say, I wasn't going the easy way of just following fritschs howto and reinstalling ubuntu server, since I wanted to keep my linux desktop ... so I am now still on my years-old Kodibuntu foundation, upgraded to 18.04.1 Lubuntu base ;-)

- Using the openbox xsession of lubuntu and the respective autostart entries from this howto
- Struggled for days with lirc since it changed a lot compared to my previous setup (I am using a classic MCE remote and official MS USB receiver, plus my Antec case has imon display and IR as well, where I needed to disable the imon IR only and keep the display)  before the upgrade to 18.04 -> now all working fine as before, if anyone has similar troubles with lirc feel free to msg me .... I think I've seen it all now ;-)
- 10bit HEVC 4K now working like a charm, thanks a lot fritsch for all your work 
- 4K 50/60hz is working, though I could test the GUI only so far since I didn't have any 60hz 4k videos to test. Had to add modelines manually though, since for whatever reason 4K 50/60hz resolutions aren't added automatically in the handshake .... also, howto provided by fritsch
- Fixed EDID working fine as well, no more changing audio devices when kodi is on before handshake is done, again thanks fritsch for the howto on this

Take care,

boba


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - wsnipex - 2018-07-29

in case anyone needs it, here is a more generic script to set color range on GBM: https://github.com/wsnipex/xbmc/blob/866b62a5c0b49aa0e5457a77a08570a92301bfd1/tools/Linux/gbm-set-color-rage.sh
It requires the modetest binary(from libdrm), which just as proptest, sadly isn't packaged on ubuntu. We can provide a binary for interested users.


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Dr.Feelgood - 2018-08-09

Hi,
as i had some problems with LE i wanted to go back to Ubuntu Server version.
I downloaded the latest ubuntu-18.04.1 server iso and this one seems to lack some repositories.
Do i need to download another is or could you point me in right direction to get the repositories for below packages?
All other packages installed and distro-upgrade is OK ...

E: Package 'mesa-utils' has no installation candidate
E: Unable to locate package libmad0
E: Package 'lm-sensors' has no installation candidate
E: Unable to locate package libmpeg2-4
E: Package 'libnfs11' has no installation candidate
E: Package 'libva2' has no installation candidate
E: Unable to locate package vainfo
E: Package 'i965-va-driver' has no installation candidate
E: Package 'openbox' has no installation candidate


RE: Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server - Dr.Feelgood - 2018-08-09

(2018-08-09, 11:08)Dr.Feelgood Wrote: Hi,
as i had some problems with LE i wanted to go back to Ubuntu Server version.
I downloaded the latest ubuntu-18.04.1 server iso and this one seems to lack some repositories.
Do i need to download another is or could you point me in right direction to get the repositories for below packages?
All other packages installed and distro-upgrade is OK ...

E: Package 'mesa-utils' has no installation candidate
E: Unable to locate package libmad0
E: Package 'lm-sensors' has no installation candidate
E: Unable to locate package libmpeg2-4
E: Package 'libnfs11' has no installation candidate
E: Package 'libva2' has no installation candidate
E: Unable to locate package vainfo
E: Package 'i965-va-driver' has no installation candidate
E: Package 'openbox' has no installation candidate
i fixed this by adding the repos from https://help.ubuntu.com/lts/serverguide/configuration.html.en , strange that they were missing in /etc/apt/sources.list from the clean install of 18.04.1