Merge ~kissiel/plainbox-provider-resource:fix-1731660-bad-driver-reported into plainbox-provider-resource:master
Status: | Merged |
---|---|
Approved by: | Maciej Kisielewski |
Approved revision: | 98bc8d27a9f0f886c8474e96f18e226ad3f40a3e |
Merged at revision: | e8a34665f827381289fdb33bcd67c168f0f4e093 |
Proposed branch: | ~kissiel/plainbox-provider-resource:fix-1731660-bad-driver-reported |
Merge into: | plainbox-provider-resource:master |
Diff against target: |
34 lines (+10/-5) 1 file modified
bin/graphics_card_resource (+10/-5) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sheila Miguez (community) | Approve | ||
Checkbox Developers | Pending | ||
Review via email: mp+333582@code.launchpad.net |
Description of the change
override the driver name to amdgpu-pro only for vendor == amd
previously, if the system had vulkan-amdgpu-pro pkg installed, the script
reported 'amdgpu-pro' as the driver for all the GPUs.
Now it's amdgpu-pro is reported only for GPUs from vendor 4098 - AMD.
This is still not perfect, as theretically there might be multiple amd pus
in the system, not all of them amdgpu-pro, but it still makes it closer to the truth and right for the typical intel+radeon configuration.
This patch also rearranges the logic for the dpkg-query call.
if not `some commands run` intuitively should mean "if the command failed"
which in the case of subprocess.
`if not subprocess.
Fixes: LP:1731660
lgtm