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

Cannot Turn Off 2nd Display for LG V60 #3716

Closed
MSFF11 opened this issue Feb 5, 2023 · 4 comments
Closed

Cannot Turn Off 2nd Display for LG V60 #3716

MSFF11 opened this issue Feb 5, 2023 · 4 comments

Comments

@MSFF11
Copy link

MSFF11 commented Feb 5, 2023

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

Environment

  • OS: Windows 11 Version 10.0.22621 Build 22621
  • scrcpy version: 1.25
  • installation method: Windows release
  • device model: LG V60 LM-V600TM
  • Android version: 12

Describe the bug

I have a LG V60 with dual screens and mirror them via usb cable to my PC. I want to turn off both displays with MOD+o, but it can only turn off the main phone display and not the 2nd one.

I've tried clicking on the 2nd display window and press MOD+o, but it still only turns off the main display. I've closed the main display window and kept the 2nd one opened and still the same issue.

Please paste terminal output in a code block.

D:\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 2.2 MB/s (42151 bytes in 0.018s)
[server] INFO: Device: LGE LM-V600 (Android 12)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2456
[server] INFO: Device screen turned off

I apologize if I'm not clear enough or more info is needed, this is my first time using Github. I figure this is a pretty rare use case. Please let me know if anything else is needed

rom1v added a commit that referenced this issue Feb 5, 2023
Android 10 and above support multiple physical displays. Apply power
mode to all of them.

Fixes #3716 <#3716>
@rom1v
Copy link
Collaborator

rom1v commented Feb 5, 2023

I just attempted a fix on branch physical_displays.

Please test :)

Here are a binary to replace in your 1.25 release:

  • scrcpy-server SHA-256: f06d0a1f64704af79768efbf704c1128b1b8afd9e17765e2385aaee1faa32558

I apologize if I'm not clear enough or more info is needed, this is my first time using Github.

Your issue is probably in the top 10% of bug reports in quality 😉

@MSFF11 MSFF11 closed this as completed Feb 5, 2023
@MSFF11 MSFF11 reopened this Feb 5, 2023
@MSFF11
Copy link
Author

MSFF11 commented Feb 5, 2023

Looks like I accidentally closed this.

I've tested it with the new binary. It allows me to turn off both displays simultaneously when pressing 'MOD'+'o'. I'm not sure if there's someone who wants to do each screen independently, but currently it turns them both off.

Sadly, touching the screen doesn't function anymore. Whenever I click on either screen, I get this:

scrcpy 1.25 <https://github.com/Genymobile/scrcpy>
D:\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 89.4 MB/s (78916 bytes in 0.001s)
[server] INFO: Device: LGE LM-V600 (Android 12)
INFO: Renderer: direct3d
INFO: Initial texture: 1080x2456
[server] INFO: Device screen turned off
[server] INFO: Device screen turned on
[server] WARN: Unknown event type: -1
[server] WARN: Unknown event type: -1
[server] WARN: Unknown event type: -1
[server] WARN: Unknown event type: -1

Sometimes clicking on the home screen registered it as a long press and wanted me to edit my Home Screen. Most of the time, whenever I click, nothing happens on screen.

I'm also using the default launcher for this device, which is probably [LG V60 ThinQ Launcher]

I've tried using it without mirroring the 2nd display and the same result.

@rom1v
Copy link
Collaborator

rom1v commented Feb 5, 2023

Sadly, touching the screen doesn't function anymore.

Oh, yes, that's because I based this change on dev branch instead of master (and you are using the v1.25 client, not the dev client because I didn't build it).

I've tested it with the new binary. It allows me to turn off both displays simultaneously when pressing 'MOD'+'o'. I'm not sure if there's someone who wants to do each screen independently, but currently it turns them both off.

OK, so it works as expected. I'll merge that. Thank you for your tests. 👍

rom1v added a commit that referenced this issue Feb 6, 2023
Android 10 and above support multiple physical displays. Apply power
mode to all of them.

Fixes #3716 <#3716>
@rom1v
Copy link
Collaborator

rom1v commented Feb 6, 2023

Merged into dev: f2dee20

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

No branches or pull requests

2 participants