Jgmenu HiDPi

I’ve read the Arch Linux HiDPI wiki and the tint2 gitlab thread on DPI, but am not sure how to best implement DPI scaling.

On your HiDPI screen, what do you get if you do

xdpyinfo | grep dots

If you don’t set Xft.dpi = big number (e.g. 192), do things look too big or too small.

Assuming we get “dpi” from Xft.dpi, should we use scale = dpi / 96?

Thought I’d start a new topic with this.

Okay my output from xdpyinfo | grep dots is resolution: 96x96 dots per inch

I think your suggestion of scale = dpi / 96 is a good one.

Thanks

On my system I just edited font sizes (had to make them smaller) as my dpi is set to 192 in my .xinitrc.

Do you mean

    <edit name="dpi" mode="assign">
      <double>96</double>
    </edit>

in ~/.config/fontconfig/fonts.conf?

Nope, this is what I have in the following:

.xintrc

xrandr --dpi 192

.Xresources

!--------------------------------------------
! Custom DPI
!--------------------------------------------
Xft.dpi: 192
Xft.autohint: 0
Xft.lcdfilter:  lcddefault
Xft.hintstyle:  hintslight
Xft.hinting: 	true
Xft.antialias: 1
Xft.rgba: rgb

Xcursor.size: 32

This sets my dpi to 192px. On first boot everything is huge as you can imagine. So I reduced the font size and scaling is perfect.

I think the idea is to only need to change the DPI to scale the screen, changing the DPI and font seems redundant, if things are too big/small then 192 DPI is too low/high.

Given 4k is roughly 4x the pixel density of 1080p and my 1080p 24" has a dpi of ~80. I would assume that something at 2160p would need nearly 4x that dpi to match with same size fonts etc… Might be out to lunch on this though.

Cheers

I don’t know but all I can say is since setting my dpi to192px I have had a whole lot less issues with scaling.