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

Specify DPI on Wayland? #1704

Open
oldherl opened this issue Apr 8, 2023 · 5 comments
Open

Specify DPI on Wayland? #1704

oldherl opened this issue Apr 8, 2023 · 5 comments

Comments

@oldherl
Copy link

oldherl commented Apr 8, 2023

I'm using sddm on wayland with EnableHiDPI=true, but the texts and buttons are very small (perhaps scale=1). When I was using X11, I used "ServerArguments=-nolisten tcp -dpi 192" but it doesn't work on wayland. Is there a way to specify DPI on wayland?

@Vogtinator
Copy link
Contributor

Depends on the compositor you use. I'm not aware of any options for either weston or kwin.

You can try

[General]
GreeterEnvironment=QT_SCREEN_SCALE_FACTORS=2,QT_FONT_DPI=192

@plata
Copy link

plata commented May 7, 2023

If I set QT_SCREEN_SCALE_FACTORS, Maliit doesn't show up anymore. QT_FONT_DPI only works.

@Zosoled
Copy link

Zosoled commented Jan 11, 2024

The X11 option still seems to work for me using Wayland on KDE. PEBKAC, does not work.
The following is my only custom SDDM conf file:

/etc/sddm.conf.d/10_hidpi.conf

[General] DisplayServer=wayland Numlock=on [X11] ServerArguments=-nolisten tcp -dpi 190

Arch Linux kernel 6.6.10
KDE Plasma 5.27.10
Wayland 1.22.0
SDDM 0.20.0
SDDM theme "Sweet Mars"

@Vogtinator
Copy link
Contributor

Vogtinator commented Jan 11, 2024

The X11 option still seems to work for me using Wayland on KDE.

It cannot. With DisplayServer=wayland, ServerArguments is not used at all for the greeter.

@Zosoled
Copy link

Zosoled commented Jan 11, 2024

My mistake; I did not have weston installed, so the greeter was failing to start Wayland and falling back to X11. Installing weston resulted in a segfault and a black screen, so I uninstalled and reverted to the X11 option.

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

4 participants