scrcpy icon indicating copy to clipboard operation
scrcpy copied to clipboard

Quest 2 stuck on black screen

Open anton-exe opened this issue 3 years ago • 9 comments

  • [x] I have read the FAQ.
  • [x] I have searched in existing issues.

Environment

  • OS: Arch Linux
  • scrcpy version: 1.24
  • installation method: pacman
  • device model: Quest 2
  • Android version: 10

Describe the bug After setting the -w flag the device went to sleep anyways and got stuck on the same image after being awakened. After reboot the screen is black with the backlight on.

On errors, please provide the output of the console (and adb logcat if relevant). N/A

anton-exe avatar Sep 09 '22 14:09 anton-exe

After setting the -w flag the device went to sleep anyways

Is the device connected over USB? This flag sets the Android setting stay_on_while_plugged_in, which prevents the device to sleep only when plugged in.

got stuck on the same image after being awakened

Which SDL version? Wayland? If you record (scrcpy --record file.mp4), is the image also stuck in the recorded file?

rom1v avatar Sep 09 '22 14:09 rom1v

Is the device connected over USB?

No. I was using tcpip and didn't know it worked like that.

Which SDL version? Wayland?

Not 100% sure what an SDL is but I use Xorg.

I'll try recording in a moment.

anton-exe avatar Sep 09 '22 14:09 anton-exe

The recording is blank apart from the 3 loading dots which also appear in the headset but I forgot to mention.

https://user-images.githubusercontent.com/43962111/189379420-0e97dc99-7fa3-477a-a70f-db92d1554b97.mp4

anton-exe avatar Sep 09 '22 14:09 anton-exe

Oh so you probably just run an app with a protected screen (FLAG_SECURE, #36, #2129)

rom1v avatar Sep 09 '22 15:09 rom1v

I think the login menu has that then :/. Do you know how to bypass this since the issues don't seem to mention it.

Also, there might have been a misunderstanding. The device itself has a black screen.

anton-exe avatar Sep 09 '22 15:09 anton-exe

there might have been a misunderstanding. The device itself has a black screen.

Ah, then it's not a problem in scrcpy (unless you pass -S/--turn-screen-off).

rom1v avatar Sep 09 '22 15:09 rom1v

Do you kow how to fix it though? I tried googling but noone else had this problem, I don't know where else to ask, and this problem seems to have been caused by using the -w flag.

anton-exe avatar Sep 09 '22 15:09 anton-exe

this problem seems to have been caused by using the -w flag

Probably not.

Did you pass any other flag?

Do you kow how to fix it though?

I don't know what the problem is. Your device shows a black screen, it is probably not related to scrcpy.

rom1v avatar Sep 09 '22 15:09 rom1v

Did you pass any other flag? I also passed --crop which was working fine alone.

The problem only started after I used -w, and the screen's backlight is still on.

Also, sorry for posting here, I just don't know where else to look for help.

anton-exe avatar Sep 09 '22 15:09 anton-exe

i should prob just close this since it was likely a device issue in hindsight

anton-exe avatar Nov 18 '23 21:11 anton-exe