Reviewing the nvidia-prime upload in the queue, I do not understand the
rationale for this SRU change.  The changelog states that we are
removing "obsolete udev rules during upgrade".  However, this means that
the udev files on disk will only removed when upgrading *from* this
package version; so users installing this SRU will still have those
files on disk.  If your intent is to have them removed upon installation
of *this* package version, then the removal should happen in the
postinst, not in the postrm.

It would be helpful if you would lay out in this bug what your intent is
with this change.

** Changed in: nvidia-prime (Ubuntu Groovy)
       Status: In Progress => Incomplete

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nvidia-prime in Ubuntu.
https://bugs.launchpad.net/bugs/1904583

Title:
  SRU: Backport the latest developments on drivers detection and hybrid
  graphics

Status in OEM Priority Project:
  New
Status in nvidia-prime package in Ubuntu:
  Invalid
Status in ubuntu-drivers-common package in Ubuntu:
  Invalid
Status in nvidia-prime source package in Bionic:
  In Progress
Status in ubuntu-drivers-common source package in Bionic:
  In Progress
Status in nvidia-prime source package in Focal:
  In Progress
Status in ubuntu-drivers-common source package in Focal:
  In Progress
Status in nvidia-prime source package in Groovy:
  Incomplete
Status in ubuntu-drivers-common source package in Groovy:
  In Progress

Bug description:
  As we introduced the "-server" NVIDIA drivers, and the concept of
  "LTSB" (Long Term Support Branch) and "NFB" (New Feature Branch)
  releases, the detection logic behind ubuntu-drivers needs an update to
  make the correct choices for the user.

  The introduction of the NVIDIA 450 series, also added runtime power
  management, which greatly improves user experience on systems with
  hybrid graphics, and allows greater power savings. When supported, on-
  demand mode and runtime power management are the default. Both gpu-
  manager and ubuntu-drivers in ubuntu drivers common, and the tools in
  the nvidia-prime package need updating as a result.

  Only the components in Ubuntu 20.10 require a fairly small diff for
  the backport. The rest is a direct sync of the 1:0.8.6.3 release in
  21.04.

  [Impact]

  * The ubuntu-drivers tool might install the wrong driver, or, in some
  cases, crash, if the new -server drivers are available.

  * The new runtime power management can't be used even when the
  hardware (Turing GPUs or newer) supports it.

  * We want to the default drivers to be Long Term support releases.
  Users may still pick different drivers manually.

  [Fix]

  * The code in Ubuntu 21.04 includes essential bug fixes, and more test
  cases in the test suite, to make sure that driver installation is more
  robust, and more accurate (LTSB vs NFB releases, and non-server vs
  -server releases).

  * ubuntu-drivers, gpu-manager, and prime-select now all support
  runtime power management.

  [Test Case]
  Install ubuntu-drivers-common and nvidia-prime from proposed, and check the 
following:

  1) ubuntu-drivers debug

  2) Make sure no nvidia driver is installed (sudo apt-get --purge
  remove '*nvidia*', and try installing an nvidia driver with "sudo
  ubuntu-drivers install"

  3) Reboot your system

  4) [optional] If you are running on a hybrid laptop, you can check if
  your system supports runtime power management:

  sudo prime-select on-demand

  (if you are already in "on-demand" mode, select "intel" mode first,
  then try "on-demand" again)

  5) If you followed step 4, reboot again

  6) Attach your /var/log/gpu-manager.log

  [Regression Risk]
  Medium, while this code includes many fixes, it needs careful testing.

  
  == Changes ==

  Only the components in Ubuntu 20.10 require a fairly small diff for
  the backport. The rest is a direct sync of the 1:0.8.6.3 release in
  21.04.

  == Ubuntu 20.10 ==

  ubuntu-drivers-common (1:0.8.6.3~0.20.10.1) groovy; urgency=medium

    * UbuntuDrivers/detect.py,
      tests/test_ubuntu_drivers.py:
      - Prefer LTSB releases over NFB ones for non gpgpu cases too.
    * gpu-manager.c:
      - Make it possible to force runtimepm by creating the
        /etc/u-d-c-nvidia-runtimepm-override file.
      - Make on-demand default on nvidia >= 450, when no
        previous settings are available.

  nvidia-prime (0.8.15.1~0.20.10.1) groovy; urgency=medium

    [ Anthony Fok ]
    * Remove obsolete udev rules during `postrm upgrade` too

  == Ubuntu 20.04 ==

  ubuntu-drivers-common (1:0.8.6.3~0.20.04.1) focal; urgency=medium

    * Backport 1:0.8.6.3 (LP: #1904583).

  nvidia-prime (0.8.15.1~0.20.04.1) focal; urgency=medium

    [ Alberto Milone ]
    * prime-select:
      - Enable runtimepm in on-demand mode if supported (LP: #1895855).
      - Disable workaround for on-demand mode.
      - Enable KMS if runtimepm is supported.

    [ Anthony Fok ]
    * Remove obsolete udev rules during `postrm upgrade` too

    [ Kai-Heng Feng ]
    * prime-select: Remove udev rules

  == Ubuntu 18.04 ==

  ubuntu-drivers-common (1:0.8.6.3~0.18.04.2) bionic; urgency=medium

    * Backport 1:0.8.6.3 (LP: #1904583).
    * gpu-manager.c: add missing PCI_CAP_ID_NULL definition

  nvidia-prime (0.8.15.1~0.18.04.1) bionic; urgency=medium

    * Backport 0.8.15.1 (LP: #1904583).

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1904583/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to