1 |
On Friday, September 1, 2017 7:28:48 PM CEST Mart Raudsepp wrote: |
2 |
> Ühel kenal päeval, R, 01.09.2017 kell 10:16, kirjutas Grant: |
3 |
> > > My laptop's 13" screen has a native resolution of 3200x1800 which |
4 |
> > > makes everything crazy small on-screen. Is there a good method for |
5 |
> > > telling Xorg or xfce4 to compensate, or should I one-at-a-time my |
6 |
> > > applications? I can adjust the resolution down but it makes the |
7 |
> > > colors look weird. |
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 |
> I don't see how it can be called great. This is pretty much losing most |
24 |
> of the benefits you have with a HiDPI screen, by just making it be |
25 |
> almost the same as a 1600x900 screen, except the scaling involves some |
26 |
> nearest neighbor filtering, which sometimes might be good, sometimes |
27 |
> bad, and never as good as rendering things in HiDPI. |
28 |
> |
29 |
> For HiDPI you want the toolkit to support it properly and configure it |
30 |
> as such. GTK+3 is such a toolkit, but outside of GNOME (where it works |
31 |
> out of the box), I don't know what exactly it takes to set things up. |
32 |
> Plus you'll need a solution for your gtk2/whatever other things, |
33 |
> preferably one that doesn't make things worse for gtk3 things, like |
34 |
> that xrandr hack does. |
35 |
> |
36 |
> Probably something like |
37 |
> gsettings set org.gnome.desktop.interface scaling-factor 2 |
38 |
> combined with something for the other stuff that doesn't mess with the |
39 |
> former. |
40 |
> Outside GNOME, maybe exporting GDK_SCALE=2 works, if the dconf setting |
41 |
> isn't honored outside it. |
42 |
|
43 |
In KDE/Plasma there is a scaling setting in the display section. |
44 |
The scales go from 1 to 3 (in steps of 0.1) |
45 |
|
46 |
Seems to work, I don't need it on my displays as I tend to simply increase the |
47 |
font-sizes where necessary. |
48 |
|
49 |
-- |
50 |
Joost |