Skip to content

Instantly share code, notes, and snippets.

@vonNiklasson
Last active August 10, 2017 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vonNiklasson/005d532cbf371e7dd6bc42153e3203d3 to your computer and use it in GitHub Desktop.
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
# 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