Skip to content

Instantly share code, notes, and snippets.

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 aaronmu/4f28dc6640c5a89db390c171b1442c01 to your computer and use it in GitHub Desktop.
Save aaronmu/4f28dc6640c5a89db390c171b1442c01 to your computer and use it in GitHub Desktop.
Fix Ubuntu 18.10 on Dell XPS 9570
#
# Run this from the Live USB.
#
#############################
# EDIT YOUR PARTITIONS HERE #
#############################
root_partition=/dev/nvm0n1p2
sudo mount ${root_partition} /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
sudo mount --bind /usr/ /mnt/usr
# Enable internet on chroot
sudo ln -s /etc/resolv.conf /mnt/etc/resolv.conf
sudo chroot /mnt
#
# INSIDE THE CROOT
#
sudo apt update
sudo apt upgrade
sudo apt install intel-microcode
sudo apt install nvidia-driver-390
# UPDATE KERNEL
# http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D
cd /tmp
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc8/linux-headers-4.19.0-041900rc8_4.19.0-041900rc8.201810150631_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc8/linux-headers-4.19.0-041900rc8-generic_4.19.0-041900rc8.201810150631_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc8/linux-headers-4.19.0-041900rc8-lowlatency_4.19.0-041900rc8.201810150631_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc8/linux-image-unsigned-4.19.0-041900rc8-generic_4.19.0-041900rc8.201810150631_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc8/linux-image-unsigned-4.19.0-041900rc8-lowlatency_4.19.0-041900rc8.201810150631_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc8/linux-modules-4.19.0-041900rc8-generic_4.19.0-041900rc8.201810150631_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc8/linux-modules-4.19.0-041900rc8-lowlatency_4.19.0-041900rc8.201810150631_amd64.deb
dpkg -i *.deb
# FIX INTEL i915
echo "options i915 enable_psr=0" > /etc/modprobe.d/i915.conf
exit
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment