https://bugs.kde.org/show_bug.cgi?id=494749

            Bug ID: 494749
           Summary: Heuristic for selecting primary GPU
    Classification: Plasma
           Product: kwin
           Version: unspecified
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: platform-drm
          Assignee: kwin-bugs-n...@kde.org
          Reporter: supe...@gmail.com
  Target Milestone: ---

SUMMARY
On some laptops Kwin can pick the wrong GPU as the primary.  This is most
notable if the PCI device ordering of the dGPU comes before the integrated GPU
in the APU.

OBSERVED RESULT
Wrong GPU picked on some ASUS Strix laptops

EXPECTED RESULT
Right GPU picked on some ASUS Strix laptops

ADDITIONAL INFORMATION

A heuristic proposal was submitted to GNOME/mutter to look at the connectors
[1].  I think Kwin can do the same thing.

I think it would be a good idea to add a heuristic that walks all the DRM
connectors.  The compositor should look specifically for eDP connectors.  If
any eDP connectors have an enabled display then mark the DRM device associated
with them as the primary GPU.
If multiple eDP connectors or no eDP connectors have an enabled display then
don't do anything differently.

There is a tangential issue that the kernel picks the wrong boot VGA device
[2].

[1] https://gitlab.gnome.org/GNOME/mutter/-/issues/3746
[2]
https://lore.kernel.org/linux-pci/4c33a9ad-fbdb-42ca-aff7-e50420c13...@kernel.org/T/#m205ed43a258cdc892eeb1a2365603c86d51c40b0

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to