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

Please add an scale setting (HIDPI support) #407

Closed
Zeioth opened this issue Jun 13, 2022 · 5 comments
Closed

Please add an scale setting (HIDPI support) #407

Zeioth opened this issue Jun 13, 2022 · 5 comments

Comments

@Zeioth
Copy link

Zeioth commented Jun 13, 2022

Is your feature request related to a problem? Please describe.
Waydroid works good, but apps look tiny on my 4k screen, which in practice makes them unusable.

Describe the solution you'd like
Having an env var like WAYDROID_SCALE=2 to scale the window content, like most apps work .

Describe alternatives you've considered
A waydroid prop for the same purpose.

@Zeioth Zeioth changed the title Please add HIDPI support Please add an scale setting (HIDPI support) Jun 13, 2022
@cniw
Copy link
Contributor

cniw commented Jun 13, 2022

Honestly i don't know the dpi value which is equivalent to hidpi so just set the value as you like.

# Remove ro.sf.lcd_density properly if exist
grep ro.sf.lcd_density /var/lib/waydroid/waydroid_base.prop && \
sudo sed -i '/ro.sf.lcd_density/d' /var/lib/waydroid/waydroid_base.prop

# Append ro.sf.lcd_density property
echo "ro.sf.lcd_density=320" | sudo tee -a /var/lib/waydroid/waydroid_base.prop

Then restart waydroid.

Please read this too #388 (comment)

@Zeioth
Copy link
Author

Zeioth commented Jun 13, 2022

So we do have a prop for it!! It would be nice to add it to the docs.

It worked perfect, thank you so much.

@Quackdoc
Copy link
Contributor

yeah this is true. this issue should stay open until it is addressed

@aleasto
Copy link
Member

aleasto commented Jun 26, 2022

There already is GRID_UNIT_PX

Also I don't know how but on my HiDPI laptop it's nicely scaled out of the box?

@aleasto
Copy link
Member

aleasto commented Nov 19, 2022

Your compositor should be reporting the wayland display scale. If not, you can use export GRID_UNIT_PX= or other ways as pointed out.

@aleasto aleasto closed this as completed Nov 19, 2022
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

4 participants