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

How change DPI on primary display ? #5684

Open
mlabra opened this issue Dec 18, 2024 · 1 comment
Open

How change DPI on primary display ? #5684

mlabra opened this issue Dec 18, 2024 · 1 comment

Comments

@mlabra
Copy link

mlabra commented Dec 18, 2024

The --new-display can set DPI, but how make it in the primary display?

The --new-display alone whitout --start-app, have some problems, black screen.

I try --new-display=/240 --start-app=com.android.system, but can't unblock the "new android".

Some idea ?

THX.

@rom1v
Copy link
Collaborator

rom1v commented Dec 18, 2024

The --new-display can set DPI, but how make it in the primary display?

The primary display already exists, so scrcpy does not set its size or dpi. But you can change it (independently of scrcpy) with:

adb shell wm size …
adb shell wm density …

The --new-display alone whitout --start-app, have some problems, black screen.

Because your system has no default launcher or virtual display (it depends on the device system).

You can start a launcher: https://github.com/Genymobile/scrcpy/blob/master/doc/virtual_display.md#start-app

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