-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
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?
I'm too lazy to test
Describe the Bug
when you're playing trough 'outside steam game'(Desktop profile) like XBOX/GAMEPASS/WINDOWS STORE version of games,(i tested in STALKER2) in certain times passed, Sunshine(exactly suspected ViGEM bus driver) side took out controller(that already connected before excute sunshine) as input device in the middle, that makes controller state as 'physically connected to windows but logically disconnected state'.
and all the applications can't recorgnize the controller itself.
you can't play games further more either remote or local.
even in after your shutdown the whole sunshine.
(that's why i'm suspect the ViGEM bus driver, not the sunshine itself)
Expected Behavior
when gamecontroller input device are not pushed from guest session, sunshine and vigem no need to interfirrience the 'local connected gamecontroller' input device.
either original raw controller or virtual controller, user can control which one to choose, or at least sunshine concern 'guest session only use keyboard/mouse from remote' or just simply profile the really local enviorments.
(when streaming only video/audio, and inputs are native like wiimote-dolphin play that no place to ViGEM interffirience)
Additional Context
simply describe my enviorment is just host pc in the room and living couch TV just over single wall.
as expected connect input device from guest device got lots of limitation, latency and (nonstop Rumble by DeSync kind) issues.
and cause of that, i'm always connect controller input from host side, either use steamlink or moonlight-sunshine.
not like other BT controllers interfirrience and laggy, XBOX con trough Wifi-Direct dongle usually fine.
only workaround is shutdown the entire windows to system recorgnized input device connected from local again.
but sooner or later sunshine and ViGEM hook the input device in the middle and make it impossible to use state
(only accept virtual controller from guest remote session side inputs state).
you can't 'recover from this hw locked by driver/virtual controller state' so even i can't say this as 'workaround'
strange thing is, when you're playing steam games from steam side(Steam Big Pictures profile), vigem virtual controller side behavior and this bug doesn't happen. (tested Death Stranding Steam Version various hours)
i'm assuming steam input and they're steamLINK/remote related API might be working separatly or forced prioriety in over bigpicture modes? not sure.
i'd experience this bugs from lastest release build and one version back release build.
i'll try to test further with just force uninstall vigem bus driver state.
expected i can't use keyboard and mouse from guest device side cause vigem is not exist anymore.
i'm using in general enviroment as others, only few variables are
- HDR/VP9(trough nvidia 3070)
- LG TV WebOS - Moonlight trough homebrew app Moonlight TV
- games run on 'non-steam' or 'trough XBOX UWP app'
if it's just sunshine side trigger behavior on ViGEM, then i bet it's not that complicate issues(to wait ViGEM side changes kinds)
if this issue is not duplicated and need an logs, i'll test more and post later.
Host Operating System
Windows
Operating System Version
Win11 24H2 26100.4946
Architecture
amd64/x86_64
Sunshine commit or version
v2025.628.4510
Package
Windows - installer (recommended)
GPU Type
NVIDIA
GPU Model
GeForce 3070
GPU Driver/Mesa Version
581.08
Capture Method
None
Config
controller = disabled
dd_wa_hdr_toggle = enabled
key_rightalt_to_key_win = enabled
locale = ko
min_threads = 8
stream_audio = true
Apps
{
"env": {},
"apps": [
{
"name": "Desktop",
"image-path": "desktop.png"
},
{
"name": "Steam Big Picture",
"cmd": "steam://open/bigpicture",
"auto-detach": "true",
"wait-all": "true",
"image-path": "steam.png"
}
]
}
Relevant log output
[2025-08-25 19:43:26.630]: Info: Sunshine version: v2025.628.4510
[2025-08-25 19:43:26.630]: Info: Package Publisher: LizardByte
[2025-08-25 19:43:26.630]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-08-25 19:43:26.630]: Info: Get support: https://app.lizardbyte.dev/support
[2025-08-25 19:43:26.630]: Info: config: 'controller' = disabled
[2025-08-25 19:43:26.630]: Info: config: 'dd_wa_hdr_toggle' = enabled
[2025-08-25 19:43:26.630]: Info: config: 'key_rightalt_to_key_win' = enabled
[2025-08-25 19:43:26.630]: Info: config: 'locale' = ko
[2025-08-25 19:43:26.630]: Info: config: 'min_threads' = 8
[2025-08-25 19:43:26.630]: Info: config: 'stream_audio' = true
[2025-08-25 19:43:26.630]: Info: Provided workaround settings for SettingsManager:
{
"hdr_blank_delay": null
}
[2025-08-25 19:43:26.634]: Info: Currently available display devices:
[
{
"device_id": "{9210baa3-2df5-5ac7-ab1b-381b552c5630}",
"display_name": "\\\\.\\DISPLAY1",
"edid": {
"manufacturer_id": "GSM",
"product_code": "5BBF",
"serial_number": 461985
},
"friendly_name": "LG ULTRAGEAR+",
"info": {
"hdr_state": "Enabled",
"origin_point": {
"x": 0,
"y": 0
},
"primary": true,
"refresh_rate": {
"type": "rational",
"value": {
"denominator": 1000,
"numerator": 143999
}
},
"resolution": {
"height": 2160,
"width": 3840
},
"resolution_scale": {
"type": "rational",
"value": {
"denominator": 100,
"numerator": 150
}
}
}
}
]
[2025-08-25 19:43:26.832]: Info: nvprefs: No need to modify application profile settings
[2025-08-25 19:43:26.832]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2025-08-25 19:43:26.877]: Info: Compiling shaders...
[2025-08-25 19:43:26.912]: Info: System tray created
[2025-08-25 19:43:27.148]: Info: Compiled shaders
[2025-08-25 19:43:27.155]: Fatal: ViGEmBus is not installed or running. You must install ViGEmBus for gamepad support!
[2025-08-25 19:43:27.157]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-08-25 19:43:27.157]: Info: Trying encoder [nvenc]
[2025-08-25 19:43:27.530]: Info:
Device Description : NVIDIA GeForce RTX 3070
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002484
Device Video Mem : 8018 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 32650 MiB
Feature Level : 0x0000B100
Capture size : 3840x2160
Offset : 0x0
Virtual Desktop : 3840x2160
[2025-08-25 19:43:27.530]: Info: Active GPU has HAGS enabled
[2025-08-25 19:43:27.530]: Info: Using realtime GPU priority
[2025-08-25 19:43:27.530]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020
Bits Per Color : 10
Red Primary : [0.679688,0.313477]
Green Primary : [0.267578,0.68457]
Blue Primary : [0.151367,0.0546875]
White Point : [0.3125,0.329102]
Min Luminance : 0.1009 nits
Max Luminance : 603.698 nits
Max Full Luminance : 400 nits
[2025-08-25 19:43:27.531]: Info: Desktop resolution [3840x2160]
[2025-08-25 19:43:27.531]: Info: Desktop format [DXGI_FORMAT_R16G16B16A16_FLOAT]
[2025-08-25 19:43:27.531]: Info: Display refresh rate [143.999Hz]
[2025-08-25 19:43:27.531]: Info: Requested frame rate [60fps]
[2025-08-25 19:43:27.532]: Info: Creating encoder [h264_nvenc]
[2025-08-25 19:43:27.532]: Info: Color coding: SDR (Rec. 601)
[2025-08-25 19:43:27.532]: Info: Color depth: 8-bit
[2025-08-25 19:43:27.532]: Info: Color range: JPEG
[2025-08-25 19:43:27.592]: Info: NvEnc: created encoder H.264 P1 async two-pass rfi
[2025-08-25 19:43:27.628]: Info: Creating encoder [hevc_nvenc]
[2025-08-25 19:43:27.628]: Info: Color coding: SDR (Rec. 601)
[2025-08-25 19:43:27.628]: Info: Color depth: 8-bit
[2025-08-25 19:43:27.628]: Info: Color range: JPEG
[2025-08-25 19:43:27.686]: Info: NvEnc: created encoder HEVC P1 async two-pass rfi
[2025-08-25 19:43:27.714]: Info: Creating encoder [av1_nvenc]
[2025-08-25 19:43:27.714]: Info: Color coding: SDR (Rec. 601)
[2025-08-25 19:43:27.714]: Info: Color depth: 8-bit
[2025-08-25 19:43:27.714]: Info: Color range: JPEG
[2025-08-25 19:43:27.742]: Error: NvEnc: encoding format is not supported by the gpu
[2025-08-25 19:43:27.742]: Error: NvEnc: NvEncUnregisterAsyncEvent() failed: NV_ENC_ERR_DEVICE_NOT_EXIST
[2025-08-25 19:43:27.749]: Info: Creating encoder [h264_nvenc]
[2025-08-25 19:43:27.749]: Info: Color coding: SDR (Rec. 601)
[2025-08-25 19:43:27.749]: Info: Color depth: 8-bit
[2025-08-25 19:43:27.749]: Info: Color range: JPEG
[2025-08-25 19:43:27.810]: Info: NvEnc: created encoder H.264 P1 async yuv444 two-pass rfi
[2025-08-25 19:43:28.138]: Info:
Device Description : NVIDIA GeForce RTX 3070
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002484
Device Video Mem : 8018 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 32650 MiB
Feature Level : 0x0000B100
Capture size : 3840x2160
Offset : 0x0
Virtual Desktop : 3840x2160
[2025-08-25 19:43:28.139]: Info: Active GPU has HAGS enabled
[2025-08-25 19:43:28.139]: Info: Using realtime GPU priority
[2025-08-25 19:43:28.139]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020
Bits Per Color : 10
Red Primary : [0.679688,0.313477]
Green Primary : [0.267578,0.68457]
Blue Primary : [0.151367,0.0546875]
White Point : [0.3125,0.329102]
Min Luminance : 0.1009 nits
Max Luminance : 603.698 nits
Max Full Luminance : 400 nits
[2025-08-25 19:43:28.140]: Info: Desktop resolution [3840x2160]
[2025-08-25 19:43:28.140]: Info: Desktop format [DXGI_FORMAT_R16G16B16A16_FLOAT]
[2025-08-25 19:43:28.140]: Info: Display refresh rate [143.999Hz]
[2025-08-25 19:43:28.140]: Info: Requested frame rate [60fps]
[2025-08-25 19:43:28.140]: Info: Creating encoder [hevc_nvenc]
[2025-08-25 19:43:28.140]: Info: Color coding: HDR (Rec. 2020 + SMPTE 2084 PQ)
[2025-08-25 19:43:28.140]: Info: Color depth: 10-bit
[2025-08-25 19:43:28.140]: Info: Color range: JPEG
[2025-08-25 19:43:28.338]: Info: NvEnc: created encoder HEVC P1 async yuv444 10-bit two-pass rfi
[2025-08-25 19:43:28.397]: Info:
[2025-08-25 19:43:28.397]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-08-25 19:43:28.397]: Info:
[2025-08-25 19:43:28.397]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2025-08-25 19:43:28.397]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2025-08-25 19:43:28.415]: Info: Configuration UI available at [https://localhost:47990]
[2025-08-25 19:43:29.161]: Info: Registered Sunshine mDNS service
[2025-08-25 19:43:31.009]: Info: Web UI: [127.0.0.1] -- not authorized