Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Controller suddenly stopped working. Tried all the logical things, no movement.

Open xoniq opened this issue 1 year ago • 8 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 nightly release?

  • [X] This issue is present in the nightly release

Describe the Bug

Controller not working anymore since a few weeks out of the blue

I’m using Sunshine + Moonlight for as long as Sunshine exists and Moonlight back on Nvidia Game Steam. Recently I wanted to resume a game, but noticed that the controller doesn’t work anymore.

I’m using Moonlight on the Apple TV, I can use the controller to navigate to moonlight, select for example ‘Desktop’ on Moonlight. As soon as the desktop appears, it doesn’t do anything anymore. What I’ve tried on moonlight:

  • Gamepad tester website in desktop
  • Steam Big Picture mode (by default setup in Sunshine)
  • Any game I always played

Non works. What I’ve tried furthermore:

  • Remove ViGEmBus
  • Check for Sunshine updates (running v0.22.2)
  • Downgrade in steps to v0.22.0, v0.21.0, v0.20.0, etc.
  • At every downgrade a reboot, followed by reinstall of ViGEmBus, reboot etc.
  • Remove ViGEmBus
  • Switched back to v0.22.2 (warned about missing ViGEmBus)
  • Reinstalled ViGEmBus + reboot
  • No more warning, also no ViGEmBus connect warning in log
  • Still no response

Steam Link does work however, I find the quality and latency of link slightly inferior to Moonlight + Sunshine. So I want to fix it. Took my time today to spend many hours over it, normally I give advice in this sub, but now I’m the one who’s stuck.

  • PC: Windows 11 wired
  • Client: Apple TV 4K (latest with ethernet)
  • Controller: Xbox Series X controller
  • I also tried Moonlight on my Steam Deck, same issue, no response at all

Here is my Sunshine log after a fresh reboot, connectd with Moonlight, pressed a few buttons on my Xbox Series X controller, and closed it (again, no response in Windows on the controller)

Expected Behavior

The controller to work. Which it did for a long time.

Additional Context

No response

Host Operating System

Windows

Operating System Version

11

Architecture

64 bit

Sunshine commit or version

Latest

Package

Windows - installer

GPU Type

AMD

GPU Model

RX 6800

GPU Driver/Mesa Version

Latest

Capture Method (Linux Only)

No response

Config

.

Apps

No response

Relevant log output

[2024:03:23:16:12:54]: Info: Sunshine version: 0.22.2
[2024:03:23:16:12:54]: Info: nvprefs: NvAPI_Initialize() failed, ignore if you don't have NVIDIA video card
[2024:03:23:16:12:54]: Info: Compiling shaders...
[2024:03:23:16:12:54]: Info: System tray created
[2024:03:23:16:12:54]: Info: Compiled shaders
[2024:03:23:16:12:54]: Info: Trying encoder [amdvce]
[2024:03:23:16:12:54]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2024:03:23:16:12:54]: Info: Set GPU preference: 1
[2024:03:23:16:12:54]: Info: 
Device Description : AMD Radeon RX 6800
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000073BF
Device Video Mem   : 16338 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 24545 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2024:03:23:16:12:54]: Info: Active GPU has HAGS disabled
[2024:03:23:16:12:54]: Info: Using realtime GPU priority
[2024:03:23:16:12:54]: Info: Desktop resolution [3840x2160]
[2024:03:23:16:12:54]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:23:16:12:54]: Info: Display refresh rate [60Hz]
[2024:03:23:16:12:54]: Info: Requested frame rate [60fps]
[2024:03:23:16:12:54]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.4665 nits
Max Luminance      : 486 nits
Max Full Luminance : 486 nits
[2024:03:23:16:12:54]: Info: SDR color coding [Rec. 601]
[2024:03:23:16:12:54]: Info: Color depth: 8-bit
[2024:03:23:16:12:54]: Info: Color range: [JPEG]
[2024:03:23:16:12:54]: Info: SDR color coding [Rec. 601]
[2024:03:23:16:12:54]: Info: Color depth: 8-bit
[2024:03:23:16:12:54]: Info: Color range: [JPEG]
[2024:03:23:16:12:54]: Info: SDR color coding [Rec. 601]
[2024:03:23:16:12:54]: Info: Color depth: 8-bit
[2024:03:23:16:12:54]: Info: Color range: [JPEG]
[2024:03:23:16:12:54]: Error: [av1_amf @ 000001fbce922240] CreateComponent(AMFVideoEncoderHW_AV1) failed with error 30
[2024:03:23:16:12:54]: Error: Could not open codec [av1_amf]: Encoder not found
[2024:03:23:16:12:55]: Info: 
Device Description : AMD Radeon RX 6800
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000073BF
Device Video Mem   : 16338 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 24545 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2024:03:23:16:12:55]: Info: Active GPU has HAGS disabled
[2024:03:23:16:12:55]: Info: Using realtime GPU priority
[2024:03:23:16:12:55]: Info: Desktop resolution [3840x2160]
[2024:03:23:16:12:55]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:23:16:12:55]: Info: Display refresh rate [60Hz]
[2024:03:23:16:12:55]: Info: Requested frame rate [60fps]
[2024:03:23:16:12:55]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.4665 nits
Max Luminance      : 486 nits
Max Full Luminance : 486 nits
[2024:03:23:16:12:55]: Info: SDR color coding [Rec. 709]
[2024:03:23:16:12:55]: Info: Color depth: 10-bit
[2024:03:23:16:12:55]: Info: Color range: [JPEG]
[2024:03:23:16:12:55]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:03:23:16:12:55]: Info: 
[2024:03:23:16:12:55]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:03:23:16:12:55]: Info: 
[2024:03:23:16:12:55]: Info: Found H.264 encoder: h264_amf [amdvce]
[2024:03:23:16:12:55]: Info: Found HEVC encoder: hevc_amf [amdvce]
[2024:03:23:16:12:55]: Info: Configuration UI available at [https://localhost:47990]
[2024:03:23:16:12:55]: Info: Registered Sunshine mDNS service
[2024:03:23:16:13:04]: Error: A UPnP device has been found,  but it wasn't recognized as an IGD
[2024:03:23:16:13:04]: Info: Encoder reenumeration is required
[2024:03:23:16:13:04]: Info: Trying encoder [amdvce]
[2024:03:23:16:13:04]: Info: 
Device Description : AMD Radeon RX 6800
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000073BF
Device Video Mem   : 16338 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 24545 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2024:03:23:16:13:04]: Info: Active GPU has HAGS disabled
[2024:03:23:16:13:04]: Info: Using realtime GPU priority
[2024:03:23:16:13:04]: Info: Desktop resolution [3840x2160]
[2024:03:23:16:13:04]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:23:16:13:04]: Info: Display refresh rate [60Hz]
[2024:03:23:16:13:04]: Info: Requested frame rate [60fps]
[2024:03:23:16:13:04]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.4665 nits
Max Luminance      : 486 nits
Max Full Luminance : 486 nits
[2024:03:23:16:13:04]: Info: SDR color coding [Rec. 601]
[2024:03:23:16:13:04]: Info: Color depth: 8-bit
[2024:03:23:16:13:04]: Info: Color range: [JPEG]
[2024:03:23:16:13:05]: Info: SDR color coding [Rec. 601]
[2024:03:23:16:13:05]: Info: Color depth: 8-bit
[2024:03:23:16:13:05]: Info: Color range: [JPEG]
[2024:03:23:16:13:05]: Info: SDR color coding [Rec. 601]
[2024:03:23:16:13:05]: Info: Color depth: 8-bit
[2024:03:23:16:13:05]: Info: Color range: [JPEG]
[2024:03:23:16:13:05]: Error: [av1_amf @ 000001fbce983200] CreateComponent(AMFVideoEncoderHW_AV1) failed with error 30
[2024:03:23:16:13:05]: Error: Could not open codec [av1_amf]: Encoder not found
[2024:03:23:16:13:05]: Info: 
Device Description : AMD Radeon RX 6800
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000073BF
Device Video Mem   : 16338 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 24545 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2024:03:23:16:13:05]: Info: Active GPU has HAGS disabled
[2024:03:23:16:13:05]: Info: Using realtime GPU priority
[2024:03:23:16:13:05]: Info: Desktop resolution [3840x2160]
[2024:03:23:16:13:05]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:23:16:13:05]: Info: Display refresh rate [60Hz]
[2024:03:23:16:13:05]: Info: Requested frame rate [60fps]
[2024:03:23:16:13:05]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.4665 nits
Max Luminance      : 486 nits
Max Full Luminance : 486 nits
[2024:03:23:16:13:05]: Info: SDR color coding [Rec. 709]
[2024:03:23:16:13:05]: Info: Color depth: 10-bit
[2024:03:23:16:13:05]: Info: Color range: [JPEG]
[2024:03:23:16:13:05]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:03:23:16:13:05]: Info: 
[2024:03:23:16:13:05]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:03:23:16:13:05]: Info: 
[2024:03:23:16:13:05]: Info: Found H.264 encoder: h264_amf [amdvce]
[2024:03:23:16:13:05]: Info: Found HEVC encoder: hevc_amf [amdvce]
[2024:03:23:16:13:05]: Info: Executing [Desktop]
[2024:03:23:16:13:05]: Info: nvprefs: NvAPI_Initialize() failed, ignore if you don't have NVIDIA video card
[2024:03:23:16:13:05]: Info: CLIENT CONNECTED
[2024:03:23:16:13:05]: Info: Gamepad 0 will be Xbox 360 controller (auto-selected by client-reported type)
[2024:03:23:16:13:05]: Info: 
Device Description : AMD Radeon RX 6800
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000073BF
Device Video Mem   : 16338 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 24545 MiB
Feature Level      : 0x0000B100
Capture size       : 3840x2160
Offset             : 0x0
Virtual Desktop    : 3840x2160
[2024:03:23:16:13:05]: Info: Active GPU has HAGS disabled
[2024:03:23:16:13:05]: Info: Using realtime GPU priority
[2024:03:23:16:13:05]: Info: Desktop resolution [3840x2160]
[2024:03:23:16:13:05]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:23:16:13:05]: Info: Display refresh rate [60Hz]
[2024:03:23:16:13:05]: Info: Requested frame rate [60fps]
[2024:03:23:16:13:05]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.639648,0.330078]
Green Primary      : [0.299805,0.599609]
Blue Primary       : [0.150391,0.0595703]
White Point        : [0.3125,0.329102]
Min Luminance      : 0.4665 nits
Max Luminance      : 486 nits
Max Full Luminance : 486 nits
[2024:03:23:16:13:05]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:23:16:13:05]: Info: SDR color coding [Rec. 601]
[2024:03:23:16:13:05]: Info: Color depth: 8-bit
[2024:03:23:16:13:05]: Info: Color range: [MPEG]
[2024:03:23:16:14:20]: Info: CLIENT DISCONNECTED

