Controllers cease to function after PC enters sleep mode
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 14.1k
- Forks
- 2.2k
- Avg merge
- 7h 35m
- Merged PRs (30d)
- 51
Description
Is there an existing issue for this?
- This is a bug in RetroArch frontend
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue on Windows 11 22H2 with a generic DirectInput controller, then compare input handling before sleep and after wake across the available input drivers. Done means the controller accepts input after waking without being replugged or restarting RetroArch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100