Skip to content

Instantly share code, notes, and snippets.

@ptheywood
Last active January 25, 2022 13:01
Show Gist options
  • Save ptheywood/6bdef9094f41d4e3f7d55cf8837ab0a0 to your computer and use it in GitHub Desktop.
Save ptheywood/6bdef9094f41d4e3f7d55cf8837ab0a0 to your computer and use it in GitHub Desktop.
# Fixing Nvidia 4.18+ Profiling on Ubuntu 19.04
1. Set module parmeter
```
echo 'options nvidia "NVreg_RestrictProfilingToAdminUsers=0"' | sudo tee -a /etc/modprobe.d/nvidia.conf
```
2. Rebuild intramfs.
```
sudo update-initramfs -u
```
## Ubuntu 1604
For 1604 it appears the module is not just nvidia but nvidia_418 (for the 418 driver.)
1. Set module parmeter
```
echo 'options nvidia-418 "NVreg_RestrictProfilingToAdminUsers=0"' | sudo tee -a /etc/modprobe.d/nvidia.conf
```
2. Rebuild intramfs.
```
sudo update-initramfs -u
```
@philn16
Copy link

philn16 commented Mar 12, 2021

nvidia.conf.tmp didn't work, but nvidia.conf did

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