Linux/Hyprland: `output_name` ignored, wlr and kms capture always stream the same monitor
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start by tracing how output_name selects a monitor in the wlr and KMS capture paths, then compare that selection with the monitor actually passed to the streaming pipeline. Reproduce on Hyprland with two monitors and test both capture methods; done means the stream matches the selected monitor for each method. The payload names no source files or tests, so locating the relevant entry points will take project familiarity.
索引モデルが issue の本文から書いたものです。
説明
Is there an existing issue for this?
- I have searched the existing issues
Is your issue described in the documentation?
- I have read the documentation
Is your issue present in the latest beta/pre-release?
Tested on the latest stable release (v2026.914.233613).
Describe the Bug
Two monitors on one NVIDIA GPU: Acer HDMI-A-1 (1920x1080@60, at 1920x0) and Samsung DP-2 (1920x1080@240, at 0x0). Whatever output_name is set to, the stream always shows the Acer (HDMI-A-1), while the log reports the other monitor:
capture = wlr,output_name = 1-> log:[wlgrab] Selected monitor [Samsung ... (DP-2)] for streaming, stream shows HDMI-A-1.capture = kms,output_name = 1-> log:Found connector ID [840](840 = DP-2 in /sys/class/drm), stream shows HDMI-A-1. Same withoutput_name = 0.capture = portalis not an option:Could not create RemoteDesktop session(xdg-desktop-portal-hyprland has no RemoteDesktop interface).
Each change was followed by a service restart and a fresh session from Moonlight.
Expected Behavior
The selected monitor is the one streamed.
Additional Context
Workaround: a prep-cmd on the Desktop app disables DP-2 for the session:
hyprctl eval "hl.monitor({output='DP-2',disabled=true})", re-enabled in the undo command.
Compositor: Hyprland 0.56.2 (Lua config), xdg-desktop-portal-hyprland 1.4.1.
Client: Moonlight on Windows.
Host Operating System
Linux
Operating System Version
Arch Linux (Omarchy 4.5.0)
Architecture
amd64/x86_64
Package
Linux - Arch package (sunshine 2026.914.233613-1)
GPU Type
NVIDIA
GPU Model
NVIDIA GeForce RTX 3060
GPU Driver/Mesa Version
615.78.08
Capture Method
wlr and KMS (both affected)
- 主要言語
- C++
- スター
- 43k
- フォーク
- 2.4k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LizardByte/Sunshine のほかの issue
-
Linux keyboard backend has no mapping for VK_ABNT_C1 (ABNT2 dedicated `/ ?` key) — key is silently dropped対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LizardByte/Sunshine#6051 · コメント 2 件 ·
-
PIN pairing fails with "Missing CSRF token" - web UI never fetches/attaches the token再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
LizardByte/Sunshine#5467 · コメント 2 件 ·
-
Virtual HID Driver License notifications appearing even though Enable Gamepad Input is uncheckedオープン
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
LizardByte/Sunshine#6222 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 47/100
LizardByte/Sunshine#6208 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
LizardByte/Sunshine#6202 · コメント 1 件 ·
LizardByte/Sunshine の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 2 日以内に返信
-
bug data-types
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ClickHouse/clickhouse-cpp#645 ·
メンテナーはふだん 1 日以内に返信
-
Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openscad/openscad#7360 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
connector-maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
gettakaro/connectors#1067 ·
メンテナーはふだん 1 日以内に返信