Gentoo Archives: gentoo-user

From: Mart Raudsepp <leio@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: High resolution on a 13 inch screen
Date: Fri, 01 Sep 2017 17:29:00
Message-Id: 1504286928.29380.1.camel@gentoo.org
In Reply to: [gentoo-user] Re: High resolution on a 13 inch screen by Grant
1 Ühel kenal päeval, R, 01.09.2017 kell 10:16, kirjutas Grant:
2 > > My laptop's 13" screen has a native resolution of 3200x1800 which
3 > > makes everything crazy small on-screen.  Is there a good method for
4 > > telling Xorg or xfce4 to compensate, or should I one-at-a-time my
5 > > applications?  I can adjust the resolution down but it makes the
6 > > colors look weird.
7 >
8 >
9 > After some more research, it turns out this is a pretty well-known
10 > problem on the Linux desktop (it's called HiDPI) without a good
11 > solution... except for this:
12 >
13 > https://forums.linuxmint.com/viewtopic.php?t=159064
14 > https://bugs.freedesktop.org/show_bug.cgi?id=94816
15 >
16 > The solution is to patch xrandr with the capability to do nearest
17 > neighbor filtering and run xrandr like this:
18 >
19 > xrandr --output eDP1 --mode "3200x1800" --scale "0.5x0.5"
20 >
21 > It works great.
22 >
23
24 I don't see how it can be called great. This is pretty much losing most
25 of the benefits you have with a HiDPI screen, by just making it be
26 almost the same as a 1600x900 screen, except the scaling involves some
27 nearest neighbor filtering, which sometimes might be good, sometimes
28 bad, and never as good as rendering things in HiDPI.
29
30 For HiDPI you want the toolkit to support it properly and configure it
31 as such. GTK+3 is such a toolkit, but outside of GNOME (where it works
32 out of the box), I don't know what exactly it takes to set things up.
33 Plus you'll need a solution for your gtk2/whatever other things,
34 preferably one that doesn't make things worse for gtk3 things, like
35 that xrandr hack does.
36
37 Probably something like
38 gsettings set org.gnome.desktop.interface scaling-factor 2
39 combined with something for the other stuff that doesn't mess with the
40 former.
41 Outside GNOME, maybe exporting GDK_SCALE=2 works, if the dconf setting
42 isn't honored outside it.
43
44
45 Mart

Replies

Subject Author
Re: [gentoo-user] Re: High resolution on a 13 inch screen Grant <emailgrant@×××××.com>
Re: [gentoo-user] Re: High resolution on a 13 inch screen "J. Roeleveld" <joost@××××××××.org>
Re: [gentoo-user] Re: High resolution on a 13 inch screen R0b0t1 <r030t1@×××××.com>