Ryochan7 / DS4Windows

Like those other ds4tools, but sexier
https://ryochan7.github.io/ds4windows-site/
GNU General Public License v3.0
6.99k stars 808 forks source link

Controller Disconnects and Reconnects every time I switch application windows #2489

Closed PADBX closed 2 years ago

PADBX commented 2 years ago

When my controller is connected via Bluetooth, it disconnects and reconnects every time I switch application windows.

Yohoki commented 2 years ago

Is it disconnecting, or switching between DS4 and XBOX mode? That might just be normal behavior. Easy to fix if that's the case. But we'll need more info to find if that's the problem and to fix it. Log files would help here. Turn on Auto-profile debug logs and try making this disconnect happen a few times and send the logs, please.

Turn on Auto-Profile Debug Logging

Log Files

PADBX commented 2 years ago

Will try to. Interestingly enough after fully charging the controller the problem went away. It also went away when I checked off "Hide DS4 Controller". Does it help to say that the controller is third party?

Yohoki commented 2 years ago

Hide DS4 (Exclusive mode) has some issues. Unless you need it on (And know WHY you need it on), it's usually best to keep that off. HIDHide is a much better tool to use. But I don't know of that causing issues that would disconnect a controller.

I'm not familiar with how 3rd party controllers work, If it's a supported controller, it should just work like a regular controller. But I have no idea how 3rd party controllers that aren't specifically supported work. I don't think that would cause them to disconnect on switching tabs, though. That sounds like the auto-profiler is affecting it.

If the battery was low, it might have turned off the controller, but I wouldn't expect it to auto-reconnect without you hitting the button.

So, the biggest flag that's sticking out to me is your auto-profile and profile settings. Turn on those debug messages, and next time it happens, send me those logs and I'll check them out for you. Happy gaming, until then! :)

Edit: Here's that HIDHide link as well. Shouldn't need Exclusive mode with it installed and set up properly. :) https://github.com/ViGEm/HidHide

Ryochan7 commented 2 years ago

Will try to. Interestingly enough after fully charging the controller the problem went away. It also went away when I checked off "Hide DS4 Controller". Does it help to say that the controller is third party?

I don't recommend using the old "Hide DS4 Controller" workaround anymore. People didn't like when I removed the workaround previously so that is why it still exists in the app. Some apps can actually still detect the controller (probably if not using the HID interface) and force attempt to open it. It can cause some games (Broforce) to hang for a while before startup.

Using HidHide is the recommended way to hide the input controller from other apps on your system. Install that driver and use the bundled configuration utility to hide the device. Make sure to disconnect and then re-connect the controller to ensure the changes take affect. DS4Windows should show a key icon in the main controllers listing if it can find an entry for the input device in HidHide.

https://github.com/ViGEm/HidHide

PADBX commented 2 years ago

So I have the log of it happening again after letting the controller die. Every time I switch an application the CRC-32 check fails 10 times.

You can ignore the exclusive mode part.

ds4windows_log.txt