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 do I resize window? #700

Closed
tazihad opened this issue Jan 17, 2023 · 5 comments
Closed

How do I resize window? #700

tazihad opened this issue Jan 17, 2023 · 5 comments

Comments

@tazihad
Copy link

tazihad commented Jan 17, 2023

Sorry for making a Bug report. But I can't find any information on the internet.
My monitor size 1600x900.
I have set waydroid resolution 720x1280.
But the window is bigger than my monitor. I also can't resize window. Anyway I can resize the window to fit my monitor? I want to have a vertical phone screen.
I am using Fedora KDE Kinoite.

Screenshot_20230117_203405

@cniw
Copy link
Contributor

cniw commented Jan 17, 2023

reset to default setting, this will make waydroid fullscreen

waydroid prop set persist.waydroid.width ""
waydroid prop set persist.waydroid.height ""

make portrait orientation on 1600x900 screen, 16:9 aspect ratio

  • width = 900 / 16 * 9 = 506.25 ~ 506
waydroid prop set persist.waydroid.width 506

to apply that changes you need restart

  • waydroid container sudo waydroid restart waydroid-container or
  • at lease waydroid session waydroid session stop

then click waydroid icon laucher to start it again

@tazihad
Copy link
Author

tazihad commented Jan 17, 2023

@cniw That's very helpful. But display resolution of waydroid becomes 606x900 pixels. Is there anyway I can make 1920x1080 display fit in my monitor. I could resize it in emulators on windows.

@cniw
Copy link
Contributor

cniw commented Jan 17, 2023

from your screenshot above the screen density = 180 dpi,
you can decrease it's value if you want higher result

  • edit this file sudo nano /var/lib/waydroid/waydroid_base.prop
  • add this line ro.sf.lcd_density=100 (adjust this value until you get result like you want)
  • save it Ctrl+O, exit Ctrl+X
  • restart waydroid

@tazihad
Copy link
Author

tazihad commented Jan 17, 2023

If I set ro.sf.lcd_density=100. The device physical size becomes 21 inches. And fonts becomes too small. I have set ro.sf.lcd_density=403 to Emulate 1080p display Redmi Note 3. Physical Size 5.5 inch. But as you can see the display is too big for my monitor.
Thanks again for helping with your precious time.
Screenshot_20230118_003507

@aleasto
Copy link
Member

aleasto commented Jan 18, 2023

How exactly did you expect to fit 1280 pixels inside 900 pixels ?

@aleasto aleasto closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2023
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

3 participants