public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mart Raudsepp <leio@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: High resolution on a 13 inch screen
Date: Fri, 01 Sep 2017 20:28:48 +0300	[thread overview]
Message-ID: <1504286928.29380.1.camel@gentoo.org> (raw)
In-Reply-To: <CAN0CFw0xmSwnWzwb4xe2G8aJwUY88RXY96XRc2DHzxQQrQt5oQ@mail.gmail.com>

Ühel kenal päeval, R, 01.09.2017 kell 10:16, kirjutas Grant:
> > My laptop's 13" screen has a native resolution of 3200x1800 which
> > makes everything crazy small on-screen.  Is there a good method for
> > telling Xorg or xfce4 to compensate, or should I one-at-a-time my
> > applications?  I can adjust the resolution down but it makes the
> > colors look weird.
> 
> 
> After some more research, it turns out this is a pretty well-known
> problem on the Linux desktop (it's called HiDPI) without a good
> solution... except for this:
> 
> https://forums.linuxmint.com/viewtopic.php?t=159064
> https://bugs.freedesktop.org/show_bug.cgi?id=94816
> 
> The solution is to patch xrandr with the capability to do nearest
> neighbor filtering and run xrandr like this:
> 
> xrandr --output eDP1 --mode "3200x1800" --scale "0.5x0.5"
> 
> It works great.
> 

I don't see how it can be called great. This is pretty much losing most
of the benefits you have with a HiDPI screen, by just making it be
almost the same as a 1600x900 screen, except the scaling involves some
nearest neighbor filtering, which sometimes might be good, sometimes
bad, and never as good as rendering things in HiDPI.

For HiDPI you want the toolkit to support it properly and configure it
as such. GTK+3 is such a toolkit, but outside of GNOME (where it works
out of the box), I don't know what exactly it takes to set things up.
Plus you'll need a solution for your gtk2/whatever other things,
preferably one that doesn't make things worse for gtk3 things, like
that xrandr hack does.

Probably something like
gsettings set org.gnome.desktop.interface scaling-factor 2
combined with something for the other stuff that doesn't mess with the
former.
Outside GNOME, maybe exporting GDK_SCALE=2 works, if the dconf setting
isn't honored outside it.


Mart


  reply	other threads:[~2017-09-01 17:29 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-01 16:14 [gentoo-user] High resolution on a 13 inch screen Grant
2017-09-01 16:33 ` [gentoo-user] " Grant Edwards
2017-09-01 17:16 ` Grant
2017-09-01 17:28   ` Mart Raudsepp [this message]
2017-09-01 17:56     ` Grant
2017-09-01 19:08     ` J. Roeleveld
2017-09-01 22:11       ` Nils Freydank
2017-09-01 23:49         ` wabe
2017-09-02  4:56     ` R0b0t1
2017-09-03  7:42 ` Nikos Chantziaras
2017-09-03 17:39   ` Grant
2017-09-04 19:24     ` Grant
2017-09-04 19:34       ` Nikos Chantziaras
2017-09-04 20:26         ` Grant
2017-09-04 20:52           ` Nikos Chantziaras
2017-09-04 20:58             ` Grant
2017-09-04 21:08               ` Nikos Chantziaras
2017-09-04 21:16                 ` Grant
2017-09-04 22:05               ` wabe
2017-09-05 13:21                 ` Grant
2017-09-06  2:01                   ` wabe
2017-09-04 22:25       ` Floyd Anderson
2017-09-05 13:29         ` Grant
2017-09-05 20:00           ` Floyd Anderson
2017-09-05 22:43             ` Floyd Anderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1504286928.29380.1.camel@gentoo.org \
    --to=leio@gentoo.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox