I'm running latest Ubuntu 18.04 with stock Linux kernel 4.15.0-23-generic and have a problem (HDMI is not working occasionally).
There is a related issue already: https://bugs.freedesktop.org/show_bug.cgi?id=105887
And here is the patch of the intel display driver as a diff fixing the problem: https://patchwork.freedesktop.org/patch/229363/
I would like to recompile my kernel / display driver with that patch and have some problems as I did not recompile anything Kernel related yet:
How do I get the exact Ubuntu Kernel source, including the intel display drivers so I can apply the patch above? What are the steps to recompile and install the modified Kernel / Kernel drivers into my system (with as as little configuration as necessary)?
Managed to get the Kernel source related to Ubuntu 18.04:
git clone git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git
The patch from https://patchwork.freedesktop.org/patch/229363/ cannot be applied - seems its based on a different Kernel:
$ git apply --stat V2-drm-i915-glk-Add-Quirk-for-GLK-NUC-HDMI-port-issues..patch drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_ddi.c | 8 ++++++++ drivers/gpu/drm/i915/intel_display.c | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+) gustavo /home/ifischer/src/ubuntu-bionic master [~] $ git apply --check V2-drm-i915-glk-Add-Quirk-for-GLK-NUC-HDMI-port-issues..patch error: patch failed: drivers/gpu/drm/i915/intel_ddi.c:1800 error: drivers/gpu/drm/i915/intel_ddi.c: patch does not applygit clone git://kernel.ubuntu.com/ubuntu/ubuntu-bionic.git