HandheldCompanion icon indicating copy to clipboard operation
HandheldCompanion copied to clipboard

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

Open xaviergonz opened this issue 2 years ago • 5 comments

Device manufacturer

  • [ ] AYANEO
  • [ ] AYN
  • [ ] AOKZOE
  • [X] ASUS
  • [ ] GPD
  • [ ] ONEXPLAYER
  • [ ] VALVE
  • [ ] LENOVO

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

xaviergonz avatar Nov 18 '23 23:11 xaviergonz

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?

CasperH2O avatar Nov 19 '23 06:11 CasperH2O

None at all

xaviergonz avatar Nov 19 '23 07:11 xaviergonz

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

xaviergonz avatar Nov 19 '23 07:11 xaviergonz

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

CasperH2O avatar Nov 24 '23 12:11 CasperH2O

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.

xaviergonz avatar Nov 24 '23 15:11 xaviergonz