libretro / libretro/RetroArch

Controllers cease to function after PC enters sleep mode

Open
#17,934 3 comments 0 reactions 0 assignees View on GitHub

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
  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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.