Backport PRIME switching fixes to Ubuntu 18.04

Bug #1797147 reported by Alberto Milone on 2018-10-10
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
nvidia-prime (Ubuntu)
High
Unassigned
Bionic
High
Alberto Milone
ubuntu-drivers-common (Ubuntu)
Undecided
Unassigned
Bionic
High
Alberto Milone

Bug Description

SRU Request:

[Impact]
A recent update (LP: #1778011) in 18.04 has restored the PRIME switching mechanism in Gdm 3 only, while still leaving out support for other login managers (such as Lightdm, and SDDM).

In addition to this, we should restore the default pci power control profile for the dGPU when re-enabling performance mode, as we do in Ubuntu 18.10.

[Test Case]
1) Make sure that you are using a login manager such as Lightdm or SDDM.

2) Enable the bionic-proposed repository, and install the new "ubuntu-drivers-common", and the new nvidia-prime.

3) Make sure the nvidia packages are installed and working, and enable power saving mode:
sudo prime-select intel

4) Log out, log back in, and check that the nvidia kernel module is not loaded:
lsmod | grep nvidia

5) Select performance mode:
sudo prime-select nvidia

6) Log out, and log back in

7) Check if the nvidia driver loaded:
lsmod | grep nvidia

[Regression Potential]
Low, as switching already fails in 18.04, since X is started before udev adds back the dGPU.

Changed in ubuntu-drivers-common (Ubuntu):
status: New → In Progress
Changed in nvidia-prime (Ubuntu):
status: In Progress → Fix Released
assignee: Alberto Milone (albertomilone) → nobody
Changed in nvidia-prime (Ubuntu Bionic):
assignee: nobody → Alberto Milone (albertomilone)
importance: Undecided → High
status: New → In Progress
Changed in ubuntu-drivers-common (Ubuntu):
status: In Progress → Fix Released
Changed in ubuntu-drivers-common (Ubuntu Bionic):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Alberto Milone (albertomilone)
description: updated

Hello Alberto, or anyone else affected,

Accepted ubuntu-drivers-common into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-drivers-common/1:0.5.2.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ubuntu-drivers-common (Ubuntu Bionic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-bionic
Changed in nvidia-prime (Ubuntu Bionic):
status: In Progress → Fix Committed
Steve Langasek (vorlon) wrote :

Hello Alberto, or anyone else affected,

Accepted nvidia-prime into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/nvidia-prime/0.8.8.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Josh Holland (anowlcalledjosh) wrote :

I tested with LightDM, ubuntu-drivers-common 1:0.5.2.2, and nvidia-prime 0.8.8.2, doing various combinations of `prime-select intel` and `prime-select nvidia`; everything seems to work as described in the original description.

Thank you Alberto for your work on this!

tags: added: verification-done-bionic
removed: verification-needed-bionic

The verification of the Stable Release Update for ubuntu-drivers-common has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Launchpad Janitor (janitor) wrote :

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

---------------
ubuntu-drivers-common (1:0.5.2.2) bionic; urgency=medium

  * gpu-manager.c:
    - Improve pid detection, and restore the default pci
      power control profile in performance mode (LP: #1797147).

 -- Alberto Milone <email address hidden> Wed, 10 Oct 2018 17:01:27 +0200

Changed in ubuntu-drivers-common (Ubuntu Bionic):
status: Fix Committed → Fix Released
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-prime - 0.8.8.2

---------------
nvidia-prime (0.8.8.2) bionic; urgency=medium

  * prime-switch:
    - Give udev the time to add the drm device. Fixes a race
      condition that causes problems when using lightdm and
      sddm (LP: #1797147).

 -- Alberto Milone <email address hidden> Wed, 10 Oct 2018 17:59:03 +0200

Changed in nvidia-prime (Ubuntu Bionic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers