PRIME on demand mode uses the wrong GPU

Bug #1900137 reported by Alberto Milone
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-drivers-common (Ubuntu)
Fix Released
High
Alberto Milone

Bug Description

If you selected "nvidia" (performance) mode in the past, selecting on-demand mode will not remove the xorg configuration file, and the NVIDIA GPU will remain the primary GPU (whereas the integrated GPU should be the primary one).

DISPLAY=:1 __NV_PRIME_RENDER_OFFLOAD=0 __GLX_VENDOR_LIBRARY_NAME="" glxinfo | grep renderer

OpenGL renderer string: Quadro T2000 with Max-Q Design/PCIe/SSE2

Changed in ubuntu-drivers-common (Ubuntu):
importance: Undecided → High
Revision history for this message
Alex Tu (alextu) wrote :

A verification result on a laptop with Nvidia GPU that supports runtime pm.
It looks good.

01:00.0 3D controller [0302]: NVIDIA Corporation TU117GLM [Quadro T2000 Mobile / Max-Q] [10de:1fb8] (rev a1)

the ubuntu-drivers-common was from:
 - https://launchpad.net/~alextu/+archive/ubuntu/nvidia-drivers-testing/+sourcepub/11671516/+listing-archive-extra
 - https://git.launchpad.net/~alextu/+git/ubuntu-drivers-common/commit/?id=32cc96ebb3aa82af5798ac426947c2e33400699f

nvidia-prime : 0.8.15
nvidia-driver-450 : 450.80.02-0ubuntu1

verified steps:

 - ubuntu@u-Precision-5550:~$ DISPLAY=:0 __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | pastebinit
https://paste.ubuntu.com/p/MXwVdc9Jn4/

 - ubuntu@u-Precision-5550:~$ DISPLAY=:0 __NV_PRIME_RENDER_OFFLOAD=0 __GLX_VENDOR_LIBRARY_NAME="" glxinfo | pastebinit
https://paste.ubuntu.com/p/N4pSt3c4H6/

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-drivers-common - 1:0.8.6.1

---------------
ubuntu-drivers-common (1:0.8.6.1) groovy; urgency=medium

  * UbuntuDrivers/detect.py:
    - Assume the NVIDIA packages to be non-free (LP: #1899630).
  * gpu-manager.{c|py}:
    - Handle the xorg conf file in all supported PRIME
      scenarios (LP: #1900137).
  * tests/test_ubuntu_drivers.py,
    tests/gpu-manager.py:
    - Expect a xorg conf file to be created in on-demand
      mode (11-nvidia-offload.conf) in the test suite.
    - Fix test cases now that nvidia is marked as non-free.

 -- Alberto Milone <email address hidden> Fri, 16 Oct 2020 16:51:44 +0200

Changed in ubuntu-drivers-common (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.