I have traced this to an Ubuntu patch: debian/display-scaling-default-
value

The comment says:

"Set default scaling to be 1:1, instead of using the hardware's
reporting to define scaling by default.  This is because hardware lies.
Lots of it does."

Unfortunately the solution, as far as I can tell, only works for Unity.

Also, the use of com/ubuntu/user-interface/scale-factor poses the
question: how does Unity get the right answer, and why is it worth
trusting? Is it user-set?

If it is user-set (which would explain why I couldn't find an automatic
setting anywhere in the Unity code!), then it would be reasonable to
look up non-Unity user settings too, such as GNOME's HiDPI "Window
scaling" setting /org/gnome/desktop/interface/scaling-factor.

In general, the relevant setting should be read depending on the desktop
(sigh, sounds like another need for an xdg-util, e.g. a new setting for
xdg-settings).

An alternative would be to patch GNOME's control center to set the same
property; then at least the code would also work for GNOME. Ubuntu's
setting is clearly superior to GNOME's in that it is per-screen (or to
be precise, per display adaptor), not a single number.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1606959

Title:
  DPI setting is not correctly calculated on Ubuntu GNOME

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1606959/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to