Merge lp:~pieq/checkbox/fix-1622477-amdgpu-pro-jobs-update into lp:checkbox
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Sylvain Pineau | ||||
Approved revision: | 4492 | ||||
Merged at revision: | 4492 | ||||
Proposed branch: | lp:~pieq/checkbox/fix-1622477-amdgpu-pro-jobs-update | ||||
Merge into: | lp:checkbox | ||||
Diff against target: |
190 lines (+26/-23) 3 files modified
providers/plainbox-provider-checkbox/bin/graphics_env (+6/-6) providers/plainbox-provider-checkbox/jobs/graphics.txt.in (+13/-10) providers/plainbox-provider-checkbox/jobs/suspend-graphics.txt.in (+7/-7) |
||||
To merge this branch: | bzr merge lp:~pieq/checkbox/fix-1622477-amdgpu-pro-jobs-update | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sylvain Pineau (community) | Approve | ||
Paul Larson | Approve | ||
Review via email: mp+305453@code.launchpad.net |
Description of the change
The amdgpu-pro drivers are based on the open source amdgpu drivers (so udev shows the same driver name for both amdgpu and amdgpu-pro installs), but use a dedicated script (amdgpu-pro-px) to switch between integrated and discrete GPUs.
We adapt the existing jobs and scripts to take this into account, based on Sylvain's modification to graphics_card resource job that allows to show 'amdgpu-pro' as driver name when the amdgpu-pro metapackage is present on the system.
To test:
launch checkbox and select the appropriate graphic jobs. On Xenial, using a device with amdgpu open source drivers, the DRI_PRIME=1 prefix method should still be started, but on a device with amdgpu-pro drivers (aka Hybrid drivers, semi-open source and semi-proprietary), the same job as nVidia cards should be launched, inviting the user to manually switch to the integrated/discrete GPU using the appropriate tool (amdgpu-pro-px).
I don't have this sort of graphics card, but as a sanity check it looks ok, and I tried running it on my system with intel graphics to make sure it didn't do anything unexpected. +1 but it would certainly be good to get someone to run it who can confirm it works with the intended hardware too.