Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Doesn't work with Hyprland virtual display

Open FrankHan052176 opened this issue 4 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Is your issue described in the documentation?

  • [x] I have read the documentation

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

my command is

hyprctl output create headless
hyprctl keyword monitor HEADLESS-2,2560x1440@120,0x3000,1
sunshine

And, Sunshine release will show "Error: Failed to create GBM buffer" in the log.

Expected Behavior

Sunshine should work with the virtual display

Additional Context

I set the iGPU as the encoder because of my hyprland is running on iGPU. When I connect to the host and finish initialize, the sunshine will restart.

Host Operating System

Linux

Operating System Version

Archlinux

Architecture

amd64/x86_64

Sunshine commit or version

2025.822.34814

Package

Linux - AUR (Third Party)

GPU Type

AMD

GPU Model

Radeon Vega 8(APU gfx90c in 5900HX)

GPU Driver/Mesa Version

Mesa 25.2.1-arch1.2

Capture Method

wlroots (Linux)

Config

adapter_name = /dev/dri/renderD128
capture = wlr
encoder = vaapi
lan_encryption_mode = 1
locale = zh
min_log_level = 2
origin_web_ui_allowed = pc
output_name = 2

Apps

{
  "env": {
    "PATH": "$(PATH):$(HOME)/.local/bin"
  },
  "apps": [
    {
      "name": "Desktop",
      "image-path": "desktop.png"
    },
    {
      "name": "Low Res Desktop",
      "image-path": "desktop.png",
      "prep-cmd": [
        {
          "do": "xrandr --output HDMI-1 --mode 1920x1080",
          "undo": "xrandr --output HDMI-1 --mode 1920x1200"
        }
      ]
    },
    {
      "name": "Steam Big Picture",
      "detached": [
        "setsid steam steam://open/bigpicture"
      ],
      "prep-cmd": [
        {
          "do": "",
          "undo": "setsid steam steam://close/bigpicture"
        }
      ],
      "image-path": "steam.png"
    }
  ]
}

Relevant log output

