Open deeplee opened 4 years ago
I use Ubuntu 18.04 and install scrcpy by snap
See #932
I think this is different of #932
I Use dumpstate see display info is
DisplayDevice: Built-in Screen
type=0, hwcId=0, layerStack=0, (1920x 720), ANativeWindow=0x7b83e23010 (8:8:8:8), orient= 0 (type=00000000), flips=31212, isSecure=1, powerMode=2, activeConfig=0, numLayers=2
v:[0,0,1920,720], f:[0,0,1920,720], s:[0,0,1920,720],transform:[[1.000,0.000,-0.000][0.000,1.000,-0.000][0.000,0.000,1.000]]
wideColorGamut=0, hdr10=0, colorMode=ColorMode::NATIVE, dataspace: Default (0)
FramebufferSurface: dataspace: Default(0)
mAbandoned=0
- BufferQueue mMaxAcquiredBufferCount=2 mMaxDequeuedBufferCount=1
mDequeueBufferCannotBlock=0 mAsyncMode=0
default-size=[1920x720] default-format=1 transform-hint=00 frame-counter=1
and I can get display info like this
DisplayManager dm = (DisplayManager) getSystemService(Context.DISPLAY_SERVICE);
Display dp = dm.getDisplay(Display.DEFAULT_DISPLAY);
Log.d(TAG, "getDisplayInfo: " + dp.getWidth() + "x" + dp.getHeight());
and output
getDisplayInfo: 1920x720
sometimes show this
and sometime show this
and no more