Controllers cease to function after PC enters sleep mode
Is there an existing issue for this?
- [x] This is a bug in RetroArch frontend
- [x] I have searched the existing issues
Description
After the PC enters sleep mode while a HID controller is connected, the RetroArch stops receiving input from the device. The only way to fix it is to replug the device or restart RetroArch.
Expected behavior
The controller continues to function as though the PC never entered sleep mode.
Steps to reproduce the bug
- Open RetroArch.
- Connect HID game controller
- Put PC into sleep mode, by closing a laptop's lid or otherwise
- Wake the PC after any amount of time
- No input is received from the controller
Version/Commit
1.21.0 stable
Bisect Results
No response
Present in the nightly version
Yes, this is reproduced in the nightly build
Platform & operating system
Windows 11 22H2
Affected Cores
No response
Environment information
Happens regardless of full screen or windowed Controller is generic dinput device with a manually defined configuration Happens regardless of input driver
Relevant log output
Hi,
Controller is generic dinput device with a manually defined configuration
You should add it to the retroarch-joypad-autoconfig repository.
Can you provide some log ? Which controller are you using ?
Thank you.
The input device in question is actually an adapter for SNES controllers. This is its autoconfig file. This is the log file of the controller being used, then sleeping and waking the PC. The issue seems to have resolved itself between the creation of the issue and now, but I won't close it yet in case this happens again soon.
Thank you, if possible you could submit the autoconfig file in the dinput directory as explained in the documentation.