[2025-08-27 19:02:35.297]: Info: Sunshine version: 2025.822.34814 commit: 2f7657a1b0467c09defc7d092354ccf0057a0419
[2025-08-27 19:02:35.297]: Info: Package Publisher: LizardByte
[2025-08-27 19:02:35.297]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-08-27 19:02:35.298]: Info: Get support: https://app.lizardbyte.dev/support
[2025-08-27 19:02:35.298]: Info: config: 'adapter_name' = /dev/dri/renderD128
[2025-08-27 19:02:35.298]: Info: config: 'capture' = wlr
[2025-08-27 19:02:35.298]: Info: config: 'stream_audio' = true
[2025-08-27 19:02:35.298]: Info: config: 'encoder' = vaapi
[2025-08-27 19:02:35.298]: Info: config: 'gamepad' = xone
[2025-08-27 19:02:35.298]: Info: config: 'lan_encryption_mode' = 1
[2025-08-27 19:02:35.298]: Info: config: 'min_log_level' = 2
[2025-08-27 19:02:35.298]: Info: config: 'origin_web_ui_allowed' = pc
[2025-08-27 19:02:35.298]: Info: config: 'locale' = zh
[2025-08-27 19:02:35.298]: Info: config: 'output_name' = 2
[2025-08-27 19:02:35.299]: Info: Found display [wayland-1]
[2025-08-27 19:02:35.299]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-08-27 19:02:35.299]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-08-27 19:02:35.299]: Info: Found interface: zwp_linux_dmabuf_v1(61) version 5
[2025-08-27 19:02:35.299]: Info: Found interface: wl_output(62) version 4
[2025-08-27 19:02:35.299]: Info: Found interface: wl_output(64) version 4
[2025-08-27 19:02:35.299]: Info: Found interface: wl_output(65) version 4
[2025-08-27 19:02:35.299]: Info: Resolution: 2560x1440
[2025-08-27 19:02:35.299]: Info: Resolution: 2560x1440
[2025-08-27 19:02:35.300]: Info: Resolution: 2560x1440
[2025-08-27 19:02:35.300]: Info: Name: eDP-1
[2025-08-27 19:02:35.300]: Info: Found monitor: Chimei Innolux Corporation 0x1540  (eDP-1)
[2025-08-27 19:02:35.300]: Info: Offset: 0x975
[2025-08-27 19:02:35.300]: Info: Logical size: 2048x1152
[2025-08-27 19:02:35.300]: Info: Name: HDMI-A-1
[2025-08-27 19:02:35.300]: Info: Found monitor: HKC OVERSEAS LIMITED MG27Q 0000000000001 (HDMI-A-1)
[2025-08-27 19:02:35.300]: Info: Offset: 2048x0
[2025-08-27 19:02:35.300]: Info: Logical size: 2560x1440
[2025-08-27 19:02:35.300]: Info: Name: HEADLESS-2
[2025-08-27 19:02:35.300]: Info: Offset: 4608x0
[2025-08-27 19:02:35.300]: Info: Logical size: 2560x1440
[2025-08-27 19:02:35.300]: Info: -------- Start of Wayland monitor list --------
[2025-08-27 19:02:35.300]: Info: Monitor 0 is eDP-1: Chimei Innolux Corporation 0x1540  (eDP-1)
[2025-08-27 19:02:35.300]: Info: Monitor 1 is HDMI-A-1: HKC OVERSEAS LIMITED MG27Q 0000000000001 (HDMI-A-1)
[2025-08-27 19:02:35.300]: Info: Monitor 2 is HEADLESS-2: 
[2025-08-27 19:02:35.300]: Info: --------- End of Wayland monitor list ---------
[2025-08-27 19:02:35.337]: Warning: Gamepad ds5 is disabled due to Permission denied
[2025-08-27 19:02:35.337]: Info: Trying encoder [vaapi]
[2025-08-27 19:02:35.337]: Info: Screencasting with Wayland's protocol
[2025-08-27 19:02:35.337]: Info: Found display [wayland-1]
[2025-08-27 19:02:35.337]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-08-27 19:02:35.337]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-08-27 19:02:35.337]: Info: Found interface: zwp_linux_dmabuf_v1(61) version 5
[2025-08-27 19:02:35.337]: Info: Found interface: wl_output(62) version 4
[2025-08-27 19:02:35.337]: Info: Found interface: wl_output(64) version 4
[2025-08-27 19:02:35.337]: Info: Found interface: wl_output(65) version 4
[2025-08-27 19:02:35.337]: Info: Resolution: 2560x1440
[2025-08-27 19:02:35.337]: Info: Name: HEADLESS-2
[2025-08-27 19:02:35.337]: Info: Offset: 4608x0
[2025-08-27 19:02:35.338]: Info: Logical size: 2560x1440
[2025-08-27 19:02:35.338]: Info: Selected monitor [] for streaming
[2025-08-27 19:02:35.338]: Info: Creating encoder [h264_vaapi]
[2025-08-27 19:02:35.338]: Info: Color coding: SDR (Rec. 601)
[2025-08-27 19:02:35.338]: Info: Color depth: 8-bit
[2025-08-27 19:02:35.338]: Info: Color range: JPEG
[2025-08-27 19:02:35.350]: Info: System tray created
[2025-08-27 19:02:35.366]: Info: vaapi vendor: Mesa Gallium driver 25.2.1-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.12.43-1-lts)
[2025-08-27 19:02:35.367]: Info: Streaming bitrate is 1000000
[2025-08-27 19:02:35.367]: Info: Using normal encoding mode
[2025-08-27 19:02:35.367]: Info: Using default rate control
[2025-08-27 19:02:35.394]: Info: Creating encoder [hevc_vaapi]
[2025-08-27 19:02:35.394]: Info: Color coding: SDR (Rec. 601)
[2025-08-27 19:02:35.394]: Info: Color depth: 8-bit
[2025-08-27 19:02:35.394]: Info: Color range: JPEG
[2025-08-27 19:02:35.409]: Info: vaapi vendor: Mesa Gallium driver 25.2.1-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.12.43-1-lts)
[2025-08-27 19:02:35.409]: Info: Streaming bitrate is 1000000
[2025-08-27 19:02:35.409]: Info: Using normal encoding mode
[2025-08-27 19:02:35.409]: Info: Using default rate control
[2025-08-27 19:02:35.438]: Info: Creating encoder [av1_vaapi]
[2025-08-27 19:02:35.438]: Info: Color coding: SDR (Rec. 601)
[2025-08-27 19:02:35.438]: Info: Color depth: 8-bit
[2025-08-27 19:02:35.438]: Info: Color range: JPEG
[2025-08-27 19:02:35.451]: Info: vaapi vendor: Mesa Gallium driver 25.2.1-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.12.43-1-lts)
[2025-08-27 19:02:35.451]: Info: Streaming bitrate is 1000000
[2025-08-27 19:02:35.451]: Error: [av1_vaapi @ 0x638b27f34e80] No usable encoding profile found.
[2025-08-27 19:02:35.452]: Error: Could not open codec [av1_vaapi]: Function not implemented
[2025-08-27 19:02:35.454]: Info: Screencasting with Wayland's protocol
[2025-08-27 19:02:35.454]: Info: Found display [wayland-1]
[2025-08-27 19:02:35.454]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-08-27 19:02:35.454]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-08-27 19:02:35.454]: Info: Found interface: zwp_linux_dmabuf_v1(61) version 5
[2025-08-27 19:02:35.454]: Info: Found interface: wl_output(62) version 4
[2025-08-27 19:02:35.454]: Info: Found interface: wl_output(64) version 4
[2025-08-27 19:02:35.454]: Info: Found interface: wl_output(65) version 4
[2025-08-27 19:02:35.454]: Info: Resolution: 2560x1440
[2025-08-27 19:02:35.454]: Info: Name: HEADLESS-2
[2025-08-27 19:02:35.454]: Info: Offset: 4608x0
[2025-08-27 19:02:35.454]: Info: Logical size: 2560x1440
[2025-08-27 19:02:35.454]: Info: Selected monitor [] for streaming
[2025-08-27 19:02:35.454]: Info: Creating encoder [hevc_vaapi]
[2025-08-27 19:02:35.454]: Info: Color coding: SDR (Rec. 709)
[2025-08-27 19:02:35.454]: Info: Color depth: 10-bit
[2025-08-27 19:02:35.454]: Info: Color range: JPEG
[2025-08-27 19:02:35.468]: Info: vaapi vendor: Mesa Gallium driver 25.2.1-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.12.43-1-lts)
[2025-08-27 19:02:35.469]: Info: Streaming bitrate is 1000000
[2025-08-27 19:02:35.469]: Info: Using normal encoding mode
[2025-08-27 19:02:35.469]: Info: Using default rate control
[2025-08-27 19:02:35.492]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-08-27 19:02:35.492]: Info: 
[2025-08-27 19:02:35.492]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-08-27 19:02:35.492]: Info: 
[2025-08-27 19:02:35.492]: Info: Found H.264 encoder: h264_vaapi [vaapi]
[2025-08-27 19:02:35.492]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
[2025-08-27 19:02:35.494]: Error: Failed to create client: Daemon not running
[2025-08-27 19:02:35.494]: Info: Configuration UI available at [https://localhost:47990]
[2025-08-27 19:02:42.565]: Info: Trying encoder [vaapi]
[2025-08-27 19:02:42.565]: Info: Screencasting with Wayland's protocol
[2025-08-27 19:02:42.565]: Info: Found display [wayland-1]
[2025-08-27 19:02:42.565]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-08-27 19:02:42.565]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-08-27 19:02:42.565]: Info: Found interface: zwp_linux_dmabuf_v1(61) version 5
[2025-08-27 19:02:42.565]: Info: Found interface: wl_output(62) version 4
[2025-08-27 19:02:42.565]: Info: Found interface: wl_output(64) version 4
[2025-08-27 19:02:42.565]: Info: Found interface: wl_output(65) version 4
[2025-08-27 19:02:42.566]: Info: Resolution: 2560x1440
[2025-08-27 19:02:42.566]: Info: Name: HEADLESS-2
[2025-08-27 19:02:42.566]: Info: Offset: 4608x0
[2025-08-27 19:02:42.566]: Info: Logical size: 2560x1440
[2025-08-27 19:02:42.566]: Info: Selected monitor [] for streaming
[2025-08-27 19:02:42.566]: Info: Creating encoder [h264_vaapi]
[2025-08-27 19:02:42.566]: Info: Color coding: SDR (Rec. 601)
[2025-08-27 19:02:42.566]: Info: Color depth: 8-bit
[2025-08-27 19:02:42.566]: Info: Color range: JPEG
[2025-08-27 19:02:42.587]: Info: vaapi vendor: Mesa Gallium driver 25.2.1-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.12.43-1-lts)
[2025-08-27 19:02:42.588]: Info: Streaming bitrate is 1000000
[2025-08-27 19:02:42.588]: Info: Using normal encoding mode
[2025-08-27 19:02:42.588]: Info: Using default rate control
[2025-08-27 19:02:42.613]: Info: Creating encoder [hevc_vaapi]
[2025-08-27 19:02:42.613]: Info: Color coding: SDR (Rec. 601)
[2025-08-27 19:02:42.613]: Info: Color depth: 8-bit
[2025-08-27 19:02:42.613]: Info: Color range: JPEG
[2025-08-27 19:02:42.626]: Info: vaapi vendor: Mesa Gallium driver 25.2.1-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.12.43-1-lts)
[2025-08-27 19:02:42.626]: Info: Streaming bitrate is 1000000
[2025-08-27 19:02:42.626]: Info: Using normal encoding mode
[2025-08-27 19:02:42.626]: Info: Using default rate control
[2025-08-27 19:02:42.647]: Info: Creating encoder [av1_vaapi]
[2025-08-27 19:02:42.647]: Info: Color coding: SDR (Rec. 601)
[2025-08-27 19:02:42.647]: Info: Color depth: 8-bit
[2025-08-27 19:02:42.647]: Info: Color range: JPEG
[2025-08-27 19:02:42.660]: Info: vaapi vendor: Mesa Gallium driver 25.2.1-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.12.43-1-lts)
[2025-08-27 19:02:42.660]: Info: Streaming bitrate is 1000000
[2025-08-27 19:02:42.660]: Error: [av1_vaapi @ 0x7ca78404a8c0] No usable encoding profile found.
[2025-08-27 19:02:42.660]: Error: Could not open codec [av1_vaapi]: Function not implemented
[2025-08-27 19:02:42.662]: Info: Screencasting with Wayland's protocol
[2025-08-27 19:02:42.662]: Info: Found display [wayland-1]
[2025-08-27 19:02:42.663]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-08-27 19:02:42.663]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-08-27 19:02:42.663]: Info: Found interface: zwp_linux_dmabuf_v1(61) version 5
[2025-08-27 19:02:42.663]: Info: Found interface: wl_output(62) version 4
[2025-08-27 19:02:42.663]: Info: Found interface: wl_output(64) version 4
[2025-08-27 19:02:42.663]: Info: Found interface: wl_output(65) version 4
[2025-08-27 19:02:42.663]: Info: Resolution: 2560x1440
[2025-08-27 19:02:42.663]: Info: Name: HEADLESS-2
[2025-08-27 19:02:42.663]: Info: Offset: 4608x0
[2025-08-27 19:02:42.663]: Info: Logical size: 2560x1440
[2025-08-27 19:02:42.663]: Info: Selected monitor [] for streaming
[2025-08-27 19:02:42.663]: Info: Creating encoder [hevc_vaapi]
[2025-08-27 19:02:42.663]: Info: Color coding: SDR (Rec. 709)
[2025-08-27 19:02:42.663]: Info: Color depth: 10-bit
[2025-08-27 19:02:42.663]: Info: Color range: JPEG
[2025-08-27 19:02:42.674]: Info: vaapi vendor: Mesa Gallium driver 25.2.1-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.12.43-1-lts)
[2025-08-27 19:02:42.675]: Info: Streaming bitrate is 1000000
[2025-08-27 19:02:42.675]: Info: Using normal encoding mode
[2025-08-27 19:02:42.675]: Info: Using default rate control
[2025-08-27 19:02:42.695]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-08-27 19:02:42.695]: Info: 
[2025-08-27 19:02:42.695]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-08-27 19:02:42.695]: Info: 
[2025-08-27 19:02:42.695]: Info: Found H.264 encoder: h264_vaapi [vaapi]
[2025-08-27 19:02:42.695]: Info: Found HEVC encoder: hevc_vaapi [vaapi]
[2025-08-27 19:02:42.695]: Info: Executing [Desktop]
[2025-08-27 19:02:42.738]: Info: Video encryption enabled
[2025-08-27 19:02:42.738]: Info: New streaming session started [active sessions: 1]
[2025-08-27 19:02:42.768]: Info: CLIENT CONNECTED
[2025-08-27 19:02:42.812]: Info: Found display [wayland-1]
[2025-08-27 19:02:42.812]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-08-27 19:02:42.812]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-08-27 19:02:42.812]: Info: Found interface: zwp_linux_dmabuf_v1(61) version 5
[2025-08-27 19:02:42.812]: Info: Found interface: wl_output(62) version 4
[2025-08-27 19:02:42.812]: Info: Found interface: wl_output(64) version 4
[2025-08-27 19:02:42.812]: Info: Found interface: wl_output(65) version 4
[2025-08-27 19:02:42.812]: Info: Resolution: 2560x1440
[2025-08-27 19:02:42.812]: Info: Resolution: 2560x1440
[2025-08-27 19:02:42.812]: Info: Resolution: 2560x1440
[2025-08-27 19:02:42.812]: Info: Name: eDP-1
[2025-08-27 19:02:42.812]: Info: Found monitor: Chimei Innolux Corporation 0x1540  (eDP-1)
[2025-08-27 19:02:42.812]: Info: Offset: 0x975
[2025-08-27 19:02:42.812]: Info: Logical size: 2048x1152
[2025-08-27 19:02:42.812]: Info: Name: HDMI-A-1
[2025-08-27 19:02:42.813]: Info: Found monitor: HKC OVERSEAS LIMITED MG27Q 0000000000001 (HDMI-A-1)
[2025-08-27 19:02:42.813]: Info: Offset: 2048x0
[2025-08-27 19:02:42.813]: Info: Logical size: 2560x1440
[2025-08-27 19:02:42.813]: Info: Name: HEADLESS-2
[2025-08-27 19:02:42.813]: Info: Offset: 4608x0
[2025-08-27 19:02:42.813]: Info: Logical size: 2560x1440
[2025-08-27 19:02:42.813]: Info: -------- Start of Wayland monitor list --------
[2025-08-27 19:02:42.813]: Info: Monitor 0 is eDP-1: Chimei Innolux Corporation 0x1540  (eDP-1)
[2025-08-27 19:02:42.813]: Info: Monitor 1 is HDMI-A-1: HKC OVERSEAS LIMITED MG27Q 0000000000001 (HDMI-A-1)
[2025-08-27 19:02:42.813]: Info: Monitor 2 is HEADLESS-2: 
[2025-08-27 19:02:42.813]: Info: --------- End of Wayland monitor list ---------
[2025-08-27 19:02:42.813]: Info: Screencasting with Wayland's protocol
[2025-08-27 19:02:42.813]: Info: Found display [wayland-1]
[2025-08-27 19:02:42.813]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-08-27 19:02:42.813]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-08-27 19:02:42.813]: Info: Found interface: zwp_linux_dmabuf_v1(61) version 5
[2025-08-27 19:02:42.813]: Info: Found interface: wl_output(62) version 4
[2025-08-27 19:02:42.813]: Info: Found interface: wl_output(64) version 4
[2025-08-27 19:02:42.813]: Info: Found interface: wl_output(65) version 4
[2025-08-27 19:02:42.813]: Info: Resolution: 2560x1440
[2025-08-27 19:02:42.813]: Info: Name: HEADLESS-2
[2025-08-27 19:02:42.813]: Info: Offset: 4608x0
[2025-08-27 19:02:42.813]: Info: Logical size: 2560x1440
[2025-08-27 19:02:42.813]: Info: Selected monitor [] for streaming
[2025-08-27 19:02:42.813]: Info: Creating encoder [h264_vaapi]
[2025-08-27 19:02:42.813]: Info: Color coding: SDR (Rec. 709)
[2025-08-27 19:02:42.813]: Info: Color depth: 8-bit
[2025-08-27 19:02:42.813]: Info: Color range: MPEG
[2025-08-27 19:02:42.833]: Info: vaapi vendor: Mesa Gallium driver 25.2.1-arch1.2 for AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.61, 6.12.43-1-lts)
[2025-08-27 19:02:42.833]: Info: Streaming bitrate is 7308000
[2025-08-27 19:02:42.833]: Info: Using normal encoding mode
[2025-08-27 19:02:42.833]: Info: Using default rate control
[2025-08-27 19:02:42.844]: Info: Minimum FPS target set to ~30fps (33.3333ms)
[2025-08-27 19:02:43.230]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2025-08-27 19:02:43.242]: Info: Opus initialized: 48 kHz, 2 channels, 96 kbps (total), LOWDELAY
[2025-08-27 19:02:43.878]: Error: Failed to create buffer from params

