SRU: Set on-demand as default, enable RTD3 only on laptops and decouple on-demand with RTD3

Bug #1946434 reported by Dirk Su
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
Invalid
High
Dirk Su
nvidia-prime (Ubuntu)
Invalid
Medium
Unassigned
Focal
In Progress
High
Alberto Milone
Hirsute
Won't Fix
High
Alberto Milone

Bug Description

[Impact]

 * Ubuntu will set GPU mode to performance as default which may use more power
 * User can't use GPU for other purpose (eg: deep-learning) if RTD3 is not supported
 * According to Nvidia README, the RTD3 doesn't support on non-laptop machine

[Test Plan]

 * Install Ubuntu, and then execute 'ubuntu-drivers install' to install GPU driver. After the installation, reboot the system. Execute "prime-select query" should get "on-demand"
 * On non-laptop machine. Can set GPU mode to on-demand
 * On laptop with GPU in runtime PM support list. Set GPU mode to on-demand and Nvidia driver is loaded with "NVreg_DynamicPowerManagement=0x02"

[Where problems could occur]

 * on-demand mode supported after nvidia driver 450. And focal does not have nvidia driver lower than 450.
 * With GPU supported RTD3 not able enable runtime PM on non-laptop. But based on the Nvidia README, this case shall not happened.

[Other Info]

Changelogs:

nvidia-prime (0.8.16~0.20.04.2) focal; urgency=medium

  [ Jeremy Szu ]
  * Set on-demand mode as default nvidia mode (LP: #1942307)

  [ Alberto Milone ]
  * prime-select:
    - Detect chassis type and enable RTD3 only
      on laptops (LP: #1942788).
    - on-demand mode doesn't need to depend on
      RTD3 (LP: #1942789).
    - Use bootvga detection when last_gfx_boot
      is not available.
    - Don't check the current profile when setting
      a profile (LP: #1946476).
    - Catch BrokenPipeError.
    - Use bootvga detection when last_gfx_boot is
      not available.

nvidia-prime (0.8.16.2~0.21.04.1) hirsute; urgency=medium

  [ Jeremy Szu ]
  * Set on-demand mode as default nvidia mode (LP: #1942307)

  [ Alberto Milone ]
  * prime-select:
    - Detect chassis type and enable RTD3 only
      on laptops (LP: #1942788).
    - on-demand mode doesn't need to depend on
      RTD3 (LP: #1942789).
    - Use bootvga detection when last_gfx_boot
      is not available.
    - Don't check the current profile when setting
      a profile (LP: #1946476).

Revision history for this message
Dirk Su (dirksu) wrote :

Upload debdiff for focal

tags: added: oem-priority originate-from-1942788
tags: added: originate-from-1942789
Changed in oem-priority:
importance: Undecided → High
assignee: nobody → Dirk Su (dirksu)
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "nvidia-prime_0.8.16~0.20.04.2.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Dirk Su (dirksu)
Changed in oem-priority:
status: New → Invalid
Dirk Su (dirksu)
Changed in oem-priority:
status: Invalid → Confirmed
summary: - SRU: enable RTD3 only on laptops and decouple on-demand with RTD3
+ SRU: Set on-demand as default, enable RTD3 only on laptops and decouple
+ on-demand with RTD3
Revision history for this message
Dirk Su (dirksu) wrote :

Upload debdiff for focal

description: updated
tags: added: originate-from-1942307
tags: added: originate-from-1946476
Mathew Hodson (mhodson)
Changed in nvidia-prime (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Dirk Su (dirksu) wrote :

Upload debdiff for hirsute

Changed in nvidia-prime (Ubuntu Focal):
status: New → Triaged
Changed in nvidia-prime (Ubuntu Hirsute):
status: New → Triaged
Changed in nvidia-prime (Ubuntu Focal):
importance: Undecided → High
Changed in nvidia-prime (Ubuntu Hirsute):
importance: Undecided → High
Changed in nvidia-prime (Ubuntu Focal):
assignee: nobody → Alberto Milone (albertomilone)
Changed in nvidia-prime (Ubuntu Hirsute):
assignee: nobody → Alberto Milone (albertomilone)
Changed in nvidia-prime (Ubuntu Focal):
status: Triaged → In Progress
Changed in nvidia-prime (Ubuntu Hirsute):
status: Triaged → In Progress
Changed in nvidia-prime (Ubuntu):
status: New → Invalid
Revision history for this message
Alberto Milone (albertomilone) wrote :

I added a couple of fixes that you missed in the debdiffs, and I uploaded the packages. I put the changelogs for the uploads in the bug description.

description: updated
Dirk Su (dirksu)
description: updated
Dirk Su (dirksu)
Changed in oem-priority:
status: Confirmed → Invalid
Revision history for this message
Brian Murray (brian-murray) wrote :

The Hirsute Hippo has reached End of Life, so this bug will not be fixed for that release.

Changed in nvidia-prime (Ubuntu Hirsute):
status: In Progress → Won't Fix
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.