Valkirie / HandheldCompanion

ControllerService
Other
1.19k stars 93 forks source link

Asus Rog Ally wakes from sleep immediately when emulating XBOX 360 Controller #834

Open xaviergonz opened 11 months ago

xaviergonz commented 11 months ago

Device manufacturer

Device model Asus Rog Ally

Handheld Companinion Version 0.19.0.2

Describe the bug When there is an emulated Xbox 360 controller enabled, then, sometimes, using the sleep button to sleep (not to hybernate) will immediately wake it up with the lock screen. This gets fixed if the emulated controller is a DS4 or the emulated controller is disconnected. Asus Armory Crate software (except My Asus) is uninstalled. Asus Armory Crate Interface is disabled in BIOS.

To Reproduce Steps to reproduce the behavior:

  1. Have HC set to emulate a xbox 360.
  2. Press the sleep button.
  3. It will turn off for less than a second, then turn on again in the lock screen.
  4. If HC is set to emulate a DS4 or none it will go to sleep properly.

Expected behavior It should go to sleep properly.

Screenshots N/A

Logs file Didn't find any log file for the day where it happened

CasperH2O commented 11 months ago

Will see if I can reproduce this on my ROG Ally. Do you have Desktop mode active or any layout remap that activates mouse or keyboard buttons?

xaviergonz commented 11 months ago

None at all

xaviergonz commented 11 months ago

The original controller is not hidden, but I think it didn't matter if it was or not IIRC.

CasperH2O commented 11 months ago

Hey @xaviergonz I just did some serious research on a device sleep when running HC, my conclusion is that HC has no effect on it. You can read more about it here: https://github.com/Valkirie/HandheldCompanion/issues/754

Could you check with an administrator command prompt what has effect on sleep for you device with the following command:

powercfg -requests

xaviergonz commented 11 months ago

I just uploaded a video https://www.youtube.com/watch?v=2fn6wYBHNEc

Basically it seems that when xbox emulation is enabled the xbox controler driver will unmount and that seems to wake it up again, and unlocking the device makes the driver appear again.

If there's no controller emulation or it is set to ps4 this doesn't happen

powercfg doesnt show anything strange.