FrankHan052176 avatar Aug 27 '25 04:08 FrankHan052176

It does work fine for me; my setup differs in the following way:

  • I have left the capture method and encoder to automatic (capture method might be the issue here)
  • I have not explicitly specified the adapter name in my sunshine config (i guess it shouldn't make a difference if it is correct)
  • the nvenc encoder is used instead of vaapi (i don't think that's the issue)
  • instead of creating the virtual monitor using hyprctl before starting sunshine, I have the following bash script as a prep command: (no clue if that makes a difference in this case)
#!/bin/bash

VIRT_MON_WIDTH=${SUNSHINE_CLIENT_WIDTH:-1920}
VIRT_MON_HEIGHT=${SUNSHINE_CLIENT_HEIGHT:-1080}
VIRT_MON_REFRESH_RATE=${SUNSHINE_CLIENT_FPS:-60}

# create virtual monitor for sunshine
hyprctl output create headless sunshine_mon

# disable regular monitors
hyprctl --batch "keyword monitor DP-1,disable ; keyword monitor DP-2,disable ; keyword monitor DP-3,disable"

# set Sunshine monitor resolution
hyprctl keyword monitor sunshine_mon,${VIRT_MON_WIDTH}x${VIRT_MON_HEIGHT}@${VIRT_MON_REFRESH_RATE},0x0,1

# switch to a workspace named sunshine
hyprctl dispatch workspace name:Sunshine

I'd suspect the capture method might be the issue here, but my log (just like yours does) also contains the following lines (which to me seem to be about the capture method):

[2025-10-03 12:20:36.683]: Info: Screencasting with Wayland's protocol
[2025-10-03 12:20:36.683]: Info: Found display [wayland-1]
[2025-10-03 12:20:36.684]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-10-03 12:20:36.684]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-10-03 12:20:36.684]: Info: Found interface: zwp_linux_dmabuf_v1(60) version 5
[2025-10-03 12:20:36.684]: Info: Found interface: wl_output(64) version 4

So it's weird that it does not work for you when it does for me.

tm-frs avatar Oct 03 '25 10:10 tm-frs

thx,I will try it when I finish my exam.

FrankHan052176 avatar Oct 12 '25 01:10 FrankHan052176