Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server
Fritsch, underneath piece of code might be a valuable addition for your wiki. When you boot your Intel system without a monitor connected it will not receive a valid edid. Kodi will not accept this (xrandr erorr?)

When your system is set-up according the wiki it is working fine, however when you use suspend and you have a habit of not always having a TV on (various reasons), it might happen that you end up with a black screen until you force an action that resets the screen by acquiring the edid and sending a new resolution to the TV so it gets an image again. To avoid this is to use a custom/downloaded edid.
When you use Intel (or AMD open source) it is written a lot on the net that Intel does not support custom edid. After some searching I came across some howto's not for Ubuntu, but specifying howto do this with KMS and Ubuntu. Underneath the short howto followed by the sources:

I am not a howto writer so I am doing my best to share this info with you all.

General:
Intel, Nouveau, ATI and AMDGPU drivers already enable KMS automatically for all chipsets, so you need not install it manually.
The proprietary NVIDIA driver supports KMS (since 364.12), which has to be manually enabled.
The proprietary AMD Catalyst driver does not support KMS. In order to use KMS you have to replace it with the open-source ATI driver.

First
Get your active connection interface. OpenElec has described how to find you active ports:
Code:
ls /sys/class/drm

Then check which is connected:
Code:
cat /sys/class/drm/card0-HDMI-A-1/status

Second
Get your edid. This is described by Kodi forums, no need to copy again here:
http://kodi.wiki/view/Creating_and_using..._EDID_file

Third
Save you edid in the firmware folder in ubuntu.
This folder needs to be created:
Code:
sudo mkdir /lib/firmware/edid

Then copy your edid to the newly created edid folder
Code:
sudo mv ~/your edid location/edid.bin /lib/firmware/edid/edid.bin

Fourth
Open your grub settings:
Code:
sudo gedit /etc/default/grub

The add/change the following type of line:
Code:
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX_DEFAULT="drm_kms_helper.edid_firmware=HDMI-A-1:edid/AVR_TV_Samsung.bin"

Save the file and run a grub update:
Code:
sudo update-grub

Fifth
Reboot and all should be working without the need of turning your AVR/TV on and kodi will start/work. Also when resuming from suspend when suspended on a "strange resolution"

Any recommendations of advises are welcome.

https://wiki.ubuntu.com/Kernel/KernelBootParameters
https://wiki.archlinux.org/index.php/ker...de_setting
http://kodi.wiki/view/Creating_and_using..._EDID_file
http://wiki.openelec.tv/index.php/Config...#tab=Intel
Reply


Messages In This Thread
Live TV broken again? - by schamane - 2016-02-29, 19:56
Random crashes - by hal2100 - 2016-03-08, 22:03
RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - by tudstudent - 2016-08-04, 16:06
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