Chrome and other programs not resizing on HiDPI and Non-Hidpi setup

Bug #1822754 reported by Nico Jakob
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

To try the new support for EGLStreams and Wayland I have directly tried some programs to see how this performs. Unfortunately there are multiple problems: Chrome does not use GPU hardware acceleration anymore (I get huge CPU spikes while scrolling on normal pages).
Also the automatic resizing when a program is moved from one display to another only works with system applications such as settings, terminal etc. The other programs are scaled 2x on the Non-HIDPI screen.
I am running the latest NVIDIA Drivers with 418.56.
Is there a fix for this behaviour?

Best
Nicolas

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: xorg 1:7.7+19ubuntu12
ProcVersionSignature: Ubuntu 5.0.0-8.9-generic 5.0.1
Uname: Linux 5.0.0-8-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] Ist ein Verzeichnis: '/proc/driver/nvidia/gpus/0000:01:00.0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 418.56 Fri Mar 15 12:59:26 CDT 2019
 GCC version: gcc version 8.3.0 (Ubuntu 8.3.0-3ubuntu1)
ApportVersion: 2.20.10-0ubuntu23
Architecture: amd64
BootLog: Error: [Errno 13] Keine Berechtigung: '/var/log/boot.log'
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 2 11:25:53 2019
DistUpgraded: 2019-03-31 23:11:06,205 DEBUG Running PostInstallScript: './xorg_fix_proprietary.py'
DistroCodename: disco
DistroVariant: ubuntu
DkmsStatus:
 nvidia, 418.56, 5.0.0-8-generic, x86_64: installed
 rtl8814au, 4.3.21, 4.18.0-16-generic, x86_64: installed
 rtl8814au, 4.3.21, 5.0.0-8-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 NVIDIA Corporation GP104 [GeForce GTX 1070 Ti] [10de:1b82] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Micro-Star International Co., Ltd. [MSI] GP104 [GeForce GTX 1070 Ti] [1462:c303]
InstallationDate: Installed on 2019-01-04 (87 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
MachineType: MSI MS-7976
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/usr/bin/zsh
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.0.0-8-generic root=UUID=367ba2c7-63e9-46a2-9d19-aa86d3dcc21d ro quiet splash nvidia-drm.modeset=1 vt.handoff=1
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to disco on 2019-03-31 (1 days ago)
dmi.bios.date: 04/25/2017
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1.I0
dmi.board.asset.tag: Default string
dmi.board.name: Z170A GAMING M7 (MS-7976)
dmi.board.vendor: MSI
dmi.board.version: 1.0
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: MSI
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1.I0:bd04/25/2017:svnMSI:pnMS-7976:pvr1.0:rvnMSI:rnZ170AGAMINGM7(MS-7976):rvr1.0:cvnMSI:ct3:cvr1.0:
dmi.product.family: Default string
dmi.product.name: MS-7976
dmi.product.sku: Default string
dmi.product.version: 1.0
dmi.sys.vendor: MSI
nvidia-settings:
 ERROR: Unable to find display on any available system

 ERROR: Unable to find display on any available system
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.97-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 19.0.1-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 19.0.1-1ubuntu1
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.4-1ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.0.1-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20180925-2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
Nico Jakob (nicoj10) wrote :
affects: xorg (Ubuntu) → wayland (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Could you please try installing the previous mutter version by downloading the .deb files from here:

  https://launchpad.net/ubuntu/+source/mutter/3.32.0-1/+build/16489975

and then install them all.

tags: added: nvidia
affects: wayland (Ubuntu) → mutter (Ubuntu)
Changed in mutter (Ubuntu):
status: New → Incomplete
tags: added: hidpi
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also I wonder if this is related:

[ 17.738] (II) NVIDIA(0): Validated MetaModes:
[ 17.738] (II) NVIDIA(0): "NULL"
[ 17.738] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480

[ 17.770] (II) NVIDIA(0): Setting mode "NULL"

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

While still experiencing the bug please run:

  glxinfo > glxinfo.txt

in a terminal and then send us the file 'glxinfo.txt'.

Revision history for this message
Nico Jakob (nicoj10) wrote :

Ok thank you and sorry for the late reply I caught a cold over the last days:

This is after installing the mutter builds:
➜ dpkg -l | grep 'mutter'
ii gir1.2-mutter-4:amd64 3.32.0-1 amd64 GObject introspection data for Mutter
ii libmutter-4-0:amd64 3.32.0-1 amd64 window manager library from the Mutter window manager
ii libmutter-4-0-dbgsym:amd64 3.32.0-1 amd64 debug symbols for libmutter-4-0
ii libmutter-4-dev:amd64 3.32.0-1 amd64 Development files for the Mutter window manager
ii mutter 3.32.0-1 amd64 lightweight GTK+ window manager
ii mutter-common 3.32.0-1 all shared files for the Mutter window manager
ii mutter-dbgsym 3.32.0-1 amd64 debug symbols for mutter

Unfortunately Chrome,Firefox and other programs seem to run only software accelerated and do not adjust their scaling for example if moved from screen A (HiDPI) to screen B (low-DPI).

Revision history for this message
Nico Jakob (nicoj10) wrote :

Forgot to mention: I did of course restart after installing the new mutter packages.

Revision history for this message
Nico Jakob (nicoj10) wrote :

And funny sidenode which may be also relevant:
nvidia-settings gives me an empty program.

Nico Jakob (nicoj10)
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the glxinfo.txt in comment #5. That confirms at least the lack of GPU support is bug 1823516 (newer, but I think better described).

Please wait until a fix for bug 1823516 is available. If you still have resizing problems after that then you will need to reword this bug to only be about resizing and not mentioning "Chrome does not use GPU hardware acceleration anymore" etc.

To post a comment you must log in.