<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [GLK] no signal after switch resolution from 1080p@23.98"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105887#c102">Comment # 102</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [GLK] no signal after switch resolution from 1080p@23.98"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105887">bug 105887</a>
              from <span class="vcard"><a class="email" href="mailto:stefano.ruzzon@icloud.com" title="fatez <stefano.ruzzon@icloud.com>"> <span class="fn">fatez</span></a>
</span></b>
        <pre>(In reply to Ingo Fischer from <a href="show_bug.cgi?id=105887#c101">comment #101</a>)
<span class="quote">> I came here with the same problem (J5005 ASRock board, occasional HDMI
> connection problems with Ubuntu 18.04) but little to no knowhow about
> kernel-patching but I thought it might be a good place to start diving a bit
> deeper. 

> Can someone explain to me how I can apply the patch from from
> <a href="https://patchwork.freedesktop.org/patch/229363/">https://patchwork.freedesktop.org/patch/229363/</a> right now on an up-to-date
> Ubuntu 18.04 system?
> How can I follow progress to see when the patch will be merged into mainline
> (will it be merged?)?</span >

Although it is not the correct place to ask for a guide, I do so (If it's just
the first time you have to install some things):

- sudo apt install git flex bison bc libssl-dev gawk libudev-dev
ocl-icd-opencl-dev libpci-dev libelf-dev python2.7 libncurses-dev fakeroot
kernel-wedge binfmt-support ksh lsscsi binfmt-support libpcre16-3 libpcre3-dev
libpcre32-3 libpcrecpp0v5 libsepol1-dev libattr1-dev libblkid-dev libpcre16-3
libpcre3-dev libpcre32-3 libpcrecpp0v5 libselinux1-dev libsepol1-dev uuid-dev
debugedit libarchive13 libdw1 liblua5.2-0 liblzo2-2 libnspr4 libnss3 librpm8
librpmbuild8 librpmio8 librpmsign8 rpm rpm-common rpm2cpio spl-dkms

- sudo git clone --depth 1 --single-branch --branch v4.17.2
git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack
v4.17.2

- cd v4.17.2
- sudo wget
<a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0001-base-packaging.patch">http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0001-base-packaging.patch</a>
- sudo wget
<a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0002-UBUNTU-SAUCE-add-vmlinux.strip-to-BOOT_TARGETS1-on-p.patch">http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0002-UBUNTU-SAUCE-add-vmlinux.strip-to-BOOT_TARGETS1-on-p.patch</a>
- sudo wget
<a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0003-UBUNTU-SAUCE-tools-hv-lsvmbus-add-manual-page.patch">http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0003-UBUNTU-SAUCE-tools-hv-lsvmbus-add-manual-page.patch</a>
- sudo wget
<a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0004-UBUNTU-SAUCE-no-up-disable-pie-when-gcc-has-it-enabl.patch">http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0004-UBUNTU-SAUCE-no-up-disable-pie-when-gcc-has-it-enabl.patch</a>
- sudo wget
<a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0005-debian-changelog.patch">http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0005-debian-changelog.patch</a>
- sudo wget
<a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0006-configs-based-on-Ubuntu-4.17.0-3.4.patch">http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17.2/0006-configs-based-on-Ubuntu-4.17.0-3.4.patch</a>
- Download the patch from <a href="https://patchwork.freedesktop.org/patch/229363/">https://patchwork.freedesktop.org/patch/229363/</a> and
rename in i915.patch

- sudo patch -p1 < 0001-base-packaging.patch 
- sudo patch -p1 <
0002-UBUNTU-SAUCE-add-vmlinux.strip-to-BOOT_TARGETS1-on-p.patch
- sudo patch -p1 < 0003-UBUNTU-SAUCE-tools-hv-lsvmbus-add-manual-page.patch
- sudo patch -p1 <
0004-UBUNTU-SAUCE-no-up-disable-pie-when-gcc-has-it-enabl.patch
- sudo patch -p1 < 0005-debian-changelog.patch
- sudo patch -p1 < 0006-configs-based-on-Ubuntu-4.17.0-3.4.patch
- sudo patch -p1 < i915.patch

- sudo chmod a+x debian/rules
- sudo chmod a+x debian/scripts/*
- sudo chmod a+x debian/scripts/misc/*
- sudo fakeroot debian/rules clean
set do_zfs = false in debian.master/rules.d/amd64.mk,
- sudo fakeroot debian/rules binary-headers binary-generic binary-perarch</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>