[PR #23] [MERGED] Fix: Multi-GPU usage with Virtual Display #29

Closed
opened 2026-11-01 11:24:05 +00:00 by roman · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Arbitrate3280/LutrisToSunshine/pull/23
Author: @Seuma
Created: 5/11/2026
Status: ✅ Merged
Merged: 5/20/2026
Merged by: @Arbitrate3280

Base: main ← Head: fix-multi-gpu-wlr


📝 Commits (6)

  • 7f9a262 fix(env): add initial WLR environment variables
  • 95596bf feat(script): add dGPU detection script
  • 7b305ba fix(script): replace static WLR env setup with gpu detection script
  • e691b69 fix(script): add decisions for integrated or dedicated gpu
  • 9d8aefe fix(env): fix quotation of env variables
  • fe8ee27 fix: guard gpu_array[1] against unbound variable under set -u

📊 Changes

1 file changed (+129 additions, -16 deletions)

View changed files

📝 display/manager.py (+129 -16)

📄 Description

This PR provides the capability to use the discrete GPU on a Multi-GPU System. That shall ensure best encoding and capabilities and performance for streaming.

To be able to use the dedicated GPU two environment variables must be set for wlroots. These are WLR_RENDER_DRM_DEVICE and WLR_DRM_DEVICES

The documentation of said variables can be found at their Repo

This connects to #20


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Arbitrate3280/LutrisToSunshine/pull/23 **Author:** [@Seuma](https://github.com/Seuma) **Created:** 5/11/2026 **Status:** ✅ Merged **Merged:** 5/20/2026 **Merged by:** [@Arbitrate3280](https://github.com/Arbitrate3280) **Base:** `main` ← **Head:** `fix-multi-gpu-wlr` --- ### 📝 Commits (6) - [`7f9a262`](https://github.com/Arbitrate3280/LutrisToSunshine/commit/7f9a2623ba54ec135c43f55ffec9cbcdcb659bdf) fix(env): add initial WLR environment variables - [`95596bf`](https://github.com/Arbitrate3280/LutrisToSunshine/commit/95596bfd173f27ad9ce6b9a1bbc377a2490502a7) feat(script): add dGPU detection script - [`7b305ba`](https://github.com/Arbitrate3280/LutrisToSunshine/commit/7b305bacd062bfce496151b6b9f2ab3dea804514) fix(script): replace static WLR env setup with gpu detection script - [`e691b69`](https://github.com/Arbitrate3280/LutrisToSunshine/commit/e691b6924cb33e919b5e65fae9d0e29d988f4fee) fix(script): add decisions for integrated or dedicated gpu - [`9d8aefe`](https://github.com/Arbitrate3280/LutrisToSunshine/commit/9d8aefe34b8aeacae82720bf724c1bfa28b574fc) fix(env): fix quotation of env variables - [`fe8ee27`](https://github.com/Arbitrate3280/LutrisToSunshine/commit/fe8ee2727ce2f2d2273b1917422929938cb13495) fix: guard gpu_array[1] against unbound variable under set -u ### 📊 Changes **1 file changed** (+129 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `display/manager.py` (+129 -16) </details> ### 📄 Description This PR provides the capability to use the discrete GPU on a Multi-GPU System. That shall ensure best encoding and capabilities and performance for streaming. To be able to use the dedicated GPU two environment variables must be set for wlroots. These are `WLR_RENDER_DRM_DEVICE` and `WLR_DRM_DEVICES` The documentation of said variables can be found at their [Repo](https://gitlab.freedesktop.org/wlroots/wlroots/-/blob/master/docs/env_vars.md?ref_type=heads) This connects to #20 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
roman 2026-11-01 11:24:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Arbitrate3280/LutrisToSunshine#29
No description provided.