[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian with HiDPI / 4K displays

 ❦  8 août 2015 20:58 +0200, Daniel Pocock <daniel@pocock.pro> :

> The hardware setup was quite straightforward as I chose to buy a new
> graphics card with 4K support and a relatively new monitor.  The
> graphics card and monitor both support DisplayPort 1.2 so I just hook
> them up with the standard cable.
> The graphics card vendor supplies a proprietary driver but everything
> else is currently running using the packages from jessie.
> However, I've come up against the DPI issues.
> The actual DPI is about 131x137 on a 32" display.
> xdpyinfo reports 96x96
> It looks like there has been a history of bug reports about DPI in both
> the Xorg server itself and some individual applications.
> Some web sites suggested using gnome-tweak-tool to change the window
> scaling factor.  It only appears to accept integer values and changing
> it from the default of 1 to 2 makes the fonts too big.
> So, is there any strategy for HiDPI with Debian?  Is a BTS tag needed to
> track such issues perhaps?  Or is it already dealt with in unstable and
> people just have to wait for it?
> My general feeling is that the 32" 4K display was a worthwhile purchase
> and it definitely lets me improve my workflow.  For example, I can now
> have all my communication tools (Icedove, IRC and others) arranged in a
> single virtual desktop, none of them overlap each other and I don't have
> to use alt-tab to switch between them.  In another virtual desktop I no
> longer need to run Eclipse at full screen, I can just give it two thirds
> of the screen and use the rest for testing things.  However, all fonts
> are really tiny, they are readable and even pleasant to look at but I
> would probably like to see them just a little bigger.

The support of HiDPI in Debian is pretty good with a few
exceptions. Which DE are you using? I don't know exactly how this work
with Gnome, but the solution is to keep X.org at 96dpi (most apps don't
care, but some "I know better than everyone" needs that, for example
Chromium) and to change Xft DPI to an appropriate value (I suggest 144
in your case, better try to round a bit).

You can either set Xft.dpi with xrdb. Any new application should now be
scaled correctly (most apps will scale fonts _and_ the interface).

You can also set Xft/DPI in XSETTING. The advantage of doing that is
that all applications will notice the change. In this case, this depends
of your DE. If you don't have a big one, you can use xsettingsd with the
following line:

Xft/DPI 147456

(it's 144*1024)

The best resource is ArchLinux wiki:
However, don't try to apply everything.
Make the coupling between modules visible.
            - The Elements of Programming Style (Kernighan & Plauger)

Attachment: signature.asc
Description: PGP signature

Reply to: