1 |
>> > My laptop's 13" screen has a native resolution of 3200x1800 which |
2 |
>> > makes everything crazy small on-screen. Is there a good method for |
3 |
>> > telling Xorg or xfce4 to compensate, or should I one-at-a-time my |
4 |
>> > applications? I can adjust the resolution down but it makes the |
5 |
>> > colors look weird. |
6 |
>> |
7 |
>> |
8 |
>> After some more research, it turns out this is a pretty well-known |
9 |
>> problem on the Linux desktop (it's called HiDPI) without a good |
10 |
>> solution... except for this: |
11 |
>> |
12 |
>> https://forums.linuxmint.com/viewtopic.php?t=159064 |
13 |
>> https://bugs.freedesktop.org/show_bug.cgi?id=94816 |
14 |
>> |
15 |
>> The solution is to patch xrandr with the capability to do nearest |
16 |
>> neighbor filtering and run xrandr like this: |
17 |
>> |
18 |
>> xrandr --output eDP1 --mode "3200x1800" --scale "0.5x0.5" |
19 |
>> |
20 |
>> It works great. |
21 |
>> |
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 |
|
44 |
I hope you'll agree that sounds like a mess. |
45 |
|
46 |
When I said it was great I meant in comparison to running 3200x1800 |
47 |
with defaults (unusable) or running 1600x900 (blurry and hard to look |
48 |
at). Admittedly this is not a good place for Linux desktop to be. |
49 |
|
50 |
Is there a good way to run xrandr when X starts so it doesn't have to |
51 |
be run per user and will apply to lightdm? |
52 |
|
53 |
- Grant |