RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

Controllers cease to function after PC enters sleep mode

Open namenamenam opened this issue 7 months ago • 3 comments

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

  1. Open RetroArch.
  2. Connect HID game controller
  3. Put PC into sleep mode, by closing a laptop's lid or otherwise
  4. Wake the PC after any amount of time
  5. 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


namenamenam avatar May 24 '25 13:05 namenamenam

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.

gouchi avatar May 29 '25 11:05 gouchi

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.

namenamenam avatar May 31 '25 17:05 namenamenam

Thank you, if possible you could submit the autoconfig file in the dinput directory as explained in the documentation.

gouchi avatar Jun 01 '25 19:06 gouchi