I could workaround the issue:

Following the method discussed here:
https://forums.developer.nvidia.com/t/newly-installed-drivers-are-not-
found-when-nvidia-smi-is-called/82686/7

If you have Secure Boot enabled and the nvidia drivers installed, if you
try to disable Secure Boot you won't be able to load the GUI (in the
boot you stop before reaching GDM3). So you need to uninstall and purge
your drivers and their configuration.

```
sudo apt purge '^.*nvidia*'
sudo apt install ubuntu-desktop
sudo apt purge "^.*cublas*" 
sudo apt purge "^.*cuda*"
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old
sudo apt autoremove
sudo reboot now
```

While rebooting, disable Secure Boot and let then Ubuntu load
completely.

The in a terminal you can:
```
sudo ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
sudo reboot now
```

Let Ubuntu boot again, then everything should work correctly:

```
nvidia-smi
Mon Apr  6 14:27:26 2020       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64       Driver Version: 440.64       CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1650    Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   62C    P8     5W /  N/A |    385MiB /  3914MiB |      5%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      1309      G   /usr/lib/xorg/Xorg                            28MiB |
|    0      1775      G   /usr/lib/xorg/Xorg                           141MiB |
|    0      2066      G   /usr/bin/gnome-shell                          96MiB |
|    0      5204      G   ...AAAAAAAAAAAAAAgAAAAAAAAA --shared-files   107MiB |
+-----------------------------------------------------------------------------+
```


** Description changed:

+ *** WORKAROUND AVAILABLE ***
+ See comment 12: 
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-440/+bug/1871041/comments/12
+ 
+ 
+ *** Original Description ***
+ 
  I recently installed Ubuntu 20.04 on a Dell XPS 15, which has a GeForce
  GTX 1650 Mobile / Max-Q. I installed version 440 because it introduced
  support for this card:
  https://www.nvidia.com/download/driverResults.aspx/146189/en-us
  
  However, I don't think it's working correctly because if I run nvidia-
  smi, it cannot communicate with my card.
  
  ```
  $ nvidia-smi
  NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. 
Make sure that the latest NVIDIA driver is installed and running.
  ```
  
  nvidia-prime is on nvidia, and I rebooted since selecting it. However
  nvidia-config doesn't display the typical options you find when your
  nvidia card is active.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: nvidia-driver-440 440.64-0ubuntu3
  ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
  Uname: Linux 5.4.0-21-generic x86_64
  ApportVersion: 2.20.11-0ubuntu22
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Mon Apr  6 10:58:21 2020
  InstallationDate: Installed on 2020-04-03 (2 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200401)
  SourcePackage: nvidia-graphics-drivers-440
  UpgradeStatus: No upgrade log present (probably fresh install)
+ 
+ 
+ *** Update and likely underlying issue ***
+ 
+ Given that the workaround to disable Secure Boot made the driver work, I
+ suspect that the issue is actually that when the drivers are installed
+ and signed (with SB active), then the keys are either not imported
+ correctly or mokmanager was not triggered to be loaded upon next reboot.
+ This causes that even if trying to sign the dkms modules, SB finds them
+ to be untrusted and won't allow the nvidia driver to be loaded.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871041

Title:
  Nvidia drivers not working with GeForce GTX 1650 Mobile / Max-Q

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-440/+bug/1871041/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to