Last active
December 17, 2022 11:11
-
-
Save leoheck/c44e2167f0c90f56342aed3ba4299670 to your computer and use it in GitHub Desktop.
Fix Ubuntu 18.10 on Dell XPS 9570
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
# | |
# 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
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!