Last active
August 10, 2017 17:54
-
-
Save vonNiklasson/005d532cbf371e7dd6bc42153e3203d3 to your computer and use it in GitHub Desktop.
Fixes the HDMI-problem on Dell XPS 13 when running Ubuntu with the Display Adapter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change 4.10.0 to the appropriate version. | |
# This snippet is modified to work for 4.10.0 | |
# Taken from: | |
# https://bugs.freedesktop.org/show_bug.cgi?id=93578#c142 | |
sudo -i | |
apt-get install linux-source-4.10.0 | |
cd /usr/src | |
tar -jxf linux-source-4.10.0.tar.bz2 | |
cp -R ./linux-source-4.10.0/drivers/gpu/drm/i915 ./i915-usbc | |
cd i915-usbc | |
cat << EOF > dkms.conf | |
PACKAGE_NAME="i915" | |
PACKAGE_VERSION="usbc" | |
AUTOINSTALL=yes | |
REMAKE_INITRD=yes | |
DEST_MODULE_LOCATION="/updates" | |
BUILD_EXCLUSIVE_KERNEL="^4.10.*" | |
BUILT_MODULE_NAME[0]="i915" | |
EOF | |
sed -i 's#../../../platform/x86/intel_ips.h#../../linux-source-4.10.0/drivers/platform/x86/intel_ips.h#g' intel_pm.c | |
wget https://patchwork.freedesktop.org/patch/145853/raw/ -O /tmp/drm-i915.patch | |
patch -p5 < /tmp/drm-i915.patch | |
dkms add -m i915 -v usbc | |
dkms build -m i915 -v usbc | |
dkms install -m i915 -v usbc | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment