"ubuntu-drivers install" needs to be used when installing nvidia-driver if enabling "third-party packages"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Fix Released
|
Critical
|
Dirk Su | ||
subiquity |
New
|
Undecided
|
Unassigned | ||
ubiquity (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Focal |
New
|
Undecided
|
Unassigned | ||
ubuntu-drivers-common (Ubuntu) |
Fix Released
|
High
|
Alberto Milone | ||
Focal |
Fix Released
|
High
|
Dirk Su |
Bug Description
ubiquity calls
```
ubuntu-drivers install $FREEONLY $NOOEM --package-list /run/ubuntu-
```
to generate package list during live system but "ubuntu-drivers install" not only install packages but also create some config files for switching nvidia mode (e.g. on-demand) and change the runtime config as well (e.g. modify the iniramfs).
Thus, not only package list needs to be referred but also the configuration.
---
In ubuntu-
```
$ cat ubiquity/
#!/bin/sh
set -e
# install all packages that "ubuntu-drivers autoinstall" installed into the
# live system. Ubiquity calls this with --package-list /run/ubuntu-
PKGLIST=
[ -e $PKGLIST ] || exit 0
for p in `cat $PKGLIST`; do
apt-install $p
done
```
---
We need to use a same approach to make sure the nvidia mode is same on a same system (either all handing by ubuntu-drivers install or change the logic to maintainer script in each package).
---
[Impact]
* According to Nvidia README, the RTD3 (Runtime D3) doesn't support on non-laptop machine
* Install Ubuntu with "third-party packages" enabled, will not get same
GPU configuration by running "ubuntu-drivers install"
* Patch make system not enable RTD3 unless it's a laptop and set default GPU mode to "on-demand"
[Test Plan]
* Create Focal iso with live-build and import ubuntu-
* Install Ubuntu on machine, in "Updates and other software" page select "Install third-party software for graphics and Wi-Fi hardware and additional media formats"
* On laptop with Nvidia RTD3 supported GPU. The configuration file '/run/nvidia_
* Call "prime-select query" to make sure the default mode is "on-demand"
[Where problems could occur]
* With non-laptop machine use RTD3 supported GPU may use more power
[Other Info]
* For RTD3 (Runtime D3) doesn't support on non-laptop machine, refer to https:/
summary: |
- "ubuntu-drivers install" needs to be used to install nvidia-driver if - enabling "third-party packages" + "ubuntu-drivers install" needs to be used when installing nvidia-driver + if enabling "third-party packages" |
Changed in oem-priority: | |
assignee: | nobody → jeremyszu (os369510) |
importance: | Undecided → Critical |
status: | New → In Progress |
status: | In Progress → Confirmed |
description: | updated |
tags: | added: oem-priority |
tags: | added: rls-ii-incoming |
tags: | added: impish |
Changed in ubuntu-drivers-common (Ubuntu): | |
assignee: | nobody → Alberto Milone (albertomilone) |
Changed in ubuntu-drivers-common (Ubuntu): | |
importance: | Undecided → High |
status: | New → In Progress |
tags: | removed: rls-ii-incoming |
description: | updated |
Changed in oem-priority: | |
assignee: | jeremyszu (os369510) → Dirk Su (dirksu) |
Changed in ubuntu-drivers-common (Ubuntu Focal): | |
importance: | Undecided → High |
description: | updated |
Changed in ubuntu-drivers-common (Ubuntu Focal): | |
assignee: | nobody → Dirk Su (dirksu) |
description: | updated |
Changed in oem-priority: | |
status: | Confirmed → Fix Released |
This bug was fixed in the package ubuntu- drivers- common - 1:0.9.2.2
--------------- drivers- common (1:0.9.2.2) impish; urgency=medium
ubuntu-
* ubuntu-drivers: detect. py: target- config/ 31ubuntu_ driver_ packages:
- Enable KMS Wayland if nvidia >= 470. This only affects
the UDA drivers. This is more effective than checking
if Wayland is running, since the live image uses X11.
* UbuntuDrivers/
- Add newline when setting kms.
* ubiquity/
- Install nvidia-prime, so that we can handle hybrid
systems, and pick up the NVIDIA driver configuration
(LP: #1943816).
-- Alberto Milone <email address hidden> Fri, 08 Oct 2021 15:40:04 +0200