Linux/Hyprland: `output_name` ignored, wlr and kms capture always stream the same monitor

オープン
#6,134 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, linux
領域
backend, desktop

調査の方向性

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 with output_name = 0.
  • capture = portal is 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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

LizardByte/Sunshine のほかの issue

LizardByte/Sunshine の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。