xoniq avatar Mar 24 '24 09:03 xoniq

To do some tinkering, I removed sunshine and VGiEmBus entirely, no configs, and issue still persists.

Then I found out in the device manager that as soon as I connect with Moonlight to Sunshine that a Xbox 360 controller is created, so that part works.

However the controller shows a exclamation mark, and I cannot resolve that. Even with driver installer suites. Tried everything there.

So Sunshine connects with VGiEmBus but after that no response from controller.

Steam Link still work as expected.

xoniq avatar Mar 25 '24 11:03 xoniq

Try reinstalling vigembus (it may require a few attempts), following each one by a restart.

If that doesn't work, try downgrading vigembus.

ReenigneArcher avatar Mar 25 '24 12:03 ReenigneArcher

Thanks for replying. I tried 3 versions, installed it multiple times, including fully reinstall everything, but I keep only seeing the controller appear in the devices panel from windows, but with an exclamation mark. On the newest version of vigembus the controller doesn’t show up there at all. So it does something.

xoniq avatar Mar 25 '24 13:03 xoniq

Same, tried with multiple versions of vigembus and sunshine, with no luck. I wanted to stream to moonlight on steam deck, the controller wouldn't show up in device manager or in steam controller settings at all. But sunshine didn't even complain anything about this in the log. Thanks for your dedication anyway, I can still steam with keyboard and mouse without issues.

Cabbagec avatar Apr 08 '24 06:04 Cabbagec

Had a similar problem on moonlight embedded. In my case a firmware update to my Xbox Wireless Controller seems to have changed the hardware id code from 050000005e040000200b000013050000 to 050000005e040000130b000020050000. Adding this code to the controller database has worked for me. By the look of the two codes, two identifier numbers seems to have been swapped around. Perhaps a Microsoft oopsie? Might be the case for series x as well. Have you updated the firmware recently?

TheN00r avatar Apr 29 '24 02:04 TheN00r

Had a similar problem on moonlight embedded. In my case a firmware update to my Xbox Wireless Controller seems to have changed the hardware id code from 050000005e040000200b000013050000 to 050000005e040000130b000020050000. Adding this code to the controller database has worked for me. By the look of the two codes, two identifier numbers seems to have been swapped around. Perhaps a Microsoft oopsie? Might be the case for series x as well. Have you updated the firmware recently?

I have the same issue, can you elaborate how I can add the code to the controller database? Thanks!

NiBa97 avatar May 05 '24 17:05 NiBa97

I have the same issue, can you elaborate how I can add the code to the controller database? Thanks!

Wonder it too for my notes. Eventually I reinstalled Windows, and everything is working fine now. So I wonder what caused it eventually.

xoniq avatar May 05 '24 17:05 xoniq

Wonder it too for my notes. Eventually I reinstalled Windows, and everything is working fine now. So I wonder what caused it eventually.

Usually removing some entries in the registry could get the issue solved... But the real issue is, even experts in Windows may not know which entry to remove.....

ClassicOldSong avatar Jul 14 '24 06:07 ClassicOldSong

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

LizardByte-bot avatar Oct 13 '24 10:10 LizardByte-bot

This issue was closed because it has been stalled for 10 days with no activity.

LizardByte-bot avatar Oct 23 '24 10:10 LizardByte-bot

One thing I have found was If I had another controller installed it would put the Moonlight Virtual gamepad as controller 2 and it would not work. Ya would need to disable other controllers or force the virtual controller as controller 1

MikeBrowni3 avatar Apr 20 '25 19:04 MikeBrowni3