Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surface Duo 2 screen detection does not work #1306

Closed
3 tasks done
jason-ogaard opened this issue Aug 22, 2022 · 7 comments · May be fixed by #1318
Closed
3 tasks done

Surface Duo 2 screen detection does not work #1306

jason-ogaard opened this issue Aug 22, 2022 · 7 comments · May be fixed by #1318
Labels
bug Something isn't working

Comments

@jason-ogaard
Copy link

Preparation

FGO server

NA

FGA build number

1781

Describe the bug

Nothing happens after clicking play and selecting a battle config. App also does not automatically detect support screen to allow me to take screen shots of CEs.

Video

For some reason screen recording fails, it says 'failed to start recording: prepare failed'

Here is a screen shot of the debug areas

Screenshot_20220822-122630

Device model

Surface Duo 2

Android version

11

Screen size

2688 x 1892

RAM

8GB

@jason-ogaard jason-ogaard added the bug Something isn't working label Aug 22, 2022
@reconman
Copy link
Collaborator

Did you configure the Surface Duo Game Area Mode in the settings?

@reconman
Copy link
Collaborator

Please test https://github.com/Fate-Grand-Automata/FGA/suites/7968417259/artifacts/340680930

Use Duo mode with Custom offsets set to 0 on all sides.

@reconman
Copy link
Collaborator

Surface Duo 1 should still work with left and right set to 192, btw.

@reconman
Copy link
Collaborator

@reconman
Copy link
Collaborator

reconman commented Aug 26, 2022

Before, I thought that width was reported as half, that's why I doubled it.

Now, width seems to be the normal value, so FGA treats it as too wide.

To avoid giving you more experimental apps, can you please run

adb shell
dumpsys window windows | toybox sed -n '/Window .*mathewsachin.*:/,/Window .*:/p'| grep -o 'mAppBounds=.*)'

There should be 2 lines of output. Please post them here. They should look like this:

mAppBounds=Rect(0, 103 - 1080, 2268) mMaxBounds=Rect(0, 0 - 1080, 2400)
mAppBounds=Rect(0, 103 - 1080, 2268) mMaxBounds=Rect(0, 0 - 1080, 2400)

@jason-ogaard
Copy link
Author

Here is the output:

mAppBounds=Rect(0, 0 - 1344, 1832) mMaxBounds=Rect(0, 0 - 1344, 1892)
mAppBounds=Rect(1410, 0 - 2754, 1832) mMaxBounds=Rect(1410, 0 - 2754, 1892)

@reconman
Copy link
Collaborator

It pretty much states that one of the FGA windows is covering the left screen and one is covering the right screen. Both are 1892 pixels high.

One of the windows is the app, the other one is the overlay. Since the play button is on the right side of your screenshots, I assume you can't move it to the left side.

I think I have to install the Surface Duo emulator and test it myself, if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants