Skip to content

Instantly share code, notes, and snippets.

@stuartsoft
Last active November 26, 2020 04:50
Show Gist options
  • Save stuartsoft/f6d9d9c7e89182687246682c048062f0 to your computer and use it in GitHub Desktop.
Save stuartsoft/f6d9d9c7e89182687246682c048062f0 to your computer and use it in GitHub Desktop.
Nvidia 440 drivers on Ubuntu 20.04 on Dell XPS
##Installing Ubuntu and getting the Nvidia Settings application to work
1) Install Ubuntu like normal. Select the option to install 3rd party drivers, and enter a secure boot password.
2) After install is complete, the machine will reboot. When the blue screen appears, select "Enroll MDK". Enroll the Cannonical Secure boot thingy. Then hit the option to reboot.
3) Once you're logged in to Ubuntu, open "Additional Drivers" and switch from the 440 metapackage driver to literally any other Nvidia driver.
Gotta do this because the Nvidia settings app appears to have problems after initial Ubuntu install
4) Reboot and open the grub menu. Select the advanced options, and boot using recovery mode. After unlocking disk encryption, hit the option for "Resume boot"
5) Once you're logged in again, open "Additional Drivers" and switch back to the original 440 driver that was originally selected.
6) Reboot
7) Logged in again, you should now be able to open the Nvidia Xserver settings and see a whole bunch of options on the left side.
8) Go to "X Server Display Configuration" on the left side, and check if "Synchronization" is on. If it's on, then you're done! If it's off, please continue...
##Setting the nvidia drm flag (Required to fix screen tearing)
The following solution was found here: https://askubuntu.com/questions/1194557/cant-force-prime-synchronization-screen-tearing
TY Doug!
You can read more about NvidiaDRM here: https://download.nvidia.com/XFree86/Linux-x86_64/396.51/README/kms.html
To paraphrase Doug, you'll need to:
9.a) (he says to do this, but in my experience, I didn't actually need to) `sudo update-initramfs -u`
9.b)Then add the kernel module flag to your grub configuration in /etc/default/grub. You can do this by adding `nvidia-drm.modeset=1` to the end of the GRUB_CMDLINE_LINUX_DEFAULT string.
9.c)Don't forget to:
`sudo update-grub`
Enabling OpenCL (for Folding@Home)
As mentioned in a few posts,
HERE (https://askubuntu.com/questions/796770/how-to-install-libopencl-so-on-ubuntu)
and HERE(https://foldingforum.org/viewtopic.php?nomobile=1&f=106&t=30836)
you will need to install ocl-icd-opencl-dev in order to get OpenCL support for the 1050.
The Ubuntu package can be found here: https://packages.ubuntu.com/focal/ocl-icd-opencl-dev
@stuartsoft
Copy link
Author

Edits after testing the install process

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