Skip to content

Transition away from ViGEmBus #3527

@Danfun64

Description

@Danfun64

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?

This issue is present in the latest pre-release

Describe the Bug

As of v2025.110.45857, running Sunshine without ViGEmBus installed gives a fatal error on how it's required for gamepad support. ViGEmBus has been discontinued for about 13 months, and it doesn't appear that a proper successor or fork exists for it. I'm not sure if any viable, currently supported alternatives exist, but I don't feel thrilled about installing an unsupported driver that may not work with newer versions of Windows. I'm not sure if there are any solutions to this issue, but I am hopeful that an alternative can be found.

Expected Behavior

No response

Additional Context

I am running a laptop with a dgpu. It appears Sunshine has selected the igpu as default. It's not important to the issue at hand.

Host Operating System

Windows

Operating System Version

24H2 (OS Build 26100.2605)

Architecture

amd64/x86_64

Sunshine commit or version

v2025.110.45857

Package

Windows - portable (not recommended)

GPU Type

Intel

GPU Model

Intel(R) Iris(R) Xe Graphics

GPU Driver/Mesa Version

32.0.101.6078

Capture Method

None

Config

Apps

Relevant log output

[2025-01-10 15:22:56.503]: Info: Sunshine version: v2025.110.45857
[2025-01-10 15:22:56.503]: Info: Package Publisher: LizardByte
[2025-01-10 15:22:56.503]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-01-10 15:22:56.503]: Info: Get support: https://app.lizardbyte.dev/support
[2025-01-10 15:22:56.503]: Info: Provided workaround settings for SettingsManager:
{
  "hdr_blank_delay": null
}
[2025-01-10 15:22:56.507]: Info: Currently available display devices:
[
  {
    "device_id": "{25bbf281-ae3b-53da-97ba-46e0f54e533d}",
    "display_name": "\\\\.\\DISPLAY1",
    "friendly_name": "",
    "info": {
      "hdr_state": "Disabled",
      "origin_point": {
        "x": 0,
        "y": 0
      },
      "primary": true,
      "refresh_rate": {
        "type": "rational",
        "value": {
          "denominator": 237536,
          "numerator": 28508000
        }
      },
      "resolution": {
        "height": 1080,
        "width": 1920
      },
      "resolution_scale": {
        "type": "rational",
        "value": {
          "denominator": 100,
          "numerator": 100
        }
      }
    }
  },
  {
    "device_id": "{a552746a-2d07-5da8-a245-efcaa58a9be4}",
    "display_name": "\\\\.\\DISPLAY2",
    "friendly_name": "VX1755",
    "info": {
      "hdr_state": "Disabled",
      "origin_point": {
        "x": 1920,
        "y": 0
      },
      "primary": false,
      "refresh_rate": {
        "type": "rational",
        "value": {
          "denominator": 247500,
          "numerator": 29700000
        }
      },
      "resolution": {
        "height": 1080,
        "width": 1920
      },
      "resolution_scale": {
        "type": "rational",
        "value": {
          "denominator": 100,
          "numerator": 100
        }
      }
    }
  }
]
[2025-01-10 15:22:56.661]: Info: nvprefs: No need to modify application profile settings
[2025-01-10 15:22:56.661]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2025-01-10 15:22:56.756]: Info: Compiling shaders...
[2025-01-10 15:22:56.794]: Info: System tray created
[2025-01-10 15:22:57.146]: Info: Compiled shaders
[2025-01-10 15:22:57.154]: Fatal: ViGEmBus is not installed or running. You must install ViGEmBus for gamepad support!
[2025-01-10 15:22:57.154]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-01-10 15:22:57.155]: Info: Trying encoder [nvenc]
[2025-01-10 15:22:57.333]: Info: ddprobe.exe 1  --verify-frame-capture returned 0x00000000
[2025-01-10 15:22:57.333]: Info: Set GPU preference: 1
[2025-01-10 15:22:57.391]: Info:
Device Description : Intel(R) Iris(R) Xe Graphics
Device Vendor ID   : 0x00008086
Device Device ID   : 0x000046A6
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16226 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 3840x1080
[2025-01-10 15:22:57.391]: Info: Active GPU has HAGS disabled
[2025-01-10 15:22:57.391]: Info: Using realtime GPU priority
[2025-01-10 15:22:57.391]: Info:
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.589844,0.349609]
Green Primary      : [0.330078,0.554688]
Blue Primary       : [0.15332,0.119141]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2025-01-10 15:22:57.392]: Info: Desktop resolution [1920x1080]
[2025-01-10 15:22:57.392]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-10 15:22:57.392]: Info: Display refresh rate [120.015Hz]
[2025-01-10 15:22:57.392]: Info: Requested frame rate [60fps]
[2025-01-10 15:22:57.392]: Info: Encoder [nvenc] is not supported on this GPU
[2025-01-10 15:22:57.413]: Info: Trying encoder [quicksync]
[2025-01-10 15:22:57.462]: Info:
Device Description : Intel(R) Iris(R) Xe Graphics
Device Vendor ID   : 0x00008086
Device Device ID   : 0x000046A6
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16226 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 3840x1080
[2025-01-10 15:22:57.463]: Info: Active GPU has HAGS disabled
[2025-01-10 15:22:57.463]: Info: Using realtime GPU priority
[2025-01-10 15:22:57.463]: Info:
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.589844,0.349609]
Green Primary      : [0.330078,0.554688]
Blue Primary       : [0.15332,0.119141]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2025-01-10 15:22:57.464]: Info: Desktop resolution [1920x1080]
[2025-01-10 15:22:57.464]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-10 15:22:57.464]: Info: Display refresh rate [120.015Hz]
[2025-01-10 15:22:57.464]: Info: Requested frame rate [60fps]
[2025-01-10 15:22:57.464]: Info: Creating encoder [h264_qsv]
[2025-01-10 15:22:57.464]: Info: Color coding: SDR (Rec. 601)
[2025-01-10 15:22:57.464]: Info: Color depth: 8-bit
[2025-01-10 15:22:57.464]: Info: Color range: JPEG
[2025-01-10 15:22:57.679]: Info: Creating encoder [hevc_qsv]
[2025-01-10 15:22:57.680]: Info: Color coding: SDR (Rec. 601)
[2025-01-10 15:22:57.680]: Info: Color depth: 8-bit
[2025-01-10 15:22:57.680]: Info: Color range: JPEG
[2025-01-10 15:22:57.917]: Info: Creating encoder [av1_qsv]
[2025-01-10 15:22:57.917]: Info: Color coding: SDR (Rec. 601)
[2025-01-10 15:22:57.917]: Info: Color depth: 8-bit
[2025-01-10 15:22:57.917]: Info: Color range: JPEG
[2025-01-10 15:22:58.079]: Error: [av1_qsv @ 00000213e7f78f00] Current codec type is unsupported
[2025-01-10 15:22:58.079]: Error: [av1_qsv @ 00000213e7f78f00] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
[2025-01-10 15:22:58.081]: Error: Could not open codec [av1_qsv]: Function not implemented
[2025-01-10 15:22:58.143]: Info:
Device Description : Intel(R) Iris(R) Xe Graphics
Device Vendor ID   : 0x00008086
Device Device ID   : 0x000046A6
Device Video Mem   : 128 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16226 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 3840x1080
[2025-01-10 15:22:58.143]: Info: Active GPU has HAGS disabled
[2025-01-10 15:22:58.143]: Info: Using realtime GPU priority
[2025-01-10 15:22:58.143]: Info:
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.589844,0.349609]
Green Primary      : [0.330078,0.554688]
Blue Primary       : [0.15332,0.119141]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2025-01-10 15:22:58.143]: Info: Desktop resolution [1920x1080]
[2025-01-10 15:22:58.143]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-01-10 15:22:58.143]: Info: Display refresh rate [120.015Hz]
[2025-01-10 15:22:58.144]: Info: Requested frame rate [60fps]
[2025-01-10 15:22:58.144]: Info: Creating encoder [hevc_qsv]
[2025-01-10 15:22:58.144]: Info: Color coding: SDR (Rec. 709)
[2025-01-10 15:22:58.144]: Info: Color depth: 10-bit
[2025-01-10 15:22:58.144]: Info: Color range: JPEG
[2025-01-10 15:22:58.393]: Info:
[2025-01-10 15:22:58.394]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-01-10 15:22:58.394]: Info:
[2025-01-10 15:22:58.394]: Info: Found H.264 encoder: h264_qsv [quicksync]
[2025-01-10 15:22:58.394]: Info: Found HEVC encoder: hevc_qsv [quicksync]
[2025-01-10 15:22:58.436]: Info: Open the Web UI to set your new username and password and getting started
[2025-01-10 15:22:58.436]: Info: File C:\Users\Danfun360\Downloads\Temp\Sunshine\config\sunshine_state.json doesn't exist
[2025-01-10 15:22:58.451]: Info: Configuration UI available at [https://localhost:47990]
[2025-01-10 15:22:59.222]: Info: Registered Sunshine mDNS service
[2025-01-10 15:23:15.138]: Info: Web UI: [127.0.0.1] -- not authorized
[2025-01-10 15:23:28.712]: Info: New credentials have been created
[2025-01-10 15:23:33.738]: Info: Web UI: [127.0.0.1] -- not authorize

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions