** Description changed:
- RTD3 is a nvidia GPU feature to support runtime suspend.
+ [Steps to reproduce]
+ 1. Install 20.04.3 with "Third-party packages" on a system which containing a
RTD3 supported nvidia card.
+ 2. After the installation, press enter to reboot system
+ 3. prime-select query
- On-demand would be a X offloading feature.
+ [Expected result]
+ on-demand
- They are independent, according to discussion on
- https://github.com/tseliot/ubuntu-drivers-common/issues/55.
+ [Actual result]
+ performance
- Some parts need to be adjusted, e.g.
+ ---
- ```
- # If we are dealing with NVIDIA PRIME, and runtimepm
- # is supported, enable it
- if (os.path.isfile('/run/nvidia_runtimepm_supported') and
- os.path.isfile('/usr/bin/prime-select')):
- print('Trying to select the on-demand PRIME profile')
- try:
- subprocess.call(['prime-select', 'on-demand'])
- except:
- pass
+ It's because ubiquity launches `ubuntu-drivers install --packages-list
+ ...` in live system but install each package to target storage.
- # Create the override file for gpu-manager
- with open('/etc/u-d-c-nvidia-runtimepm-override', 'w') as f:
- f.write('# File created by ubuntu-drivers\n')
- ```
+ When installing nvidia-prime, the preinst set "on" to "/etc/prime-
+ discrete" which will be referred by gpu-manager. The gpu-manager will
+ set to performance mode.
+
+ After confirming with Alberto on Mattermost, since we don't have a
+ nvidia driver which lower than 450 version since focal.
+
+ I think we are ok to switch to on-demand mode.
---
[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
+ * 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"
+ * 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.
+ * on-demand mode combined offloading and RTD3. Nvidia driver lower then 450
(nvidia-driver-390) does not supported RTD3 and only have offloading feature.
+ * 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]
X-HWE-Bug: Bug #1946434
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)
+ [ 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.
+ [ 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)
+ [ 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).
+ [ 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).
** Description changed:
[Steps to reproduce]
1. Install 20.04.3 with "Third-party packages" on a system which containing a
RTD3 supported nvidia card.
2. After the installation, press enter to reboot system
3. prime-select query
[Expected result]
on-demand
[Actual result]
performance
---
It's because ubiquity launches `ubuntu-drivers install --packages-list
...` in live system but install each package to target storage.
When installing nvidia-prime, the preinst set "on" to "/etc/prime-
discrete" which will be referred by gpu-manager. The gpu-manager will
set to performance mode.
After confirming with Alberto on Mattermost, since we don't have a
nvidia driver which lower than 450 version since focal.
I think we are ok to switch to on-demand mode.
---
[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 combined offloading and RTD3. Nvidia driver lower then 450
(nvidia-driver-390) does not supported RTD3 and only have offloading feature.
+ * on-demand mode combined two features which are GPU offloading and RTD3.
Nvidia driver lower then 450 (nvidia-driver-390) does not supported RTD3 and
only have GPU offloading feature.
* 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]
X-HWE-Bug: Bug #1946434
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).
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1942789
Title:
On-demand and RTD3 need to be separated
To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1942789/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs