New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 707349 link

Starred by 10 users

Issue metadata

Status: Duplicate
Merged: issue 716135
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug-Regression



Sign in to add a comment

hidpi stopped working in version 59.0.3053.3 on ubuntu

Project Member Reported by rogerta@chromium.org, Mar 31 2017

Issue description

Chrome Version       : 59.0.3053.3
OS Version: Ubuntu 16.10

This week I updated my Ubuntu system running 16.10 using the software updater.  This updated chrome as well as other OS components.  After restarting chrome, it seems that hidpi detection stopped working.  That is, before the update chrome UI and web pages were rendered at reasonable size.  After the update all chrome UI and web pages were rendered too small to read comfortably.  My system has a 3200x1800 pixel screen.

To workaround, I can start chrome with the command line option: --force-device-scale-factor=2

From about://version

Google Chrome	59.0.3053.3 (Official Build) dev (64-bit)
Revision	d06aedb601e668067132026a8f14fe0179697b50-refs/branch-heads/3053@{#4}
OS	Linux
JavaScript	V8 5.9.97
Flash	25.0.0.143 /home/rogerta/.config/google-chrome-unstable/PepperFlash/25.0.0.143/libpepflashplayer.so
User Agent	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3053.3 Safari/537.36
Command Line	/usr/bin/google-chrome-unstable --user-data-dir=/home/rogerta/.config/google-chrome-unstable --flag-switches-begin --flag-switches-end
Executable Path	/opt/google/chrome-unstable/google-chrome-unstable
Profile Path	/home/rogerta/.config/google-chrome-unstable/Default
Variations	16e0dd70-3f4a17df
a444064c-803f8fc4
da89714-4ad60575
6c18ba9d-d9bcea4c
241fff6c-ca7d8d80
1e528f0f-3b7f37f3
ca05d627-3f4a17df
7c1bc906-f55a7974
c8dd053b-3f4a17df
2a33b90e-ed87566
cf558fa6-48a16532
a605b19e-3f4a17df
5ca89f9-3f4a17df
31362330-ca7d8d80
2d2fd3f5-2d2fd3f5
9e201a2b-3f4a17df
5274eb09-3f4a17df
57f575bb-3f4a17df
858ecb94-3f4a17df
68812885-3f4a17df
bcc907f7-f23d1dea
949c6e63-ca7d8d80
b684f56f-3d47f4f4
b791c1b8-3f4a17df
9773d3bd-1410f10
b22b3d54-1410f10
2e109477-cdab42b5
99144bc3-4da47e09
9e5c75f1-5c2afd
f79cb77b-3f4a17df
27219e67-b2047178
23a898eb-8729e685
d39326b0-e7979b52
62d3c5a9-f23d1dea
4ea303a6-f577e1bd
ce152c12-3f4a17df
64224f74-5087fa4a
de03e059-1410f10
d2247fcb-5086b55e
2697ea25-803f8fc4
f56e0452-f23d1dea
b2f0086-f23d1dea
ef25c1eb-ca7d8d80
7fc902e8-3f4a17df
494d8760-3f4a17df
3ac60855-486e2a9c
f296190c-9eabb163
4442aae2-75cb33fc
ed1d377-e1cc0f14
75f0f0a0-e1cc0f14
e2b18481-bd104136
e7e71889-4ad60575
644b8345-ca7d8d80
61b920c1-a4461931
828a5926-80107d43
68b2d106-1fc78da3
da4aaa01-f23d1dea
 
Labels: -Type-Bug -Pri-3 Pri-2 Type-Bug-Regression
Owner: osh...@chromium.org
Status: Assigned (was: Unconfirmed)
FYI, some more info about my machine:

$ uname -a
Linux argon 4.8.0-44-generic #47-Ubuntu SMP Wed Mar 22 14:27:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.10
DISTRIB_CODENAME=yakkety
DISTRIB_DESCRIPTION="Ubuntu 16.10"

Oshima: Let me know if you need more info, like maybe from about:gpu.
Cc: e...@chromium.org osh...@chromium.org
Owner: malaykeshav@chromium.org
Linux chrome reads gtk-xft-dpi property to determine the scale, and I'm wondering if something has changed on Ubuntu side. Can you add

Xft.dpi:192

to ~/.Xresources and see if it fixes/changes behavior?

Comment 4 by gem4...@gmail.com, Apr 3 2017

yes, setting it helps (it also fixed small gui of the latest firefox).

please note, that chrome stopped to take dpi setting from x11 completely - my x11 session is started with explicit definition with the command line argument "-dpi 120", so it is a bit disappointing that this setting is not working anymore.
I would like to chime in that I am also expressing this regression on Fedora 25 with GNOME 3. Only when I use --force-device-scale-factor 2 could I cajole Chrome into launching with the correct scaling on my display. I believe this is a regression with the latest Chrome unstable version, as it was not a problem when I first installed Chrome on this machine about a week ago.

Note that as per the default on Fedora 25, I am running GNOME in a Wayland session, though as I understand it Chrome would have been launched under XWayland?

Chrome version:
Google Chrome	59.0.3053.3 (Official Build) dev (64-bit)
Revision	d06aedb601e668067132026a8f14fe0179697b50-refs/branch-heads/3053@{#4}
OS	Linux
JavaScript	V8 5.9.97
Flash	25.0.0.143 /home/[redacted]/.config/google-chrome-unstable/PepperFlash/25.0.0.143/libpepflashplayer.so
User Agent	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3053.3 Safari/537.36
Command Line	/usr/bin/google-chrome-unstable --user-data-dir=/home/[redacted]/.config/google-chrome-unstable --force-device-scale-factor=2 --flag-switches-begin --flag-switches-end
Executable Path	/opt/google/chrome-unstable/google-chrome-unstable

Kernel:
$ uname -a
Linux [redacted] 4.10.6-200.fc25.x86_64 #1 SMP Mon Mar 27 14:06:23 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

GNOME:
$ gnome-shell --version
GNOME Shell 3.22.3

OS:
$ cat /etc/os-release 
NAME=Fedora
VERSION="25 (Workstation Edition)"
ID=fedora
VERSION_ID=25
PRETTY_NAME="Fedora 25 (Workstation Edition)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:25"
HOME_URL="https://fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=25
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=25
PRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy
VARIANT="Workstation Edition"
VARIANT_ID=workstation
I'm also experiencing this. (This is not the first time this has regressed either.)

I'm very sure it's Chrome dev (59) specific. I keep Chromium stable (57) installed side-by-side and it's scaled appropriately still.

I also run under a Wayland session, but I know Chrom(e|ium) run under XWayland and it was no different under the X session anyway.

$ uname -a
Linux pixel 4.10.8-7-ph #1 SMP Sun Apr 9 00:01:06 PDT 2017 x86_64 GNU/Linux

$ cat /etc/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
ID_LIKE=archlinux
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"

$ gnome-shell --version
GNOME Shell 3.24.0

$ pacman -Q | grep gnome-desktop
gnome-desktop 1:3.24.0-1

$ pacman -Q | grep gnome-session
gnome-session 3.24.0+1+g076d2e7e-1

$ cat ~/.Xresources
cat: /home/cole/.Xresources: No such file or directory

chrome://version

Google Chrome	59.0.3067.0 (Official Build) dev (64-bit)
Revision	e2ed4b4539b7a50d8be892e4437897b18c181c91-refs/heads/master@{#463157}
OS	Linux
JavaScript	V8 5.9.195
Flash	25.0.0.152 /home/cole/.config/google-chrome-unstable/PepperFlash/25.0.0.152/libpepflashplayer.so
User Agent	Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3067.0 Safari/537.36
Command Line	/opt/google/chrome-unstable/google-chrome-unstable --user-data-dir=/home/cole/.config/google-chrome-unstable --flag-switches-begin --enable-features=MaterialDesignExtensions,MaterialDesignSettings --flag-switches-end
Executable Path	/opt/google/chrome-unstable/google-chrome-unstable
Profile Path	/home/cole/.config/google-chrome-unstable/Default

Comment 7 by ajha@chromium.org, Apr 26 2017

Cc: ajha@chromium.org
 Issue 709979  has been merged into this issue.
This regression is now present in Chrome Beta.

Version 59.0.3071.29 (Official Build) beta (64-bit)

Comment 9 by osh...@chromium.org, Apr 28 2017

Cc: thomasanderson@chromium.org
Owner: thomasanderson@chromium.org
Actually, this may be a side effect of switching to gtk3 lib.  crbug.com/79722 .

thomasanderson@, linux chrome is currently using gtk-xft-dpi to decide the scale factor here:

https://cs.chromium.org/chromium/src/chrome/browser/ui/libgtkui/gtk_ui.cc?rcl=d4c124aa6f93deabb5415b6463d8ac6c362e0eab&l=325

and I'm wondering if there is a change in gtk3 how to handle ui scaling. Can you take a look?

Mergedinto: 716135
Status: Duplicate (was: Assigned)
https://codereview.chromium.org/2852593002/ should fix the issue

Sign in to add a comment