-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Display 2 now shows black screen. #3925
Comments
That's unexpected. If you just run Refs #3716.
Probably due to a change in the device system. Refs #1238. |
If I just do scrcpy --turn-screen-off it does the display, and turns off the screen. But if the screen is off to begin with, I get a the lock screen, and swiping up gives me a black screen I can't interact with. |
Oh, that's probably because an unrelated issue: since Android 12, apps with secure flag may not be mirrored (#36, #2129). With screen turned off or not, the mirrored screen is black on apps which request the system to disable capture. And it seems that your vendor lock screen enables this "secure flag". |
So the only way for it to work is to start it when it's on? Because any other way you're going through a lock screen? Ok, what about the main dex issue? Any thoughts? |
Nevermind, I just have to start dex with the screen initially on. |
Environment
Describe the bug
After connecting to adb and running
/usr/local/bin/scrcpy --video-bit-rate 2m --display 2 --window-title 'DexOnLinux' --turn-screen-off --stay-awake
I get a black screen and
[server] WARN: Display doesn't have FLAG_SUPPORTS_PROTECTED_BUFFERS flag, mirroring can be restricted
Which I didn't get before.
/usr/local/bin/scrcpy --video-bit-rate 2m --display 0 --window-title 'DexOnLinux' --turn-screen-off --stay-awake
Works fine, so it's just the actual dex output having problems
But display 0 doesn't respect the screen off option, so the phone display is always on. Whereas
/usr/local/bin/scrcpy --video-bit-rate 2m --display 2 --window-title 'DexOnLinux' --turn-screen-off --stay-awake
Used to let me use dex and keep the phone off.
I am using a USB c dock with an HDMI display terminator-I believe that is still necessary.
The text was updated successfully, but these errors were encountered: