Skip to content

Instantly share code, notes, and snippets.

@leoheck
Last active December 17, 2022 11:11
Show Gist options
  • Save leoheck/c44e2167f0c90f56342aed3ba4299670 to your computer and use it in GitHub Desktop.
Save leoheck/c44e2167f0c90f56342aed3ba4299670 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
@alex8654
Copy link

alex8654 commented Feb 9, 2019

You don't need to do all this procedure, just press "e" when on ubuntu boot menu (can be the live installation media) and add nouveau.modeset=0 to your kernel options. It is this open source reverse engineered drives that causes all sort of trouble.

You don't need to update kernel to 4.19, it works perfectly fine with 4.18 that comes with ubuntu 18.10 as well. After installing ubuntu, again on boot screen ensure to disable nouveau and if you wish later you can install nvidia proprietary drives inside ubuntu using the update manager

@AllexisO
Copy link

AllexisO commented Apr 2, 2019

Hello. Can some one help me with instruction? Who can explain me what means "Run this from the Live USB." ? I should run this when Ubuntu is already installed? And where I can change this "root_partition=/dev/nvm0n1p2" ?
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment