Merge ~oem-solutions-group/pc-enablement/+git/oem-volatile-task-sutton:lp1996170 into ~oem-solutions-group/pc-enablement/+git/oem-volatile-task-sutton:main

Proposed by jeremyszu
Status: Needs review
Proposed branch: ~oem-solutions-group/pc-enablement/+git/oem-volatile-task-sutton:lp1996170
Merge into: ~oem-solutions-group/pc-enablement/+git/oem-volatile-task-sutton:main
Diff against target: 15 lines (+9/-0)
1 file modified
task/35_workaround_ubiquity_nvidia_config (+9/-0)
Reviewer Review Type Date Requested Status
Andy Chi Needs Information
Bin Li Pending
OEM Solutions Group Pending
Review via email: mp+432911@code.launchpad.net

Commit message

Workaround config made by nvidia-prime (LP: #1996170)

Description of the change

+# Usage (FIXME: LP: #1996170)
+# Workaround nvidia-prime installed in live session but rootfs. Which causes
+# some configurations (e.g. /etc/prime-discrete) in preinst won't be referred.
+# In stock ubuntu, there is also a workaround to copy configurations.
+#
+# Please refer package "ubuntu-drivers-common" file
+# "ubiquity/target-config/31ubuntu_driver_packages" for mode details.
+workaround_ubiquity_nvidia_configuration()
+{
+ # /lib/modprobe.d/nvidia-kms.conf
+ # /etc/prime-discrete
+ # XXX: the on-demand mode is the default mode.
+ test -f $(which prime-select) && prime-select on-demane
+ # or test -f $(which prime-select) && prime-select $(prime-select query)
+
+ # /run/nvidia_runtimepm_supported
+ # which is covered by `ubuntu-drivers install` in install_oem_packages()
+}

To post a comment you must log in.
Revision history for this message
Andy Chi (andch) wrote :

Waiting the new image build to test.

review: Needs Information
Revision history for this message
Bin Li (binli) wrote :

Currently we didn't meet this issue on sutton, should we apply this to sutton project?

If there is no harm to sutton, I'm fine with it. Let's wait Andy's test.

Unmerged commits

abc95f7... by jeremyszu

Workaround config made by nvidia-prime (LP: #1996170)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/task/35_workaround_ubiquity_nvidia_config b/task/35_workaround_ubiquity_nvidia_config
2new file mode 100755
3index 0000000..1265969
4--- /dev/null
5+++ b/task/35_workaround_ubiquity_nvidia_config
6@@ -0,0 +1,9 @@
7+#!/bin/bash
8+
9+set -x
10+
11+# shellcheck source=/dev/null
12+. /usr/share/volatile/common.sh
13+
14+# Workaround config made by nvidia-prime (LP: #1996170)
15+workaround_ubiquity_nvidia_configuration

Subscribers

People subscribed via source and target branches

to all changes: