Setting up NVIDIA stuff on Pop!_OS

I had a lot of trouble with Ubuntu+NVIDIA which I solved by just installing PopOS. On Ubuntu I was getting small ‘hiccups’ all the time (my machine was freezing for a few seconds) and sometimes crashed under heavy video usage.

Technically PopOS is jus…


This content originally appeared on DEV Community and was authored by Talles L

I had a lot of trouble with Ubuntu+NVIDIA which I solved by just installing PopOS. On Ubuntu I was getting small 'hiccups' all the time (my machine was freezing for a few seconds) and sometimes crashed under heavy video usage.

Technically PopOS is just Ubuntu under the hood, so it shouldn't be better when compared to a well-configured Ubuntu. Maybe it's me sucking setting up the driver myself. Maybe the NVIDIA-specific ISO has some secret sauce not easily achievable. Probably both.

Before we start, here is the machine I'm using:

Fresh from the installation I already had NVIDIA settings installed and showing my card temperature, what a relief:

The PowerMizer setting was a little stubborn. I want to always be on "Prefer Maximum Performance", but it ended up losing my settings once I rebooted. I fixed by adding those two commands to run at startup:

nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=1'
system76-power profile performace

Next, let's proceed and get nvtop for verifying the GPU usage and glxgears to run something on it:

sudo apt install nvtop mesa-utils

Let's put CUDA on this thing and test it out with PyTorch:

$ sudo apt install nvidia-cuda-toolkit
$ python3 -m venv venv
$ . venv/bin/activate
$ pip install tensorflow
$ python3
>>> import torch
>>> torch.cuda.get_device_name(0)
'NVIDIA GeForce RTX 2060'


This content originally appeared on DEV Community and was authored by Talles L


Print Share Comment Cite Upload Translate Updates
APA

Talles L | Sciencx (2024-06-20T04:03:41+00:00) Setting up NVIDIA stuff on Pop!_OS. Retrieved from https://www.scien.cx/2024/06/20/setting-up-nvidia-stuff-on-pop_os/

MLA
" » Setting up NVIDIA stuff on Pop!_OS." Talles L | Sciencx - Thursday June 20, 2024, https://www.scien.cx/2024/06/20/setting-up-nvidia-stuff-on-pop_os/
HARVARD
Talles L | Sciencx Thursday June 20, 2024 » Setting up NVIDIA stuff on Pop!_OS., viewed ,<https://www.scien.cx/2024/06/20/setting-up-nvidia-stuff-on-pop_os/>
VANCOUVER
Talles L | Sciencx - » Setting up NVIDIA stuff on Pop!_OS. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/06/20/setting-up-nvidia-stuff-on-pop_os/
CHICAGO
" » Setting up NVIDIA stuff on Pop!_OS." Talles L | Sciencx - Accessed . https://www.scien.cx/2024/06/20/setting-up-nvidia-stuff-on-pop_os/
IEEE
" » Setting up NVIDIA stuff on Pop!_OS." Talles L | Sciencx [Online]. Available: https://www.scien.cx/2024/06/20/setting-up-nvidia-stuff-on-pop_os/. [Accessed: ]
rf:citation
» Setting up NVIDIA stuff on Pop!_OS | Talles L | Sciencx | https://www.scien.cx/2024/06/20/setting-up-nvidia-stuff-on-pop_os/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.