Linux/Hyprland: `output_name` ignored, wlr and kms capture always stream the same monitor
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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)
- Ngôn ngữ chính
- C++
- Star
- 43k
- Fork
- 2.4k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của LizardByte/Sunshine
-
Linux keyboard backend has no mapping for VK_ABNT_C1 (ABNT2 dedicated `/ ?` key) — key is silently droppedCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LizardByte/Sunshine#6051 · 2 bình luận ·
-
PIN pairing fails with "Missing CSRF token" - web UI never fetches/attaches the tokenCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
LizardByte/Sunshine#5467 · 2 bình luận ·
-
Virtual HID Driver License notifications appearing even though Enable Gamepad Input is uncheckedĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
LizardByte/Sunshine#6222 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 47/100
LizardByte/Sunshine#6208 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
LizardByte/Sunshine#6202 · 1 bình luận ·
Tất cả issue của LizardByte/Sunshine
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug data-types
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ClickHouse/clickhouse-cpp#645 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openscad/openscad#7360 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
connector-maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
gettakaro/connectors#1067 ·
Maintainer thường phản hồi trong vòng 1 ngày