-
Notifications
You must be signed in to change notification settings - Fork 2
Development system setup
ToDO
If your computer gets into a boot loop after installation, boot your computer into recovery mode. Connect it by ethernet. Once in the recovery menu, enable network connection and then open a root terminal. Now add the cuda apt sources and install the nvidia-driver. See the first two steps of GPU Driver. After a reboot, the boot loop should be fixed.
By default the wi-fi driver is not installed. After installing Ubuntu (20.04), connect the laptop by ethernet. Run the following commands:
sudo apt-get update
sudo apt-get upgrade
It might be needed to run upgrade
multiple times with a reboot in between. The import package is the Hardware Enablement package(s) (HWE) of the kernel. So check the output of upgrade to be sure that HWE
package(s) are updated.
To get the correct NVIDIA GPU driver, first install the CUDA sources.
Setup the CUDA apt sources by the following commands (source):
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
Now install the newest NVIDIA driver
sudo apt-get install nvidia-driver-515 # Most current one at moment of writing
The NVIDIA driver(dedicated GPU) and AMD driver(Integrated GPU) can cause some freeze. To fix this update the kernel to minimal 5.16. You can check your kernel version by
uname -r
Make sure you have have the newest kernel installed via apt-get
and you rebooted after the last install. If kernel 5.16 is not yet
available from the default sources. It is needed to add a mainline
PPA.
sudo add-apt-repository ppa:tuxinvader/lts-mainline
Optional: sudo apt-get update
Because you are going to install a unsigned kernel, it is needed to disable secure boot. If you haven't disabled secure boot in the BIOS, you can disable it in Ubuntu.
sudo mokutil --disable-validation
This does require a reboot. During the reboot a blue menu shows up. Change the secure boot state to disabled.
Now the new kernel can be installed by the following command:
sudo apt-get install linux-generic-5.16
After a reboot the new kernel should be in use. You can check this with command provided above.
For the best performance, use Hybrid GPU mode. You can set it with the following command:
sudo prime-select on-demand
If you like to run it on NVIDIA only change on-demand
by nvidia
. For only intergrated GPU use intel
(Yes, even on machines with AMD CPU).