Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect GPU selection for session #913

Open
flukejones opened this issue Oct 8, 2024 · 2 comments
Open

Incorrect GPU selection for session #913

flukejones opened this issue Oct 8, 2024 · 2 comments

Comments

@flukejones
Copy link

I have a new laptop with AMD and NVIDIA GPU. The AMD gpu is the iGPU. However there are a few issues:

  1. The Nvidia GPU is before the AMD on the PCI bus
65:00.0 VGA compatible controller: NVIDIA Corporation AD106M [GeForce RTX 4070 Max-Q / Mobile] (rev a1)
66:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Strix [Radeon 880M / 890M] (rev c1)
  1. The Nvidia GPU is marked as boot_vga

  2. This causes the dGPU to be in consistent use and never suspend. It will suspend if switched to a TTY and desktops stopped.

The issue isn't solely cosmic-comp. Gnome is affected also. However if I work around the issue with nvidia_drm.modeset=0 this prevents gnome grabbing the card, but makes cosmic crash as it tries to use card0 with now doesn't have DRM ability.

Related issue on drm/amd

@Quackdoc
Copy link
Contributor

Quackdoc commented Oct 8, 2024

temporary fix should be COSMIC_RENDER_DEVICE=/dev/dri/renderD1## env var? I believe COSMIC_RENDER_AUTO_ASSIGN=y may also be warranted.

@flukejones
Copy link
Author

Unfortunately that does not help. Still selects incorrect gpu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants