alesimula / wsa_pacman

A GUI package manager and package installer for Windows Subsystem for Android (WSA)
GNU General Public License v3.0
3.86k stars 834 forks source link

win11 Could not establish a connection with WSA: Either developer mode and USB debuggin are disabled or a wrong port is specified. #122

Closed 1233Ao closed 1 year ago

1233Ao commented 1 year ago

I'm sure everything that needs to be opened is turned on, I can connect normally a few days ago, today suddenly it doesn't work, I uninstall wsapacman version 1.4.0 and install version 1.4.1, but still can't connect

QQ图片20230625124856 QQ图片20230625124914 QQ图片20230625124917 QQ图片20230625124921

alesimula commented 1 year ago

Try to open a terminal inside the "embedded-tools" directory in the WSA-PacMan program dir and run the command "adb disconnect", then try "adb kill-server"

1233Ao commented 1 year ago

I restarted my computer and waspacman was running normally =-=

alesimula commented 1 year ago

@1233Ao this seems to be caused by the new "Partially Running" option in WSA Settings -> Advanced Settings -> Memory and Performance

It seems that, with this option enabled, WSA goes into an idle state when left running for too long, but I do not know how to check for this state, so I declare the state as "Disconnected" when it should be "Turned off"...

I'll try to look into this, but in the meantime, opening any Android app should fully turn it on

alesimula commented 1 year ago

@1233Ao Actually nevermind, I managed to find a way to detect if the WSA is actually fully running, there shouldn't be this issue in version 1.5.0