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

Switch off screen not working #611

Closed
srevinsaju opened this issue Jun 22, 2019 · 13 comments
Closed

Switch off screen not working #611

srevinsaju opened this issue Jun 22, 2019 · 13 comments

Comments

@srevinsaju
Copy link

For my guiscrcPy project, I tried to use switch off screen option, and I get the info on terminal that is screen is switched off, but unfortunately, the screen instead of being switched off, it is rather freezing. That I can put the flag or use the shortcut, but at that moment it freezes the screen on the mobile, but screen mirroring works fine.

@rom1v
Copy link
Collaborator

rom1v commented Jun 23, 2019

What if you just pass -S to scrcpy (without guiscrcPy)? It is the same behavior?

@srevinsaju
Copy link
Author

Yea, I did. I even used the shortcut manually. The screen freezes. but mobile display doesn't turn off. I even get the log message, device screen turned off. After device power on and off, everything resets.

@rom1v
Copy link
Collaborator

rom1v commented Jun 25, 2019

Weird, your device seems to react to setPowerMode() oddly. What device is it?

When you turn screen off, what does adb logcat says?

@srevinsaju
Copy link
Author

The mobile is GT-N7100 (Samsung Galaxy Note 2) running a nougat custom ROM AICP. The logcat is attached below. I found scrcpy giving instructions.
log.txt

@rom1v
Copy link
Collaborator

rom1v commented Jun 25, 2019

SurfaceFlinger: Set power mode=0, type=0 flinger=0x40832000

Seems correct.

The problem should probably be reported on AICP. They might have more information about the issue.

@srevinsaju
Copy link
Author

I will check this with another ROM and close this issue if it works. thanks for your time.

@himie
Copy link

himie commented Jul 10, 2019

I'm having the exact same issue with a Pixel 3 XL Running Android Q (both beta4 and beta5) the screen doesn't turn off and the scrcpy window stops sending input. Phone screen still works fine and I can still see mirroring there's just no input from scrcpy.

Works fine on my Pixel 2 with android9 pie so not sure if it's the device itself or issue caused by Q beta.

@srevinsaju
Copy link
Author

srevinsaju commented Jul 11, 2019 via email

@rom1v
Copy link
Collaborator

rom1v commented Jul 11, 2019

I'm having the exact same issue with a Pixel 3 XL Running Android Q (both beta4 and beta5) the screen doesn't turn off and the scrcpy window stops sending input

This is a separate issue specific to Android Q beta, which is already fixed on master: #586 #587.

@4nizizio
Copy link

i'm using an custom rom as well and my screen just freeze, i can use touch and scrcpy inputs as well, my phone is a J320M using lineage-14.1-20190204-UNOFFICIAL-j3xlte or just a J3 2016 with lineageOS 14.1

@Afsar-Pasha
Copy link

Having same issue, but there is an option in Engineering Mode to turn off LCM which works fine, but turning off LCD doesn't work.

@rom1v
Copy link
Collaborator

rom1v commented Oct 17, 2019

Please test on dev branch (after commit c33a147). See #835

@srevinsaju
Copy link
Author

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants