[nvidia] Screen scaling 125% gives 200%

Bug #1870736 reported by PerJensen on 2020-04-04
798
This bug affects 138 people
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
High
Unassigned
mutter (Ubuntu)
High
Daniel van Vugt

Bug Description

Procedure used:
1.
Fully updated system via apt update && apt upgrade

2.
Select the screen setup in gnome control center

3.
Click the "Fractional scaling" toggle

4.
Select 125% and click the green "use" button top right (it says "Anvend" in dansih)

5.
Observe that the window has grown a lot, click the "use new settings" button

6.
The window tells me, I am at 200% scaling. The "200%" option is now highlighted.

7.
Switch back to 100% and file this bug.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-release-upgrader-core 1:20.04.16
ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
Uname: Linux 5.4.0-21-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu22
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Sat Apr 4 09:42:34 2020
InstallationDate: Installed on 2018-01-14 (810 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=da_DK.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: Upgraded to focal on 2020-04-03 (0 days ago)

PerJensen (per-net-es) wrote :
PerJensen (per-net-es) wrote :

Funny - I wrote "gnome-control-center" as the package, once on the web page.

affects: ubuntu-release-upgrader (Ubuntu) → gnome-control-center (Ubuntu)
PerJensen (per-net-es) wrote :
PerJensen (per-net-es) wrote :
PerJensen (per-net-es) wrote :

When reporting the bug, I used the nvidia-driver-435 which is not tested.

I have installed the nvidia-driver-440 and rerun the test case.

Same result: selecting 125% scaling gives 200% scaling

tags: added: rls-ff-incoming
tags: added: regression-update
tags: removed: regression-update

Thank you for your bug report, could you add your 'journalctl -b 0' log after getting the issue?

summary: - Screen scaling 125% gives 200%
+ Screen scaling 125% gives 200% (nvidia)
affects: gnome-control-center (Ubuntu) → gnome-shell (Ubuntu)
tags: added: xrandr-scaling
tags: added: nvidia
Daniel van Vugt (vanvugt) wrote :

The bug might still be gnome-control-center, gnome-shell or mutter.

PerJensen (per-net-es) wrote :

Here is the journalcl -b 0 output, when scaling from 100% to 200% and back to 100%

PerJensen (per-net-es) wrote :

Oops.

The first journalctl is not the for testcast.

This is the log when I select 125 % scaling and get 200%

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-control-center (Ubuntu):
status: New → Confirmed
Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Changed in mutter (Ubuntu):
status: New → Confirmed
tags: added: rls-ff-notfixing
removed: rls-ff-incoming
2 comments hidden view all 222 comments

Mh, logging isn't too useful just give us the output of the logs, please run this before doing changes from the control center

journalctl -b0 -ef /usr/bin/gnome-shell

Then do the change from control center and give us what the has been logged.

Also, the output for (before and after, if anything changed)

xrandr --verbose

Could you also check if the command:

xrandr --output DVI-D-0 --scale 2x2
xrandr --output DVI-D-0 --scale 1.5x1.5

Does something for you?

Cheers

I have the same bug. Here are my obervartions:

xrandr --output HDMI-0 --scale 1.5x1.5 makes everything smaller (higher DPI)
xrandr --output HDMI-0 --scale 2x2 makes everything even smaller
xrandr --output HDMI-0 --scale 1x1 makes everything huge (200% according to settings)

Seems the DPI scaling has been inverted?

I tried

xrandr --output HDMI-0 --scale 0.75x0.75 and for a small instance it seems to work, and the text is at what I judge at 125%, but then a second after it switches to the overly huge 200% again.

PerJensen (per-net-es) wrote :
PerJensen (per-net-es) wrote :
PerJensen (per-net-es) wrote :
PerJensen (per-net-es) wrote :
PerJensen (per-net-es) wrote :

I tried your xrandr commands:

xrandr --output DVI-D-0 --scale 2x2 ==> very small windows
xrandr --output DVI-D-0 --scale 1.5x1.5 ==> not so small windows

xrandr --output DVI-D-0 --scale 1.0x1.0 ==> back to normal

PerJensen (per-net-es) wrote :

I followed Pål's experiments:

pj@Monster:~$ xrandr --output DVI-D-0 --scale 0.75x0.75 ==> large window & fonts, only seeing upper left part of the desktop on the screen

pj@Monster:~$ xrandr --output DVI-D-0 --scale 0.5x0.5 ==> even larger and less desktop visible

pj@Monster:~$ xrandr --output DVI-D-0 --scale 1x1 ==> NOT going back to normal
pj@Monster:~$ xrandr --output DVI-D-0 --scale 1x1 ==> Still not
pj@Monster:~$ xrandr --output DVI-D-0 --scale 1.0x1.0 ==> Stille not
pj@Monster:~$ xrandr --output DVI-D-0 --scale 2.0x2.0 ==> back to normal

Sebastien Bacher (seb128) wrote :

Could you also try outside of GNOME using xubuntu or another desktop to rule out shell interfering?

PerJensen (per-net-es) wrote :

I have installed xubuntu-desktop, fully updated the system and rebooted

Xubuntu environment
===================

xrandr --output DVI-D-0 --scale 2x2 ==> very smail windows ans fonts

xrandr --output DVI-D-0 --scale 1.5x1.5 ==> not so small windows, also the fonts are a little bigger in terminal

xrandr --output DVI-D-0 --scale 1.0x1.0 ==> back to normal

Now scaling the other way:
xrandr --output DVI-D-0 --scale 0.75x0.75 ==> I see approx 1/4 of the desktop (the left upper quadrant)

xrandr --output DVI-D-0 --scale 0.5x0.5 ==> very large windows and fonts in vscode, it seems the fonts in the terminal dont scale as much

xrandr --output DVI-D-0 --scale 1.0x1.0 ==> came back to normal in 1. try

summary: - Screen scaling 125% gives 200% (nvidia)
+ [nvidia] Screen scaling 125% gives 200%
Daniel van Vugt (vanvugt) wrote :

See also bug 1873403.

ThOR27 (thor27-gmail) wrote :

I have exactly same problem, I've tried both 440, and 435 Nvidia drivers.
the results of:

$ xrandr --verbose --output HDMI-0 --scale 2x2
screen 0: 6880x2880 1820x762 mm 96.00dpi
crtc 0: 3440x1440 59.97 +0+0 "HDMI-0"
xrandr: Configure crtc 0 failed
crtc 0: disable
crtc 1: disable
crtc 2: disable
crtc 3: disable
crtc 4: disable
crtc 5: disable
crtc 6: disable
screen 0: revert
crtc 0: revert
crtc 1: revert
X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request: 140 (RANDR)
  Minor opcode of failed request: 21 (RRSetCrtcConfig)
  Value in failed request: 0x0
  Serial number of failed request: 72
  Current serial number in output stream: 72

$ xrandr --verbose --output HDMI-0 --scale 1.25x1.25
screen 0: 4300x1800 1137x476 mm 96.00dpi
crtc 0: 3440x1440 59.97 +0+0 "HDMI-0"
xrandr: Configure crtc 0 failed
crtc 0: disable
crtc 1: disable
crtc 2: disable
crtc 3: disable
crtc 4: disable
crtc 5: disable
crtc 6: disable
screen 0: revert
crtc 0: revert
crtc 1: revert
X Error of failed request: BadValue (integer parameter out of range for operation)
  Major opcode of failed request: 140 (RANDR)
  Minor opcode of failed request: 21 (RRSetCrtcConfig)
  Value in failed request: 0x0
  Serial number of failed request: 72
  Current serial number in output stream: 72

Daniel van Vugt (vanvugt) wrote :

I wonder if the nvidia driver doesn't support the same version/featureset of Xrandr as the modeset driver?...

https://www.x.org/releases/X11R7.7/doc/randrproto/randrproto.txt

$ xrandr --version
xrandr program version 1.5.0
Server reports RandR version 1.6

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers (Ubuntu):
status: New → Confirmed
Jesus (salseandotv) wrote :

I also have the same problem, regards.

Vitaly Sulimov (vsulimov) wrote :

Same for me.
Ubuntu 20.04 nvidia-driver-440, GeForce MX250.

Greg Cavazos (drayak335) wrote :

Same for me.
Ubuntu 20.04 nvidia-driver-390 (also tried 340.108), GeForce GT-750M

I noticed some weird behavior with the xrandr, note the "mm" size is different for the same scale setting at different times.

greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 2x2
screen 0: 6400x3600 846x475 mm 192.10dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1.25x1.25
crtc 0: disable
screen 0: 4000x2250 527x296 mm 192.51dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1.5x1.5
screen 0: 4800x2700 1587x892 mm 76.81dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1.25x1.25
crtc 0: disable
screen 0: 4000x2250 1321x743 mm 76.88dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1.5x1.5
screen 0: 4800x2700 1587x892 mm 76.81dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1.75x1.75
screen 0: 5600x3150 1850x1040 mm 76.88dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 2x2
screen 0: 6400x3600 2113x1188 mm 76.93dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1x1
crtc 0: disable
screen 0: 3200x1800 1056x594 mm 76.97dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1.75x1.75
screen 0: 5600x3150 1480x832 mm 96.05dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1.75x1.75
screen 0: 5600x3150 1480x832 mm 96.05dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1x1
crtc 0: disable
screen 0: 3200x1800 845x475 mm 96.17dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1.25x1.25
screen 0: 4000x2250 528x297 mm 192.10dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1x1
crtc 0: disable
screen 0: 3200x1800 422x237 mm 192.42dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"
greg@LapXPS:~$ xrandr --verbose --output eDP-1-1 --scale 1.75x1.75
screen 0: 5600x3150 740x416 mm 192.10dpi
crtc 0: 3200x1800 59.98 +0+0 "eDP-1-1"

Dong Xuan Huy (huydx.evil) wrote :

I have exactly the same bug.
Ubuntu 20.04, GeForce GT 730M, using nvidia-driver-440

ilovebytes (ilovebytes) wrote :

i have the same problem - using a 1080ti and nvidia 440 driver - i wonder are the other versions like budgie,mate and so on also affected with this problem ?

and is someone from ubuntu/nvidia working on a possible solution- because its now nearly a full month when the bug first was reported and its still there :(

kitezila (kitezila) wrote :

Ubuntu 20.04 GTX Nvidia driver 440.
After playing with xrandr --output HDMI-0 --scale YYxYY I have reached ~1.25 scale.
Steps:
1) xrandr --output HDMI-0 --scale 1.75x1.75
-- visually have increased resolution
2) xrandr --output HDMI-0 --scale 0.75x0.75
-- cause huge zoom x4-x8
3) Then xrandr --output HDMI-0 --scale 1.75x1.75
-- set resolution to expected scale of 1.25

Bradley Pearce (blitmaps) wrote :

This effects me also:

GeForce GTX 1060

440 tested driver

Konstantin (soulkeeper) wrote :
Download full text (5.5 KiB)

I have the same bug with fractional scaling for my Geforce 1660 Ti and 2K monitor.
The temporary solution from kitezila has worked for me too.

~$ xrandr --verbose
Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
DP-2 connected primary 2560x1440+0+0 (0x1c1) normal (normal left inverted right x axis y axis) 597mm x 336mm
 Identifier: 0x1bf
 Timestamp: 178502
 Subpixel: unknown
 Gamma: 1.0:1.0:1.0
 Brightness: 1.0
 Clones:
 CRTC: 0
 CRTCs: 0 1 2 3
 Transform: 1.000000 0.000000 0.000000
             0.000000 1.000000 0.000000
             0.000000 0.000000 1.000000
            filter:
 _MUTTER_PRESENTATION_OUTPUT: 0
 CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0
 EDID:
  00ffffffffffff0026cd3766db0b0000
  301d0104b53c2278fb0c95ab554ca024
  0d50542108009500a9c0a940b300d1c0
  d1cae1008180565e00a0a0a029503020
  350055502100001a000000ff00313135
  32313934383033303335000000fd0030
  4678781e010a202020202020000000fc
  00504c32373932510a202020202001c6
  020318f14b100504030201111213141f
  23090707830100004c6b0050a0a03050
  0820280855502100001a000000000000
  00000000000000000000000000000000
  00000000000000000000000000000000
  00000000000000000000000000000000
  00000000000000000000000000000000
  00000000000000000000000000000062
 BorderDimensions: 4
  supported: 4
 Border: 0 0 0 0
  range: (0, 65535)
 SignalFormat: DisplayPort
  supported: DisplayPort
 ConnectorType: DisplayPort
 ConnectorNumber: 2
 _ConnectorLocation: 2
 non-desktop: 0
  supported: 0, 1
  2560x1440 (0x1c0) 241.500MHz +HSync -VSync +preferred
        h: width 2560 start 2608 end 2640 total 2720 skew 0 clock 88.79KHz
        v: height 1440 start 1443 end 1448 total 1481 clock 59.95Hz
  2560x1440 (0x1c1) 274.680MHz +HSync -VSync *current
        h: width 2560 start 2568 end 2600 total 2640 skew 0 clock 104.05KHz
        v: height 1440 start 1474 end 1482 total 1488 clock 69.92Hz
  2048x1280 (0x1c2) 220.250MHz -HSync +VSync
        h: width 2048 start 2192 end 2408 total 2768 skew 0 clock 79.57KHz
        v: height 1280 start 1283 end 1289 total 1327 clock 59.96Hz
  1920x1080 (0x1c3) 204.250MHz -HSync +VSync
        h: width 1920 start 2056 end 2256 total 2592 skew 0 clock 78.80KHz
        v: height 1080 start 1083 end 1088 total 1127 clock 69.92Hz
  1920x1080 (0x1c4) 148.500MHz +HSync +VSync
        h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.50KHz
        v: height 1080 start 1084 end 1089 total 1125 clock 60.00Hz
  1920x1080 (0x1c5) 148.350MHz +HSync +VSync
        h: width 1920 start 2008 end 2052 total 2200 skew 0 clock 67.43KHz
        v: height 1080 start 1084 end 1089 total 1125 clock 59.94Hz
  1920x1080 (0x1c6) 148.500MHz +HSync +VSync
        h: width 1920 start 2448 end 2492 total 2640 skew 0 clock 56.25KHz
        v: height 1080 start 1084 end 1089 total 1125 clock 50.00Hz
  1680x1050 (0x1c7) 146.250MHz -HSync +VSync
        h: width 1680 start 1784 end 1960 total 2240 skew 0 clock 65.29KHz
        v: height 1050 start 1053 end 1059 total 1089 clock 59.95Hz
  1600x1200 (0x1c8) 162.000M...

Read more...

Fusion (bornolbers) wrote :

This effects me also:

ubuntu 20.04

GeForce GTX 1050 Ti

440 tested driver

4k monitor - displayport

smallcham (smallcham) wrote :

This effects me also:

ubuntu 20.04

GeForce GTX 1660

4k monitor - displayport

I tryed '440 tested'、'435'、'nouveau' driver and i also tryed 'NVIDIA official driver 440.82', all of then has this problem.

eTushar89 (etushar89) wrote :

Affecting me too.
Ubuntu: 20.04 LTS
GPU: GeForce RTX 2070

~ uname -r
5.4.0-26-generic

~ xrandr
Screen 0: minimum 8 x 8, current 3840 x 2160, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-2 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
   3840x2160 60.00*+ 30.00
   2560x1440 59.95
   1920x1080 60.00 59.94
   1600x900 60.00
   1280x1024 60.02
   1280x800 59.81
   1280x720 60.00 59.94
   1152x864 59.96
   1024x768 60.00
   800x600 60.32
   720x480 59.94
   640x480 59.94 59.93
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
USB-C-0 disconnected (normal left inverted right x axis y axis)

~ nvidia-smi
Tue Apr 28 16:00:35 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64 Driver Version: 440.64 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce RTX 2070 Off | 00000000:26:00.0 On | N/A |
| 0% 46C P8 17W / 185W | 2798MiB / 7979MiB | 3% Default |
+-------------------------------+----------------------+----------------------+

Fusion (bornolbers) wrote :

I am not familiar with code, so I just test what I could see... hope it helps (I posted also on bug 1873403, if not necessary I'll remove it. No intention to spam).

------------not live: tests as I remember:
without nvidia
100-->ok
125,150 too slow

with nvidia
100--> too small
200-->too big
enable fractional scaling
125-->200
150-->200
175 -->black
(stop/start freesync from monitor, restored - maybe random behavior)

2nd try
100-->ok
125-->black
(couldn't restore it, ctrl+alt+f1 & login = black again)

unistall nvidia tested drivers, try nouveau
after two changes, I could see ubuntu desktop became small or big inside my screen and around it I cound draw with the window I was holding with the mouse. If I put it inside ubuntu desktop area of my screen it works fine, outside (right column and down line) it just performs like windows xp windows when it stuck (never saw it again on ubuntu since 11.10 that I am using it).

------------live: test and keep these notes:
install nvidia again
reboot - 3rd try
100--> bigger desktop than my screen, needs to scroll (down or right) to see the rest
200--> the same
enable fractional scaling (returns to 100 by itself)
150-->black
(stop/start freesync from monitor, restored - maybe random behavior)

100 --> enable fractional-->200 by itself
I repeat it, doesn't happen the second time
150-->black

remove nvidia* through synaptic
reboot
100-->ok
125,150,175 too slow
200-->ok

install nvidia tested
100-->οκ
200-->οκ
enable fractional scale-->turn to 100 itself
150-->black
125-->200
125(200) change back to 100 first
175-->black
200-->ok
on 200, close fractional scale-->instead of return to 100 itself it doubles the area of the desktop (bigger than my real monitor area, so I have to scroll to see the rest of the desktop)
100-->100 with the same large desktop area issue
deactivate fractional scale-->issue remain
logout,logon--> 100 & ok

smallcham (smallcham) on 2020-04-29
Changed in gnome-control-center (Ubuntu):
assignee: nobody → smallcham (smallcham)
assignee: smallcham (smallcham) → nobody
Changed in gnome-shell (Ubuntu):
status: Confirmed → Fix Released
no longer affects: gnome-shell (Ubuntu)
Changed in mutter (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
status: Confirmed → In Progress
no longer affects: nvidia-graphics-drivers (Ubuntu)
summary: - [nvidia] Screen scaling 125% gives 200%
+ [nvidia] Screen scaling 125% gives 200%, and sometimes extends off
+ screen
summary: - [nvidia] Screen scaling 125% gives 200%, and sometimes extends off
- screen
+ [nvidia] Screen scaling 125% gives 200%
Changed in mutter (Ubuntu):
importance: Undecided → Medium
Changed in gnome-control-center (Ubuntu):
importance: Undecided → Medium
Changed in mutter (Ubuntu):
importance: Medium → High
Changed in gnome-control-center (Ubuntu):
importance: Medium → High
Changed in mutter (Ubuntu):
status: In Progress → Confirmed
142 comments hidden view all 222 comments

I just did apt update && apt upgrade

Now fractional scaling is working.

ubuntu 20.04
nvidia 1070ti
nvidia-driver-440

On Sun, Aug 23, 2020 at 12:30 AM OB <email address hidden> wrote:

> How do I install the patch?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1870736
>
> Title:
> [nvidia] Screen scaling 125% gives 200%
>
> Status in gnome-control-center package in Ubuntu:
> Confirmed
> Status in mutter package in Ubuntu:
> Confirmed
>
> Bug description:
> Procedure used:
> 1.
> Fully updated system via apt update && apt upgrade
>
> 2.
> Select the screen setup in gnome control center
>
> 3.
> Click the "Fractional scaling" toggle
>
> 4.
> Select 125% and click the green "use" button top right (it says "Anvend"
> in dansih)
>
> 5.
> Observe that the window has grown a lot, click the "use new settings"
> button
>
> 6.
> The window tells me, I am at 200% scaling. The "200%" option is now
> highlighted.
>
> 7.
> Switch back to 100% and file this bug.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 20.04
> Package: ubuntu-release-upgrader-core 1:20.04.16
> ProcVersionSignature: Ubuntu 5.4.0-21.25-generic 5.4.27
> Uname: Linux 5.4.0-21-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.20.11-0ubuntu22
> Architecture: amd64
> CrashDB: ubuntu
> CurrentDesktop: ubuntu:GNOME
> Date: Sat Apr 4 09:42:34 2020
> InstallationDate: Installed on 2018-01-14 (810 days ago)
> InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64
> (20170801)
> PackageArchitecture: all
> ProcEnviron:
> TERM=xterm-256color
> PATH=(custom, no user)
> XDG_RUNTIME_DIR=<set>
> LANG=da_DK.UTF-8
> SHELL=/bin/bash
> SourcePackage: ubuntu-release-upgrader
> Symptom: release-upgrade
> UpgradeStatus: Upgraded to focal on 2020-04-03 (0 days ago)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1870736/+subscriptions
>

This problem still exists on my system (Latest Updates / Nvidia Titan).

People with that still have the issue, can please give us:
 - The card you're using (AFAIK mostly mobile cards are affected)
 - The output of: apt-cache policy libmutter-6-0

Christians (script-vollbio) wrote :

    GL_VENDOR: NVIDIA Corporation
    GL_RENDERER: GeForce GTX 1050/PCIe/SSE2
    GL_VERSION: 4.6.0 NVIDIA 440.100

apt-cache policy libmutter-6-0
libmutter-6-0:
  Installed: 3.36.4-0ubuntu0.20.04.2
  Candidate: 3.36.4-0ubuntu0.20.04.2
  Version table:
 *** 3.36.4-0ubuntu0.20.04.2 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     3.36.1-3ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages

I would LOVE to have that fixed!!

1 comments hidden view all 222 comments
Djerk Geurts (djerkg) wrote :

libmutter-6-0:
   Installed: 3.36.4-0ubuntu0.20.04.2
   Candidate: 3.36.4-0ubuntu0.20.04.2
   Version table:
  *** 3.36.4-0ubuntu0.20.04.2 500
         500 http://gb.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
         100 /var/lib/dpkg/status
      3.36.1-3ubuntu3 500
         500 http://gb.archive.ubuntu.com/ubuntu focal/main amd64 Packages

01:00.0 VGA compatible controller: NVIDIA Corporation GK107GLM [Quadro K1100M] (rev a1)

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.138                Driver Version: 390.138                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro K1100M       Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   59C    P0    N/A /  N/A |   1460MiB /  1999MiB |      3%      Default |
+-------------------------------+----------------------+----------------------+

I have both discreet and Nvidia. I'd like to use the Nvidia on demand,
but there's an issue with prime that I had so I'm on Nvidia permanently
at the moment.

On 24/08/2020 15:41, Marco Trevisan (Treviño) wrote:
> People with that still have the issue, can please give us:
> - The card you're using (AFAIK mostly mobile cards are affected)
> - The output of: apt-cache policy libmutter-6-0
>

Luka Maljic (lmalj) wrote :

GeForce RTX 2060 Mobile

libmutter-6-0:
  Installed: 3.36.4-0ubuntu0.20.04.2
  Candidate: 3.36.4-0ubuntu0.20.04.2
  Version table:
 *** 3.36.4-0ubuntu0.20.04.2 500
        500 http://hr.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.36.1-3ubuntu3 500
        500 http://hr.archive.ubuntu.com/ubuntu focal/main amd64 Packages

Vitaly Sulimov (vsulimov) wrote :

Still doesn't work for me after all updates :(
GPU: GeForce MX 250

Command output:
libmutter-6-0:
  Installed: 3.36.4-0ubuntu0.20.04.2
  Candidate: 3.36.4-0ubuntu0.20.04.2
  Version table:
 *** 3.36.4-0ubuntu0.20.04.2 500
        500 http://ru.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.36.1-3ubuntu3 500
        500 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 Packages

obobo (ben-autonomic) wrote :

Error still present after update for me.

Two 3840x2160 screens - one a DELL XPS 15 laptop screen which is half
the physical size of my BenQ monitor.

Using NVIDIA driver metapackage 440.

With fractional scaling, if I set the inbuilt monitor to 150%, the
EXTERNAL monitor seems to half its visible resolution, quadrupling its
virtual screen size, so only the top left corner is actually displayed
on the monitor.

On 16.05.20 15:55, Ananya Nayan Borah wrote:
> I am facing the same problem.
>
> Nvidia Geforce 940MX/Driver Version: 440.64 .
>
> I tried xrandr scaling but it just throws part of the desktop out of
> the screen. I have a setup of 2 monitors one with 1920x1080 and one with
> 1366x768. It would be great if we can have fractional scaling seperately
> for seperate monitors because on my laptop its really small and its huge
> on the monitor. I tried the workaround provided by @Kristo it works to
> an extent but doesn't really solve everything; still its better to have
> something than nothing. I am new to ubuntu, could someone help me if
> there is any way to manipulate icon size seperately for different
> monitors?
>

rland jon (rlandj) wrote :

Still doesn't work for me after all updates,and there are side effects... Now every time I boot up, the Desktop's font is very small, even there is no external monitor...if ALT + F2 -> R, then restore :(

libmutter-6-0:
  Installed: 3.36.4-0ubuntu0.20.04.2
  Candidate: 3.36.4-0ubuntu0.20.04.2
  Version table:
 *** 3.36.4-0ubuntu0.20.04.2 500
        500 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.36.1-3ubuntu3 500
        500 http://cn.archive.ubuntu.com/ubuntu focal/main amd64 Packages

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64 Driver Version: 440.64 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce MX150 Off | 00000000:03:00.0 Off | N/A |
| N/A 55C P0 N/A / N/A | 630MiB / 2002MiB | 7% Default |
+-------------------------------+----------------------+----------------------+

journalctl.log => restart,Desktop's font NG
journalctl_r.log=> Alt+F2->r ,Desktop's font OK

Christians (script-vollbio) wrote :

Wonderful: "sudo apt full-upgrade" pulled in the nvidia updates and fractional scaling works, thank You very much everybody, this makes working on my 4k monitor so much easier!

One small issue remains: The thumbnails of images and documents on the desktop have wrong aspect ratios in all display scales apart from 100%, they are too wide.

giacomo benelli (benelgiac) wrote :

Having exactly the same issue with a Dell XPS 7590, NVIDIA GeForce GTX 1650 and Ubuntu 20.04.1,kernel 5.4.0-42-generic.

I had to revert to nouveau driver, and it now works correctly.

I'm updated fully as of today under 20.04 and have the same issue described in OP with an NVIDIA M2000M in a Thinkpad P50 using the proprietary drivers and 1 1080p monitor (the laptop panel) and 1 4k monitor (Dell external).

#83 indicated that they changed things so that their PRIME settings were "on demand" and that made things work for them, but my external monitor just quits working when I change it to that.

Things work mostly as expected with the nouveau driver, but no scaling really works under the proprietary driver. I would use the nouveau driver but it seems very sluggish under any scaling factor.

That said, my issue isn't really about fractional scaling, FWIW. I want to set the external display at 200% and set the internal one at 100%, a configuration which doesn't require fractional. But doing this produces 200% on both panels reliably (and the percentage values in settings reflect that both are set to 200%) under the proprietary drivers.

So right now I can effectively either choose from these three options: a) use nouveau, make both displays work as I would like, but have a very sluggish UI experience b) use proprietary and have text that's too small to read for my old eyes on the 4K external monitor but have a usable built-in display, or b) use proprietary to get reasonably sized text and icons on the 4K external monitor but accept that the built-in monitor is not very useful because its effective resolution is 960x540.

It seems that some people have gotten the combination of proprietary NVIDIA drivers and scaling to work. I would try this on another system to doublecheck but I don't have a machine handy with NVIDIA graphics different than the one in my system (M2000M).

I should note that when I say "proprietary" above, I mean the nvidia-driver-440 package.

Here's the output of `nvidia-smi`, FTR:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100 Driver Version: 440.100 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro M2000M Off | 00000000:01:00.0 On | N/A |
| N/A 43C P0 N/A / N/A | 1001MiB / 4043MiB | 0% Default |
+-------------------------------+----------------------+----------------------+

And apologies for the multicomment spam but the output of apt-cache policy libmutter-6-0

libmutter-6-0:
  Installed: 3.36.4-0ubuntu0.20.04.2
  Candidate: 3.36.4-0ubuntu0.20.04.2
  Version table:
 *** 3.36.4-0ubuntu0.20.04.2 500
        500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.36.1-3ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 Packages

obobo (ben-autonomic) wrote :

Honestly, the only way to get anything approaching reliable "fractional
scaling" that I've found, is to lower the resolution of the smaller
monitor by a ratio similar to its relative screen size.  e.g. in my
case, I have two 4k monitors (one external, one a laptop monitor) where
the laptop monitor is about 1/3 of the physical size of the external
monitor.  Dropping the internal monitor's resolution from 3840x2160 to
1920x1080 finally makes everything the same size on both screens -
without any slow down - only it's a bit of a waste of a 4k display :-/

On 11.05.20 21:55, Timo wrote:
> Having the same issue...
> But the tmp fix, posted by kristo on 2020-05-06 works great for me too: Browsers, my IDE (Intellij Idea), Slack, Thunderbird, the terminal, they all scale very well.
> I increased the size of the mouse pointer, the dock icons and the icons in nautilus as well. As Daniel wrote on 2020-05-07 the performance is even better compared with fractional scaling activated.
> But it has some downsides. From my point of view the most annoying one: these settings cannot be configured per display but only globally. @Daniel would it be possible to make the settings, mentioned above per display? It might be a more stable way if the performance issues and bugs, related to xrandr and Xorg in general, might occur again with every new nvidia graphic card model or new driver.
>

Christians (script-vollbio) wrote :

Adding to my comment above I have found another issue: The pull-down menu from Auto-Filter is not accessible to the mouse, as it vanishes instantly. The problem disappears after having switched to multiples of 100%.

giacomo benelli (benelgiac) wrote :

I'm wondering if there are any plans about the date for a fix...? It's been months now. Thanks

David Smoot (davidsmoot) wrote :

I do not wish to sound ungrateful or entitled but this bug is literally the one show stopper that is preventing me from doing more work in Linux. I run a triple monitor setup and per monitor fractional scaling is a non-negotiable must for my work.

Can someone explain the root of the problem?

Is it poor driver support on Linux?

Is it the desktop environment lacks mature support for this feature?

Is it just very technically difficult and nobody has the time to handle all the possible combinations?

Every day I sadly hold the space bar to bring up the boot menu to select Windows Boot Manager.

Where is the limitation that prevents a solution here? What can be done to facilitate a fix?

Thanks,
David

Brian Neltner (neltnerb) wrote :

Fundamentally it's fair to blame nvidia's closed source drivers because the open source one seems to do fractional scaling properly.

Other than that what's the point in assigning blame? I'm not sure someone is even paying attention to this bug report, I probably would turn off notifications if it were me volunteering and trying to repair a closed source blob going constantly hassled about not fixing it yet. We really need to learn to be patient.

Maybe we can pitch in to pay someone to make the feature work. Until then...

-------- Original Message --------
On Sep 7, 2020, 5:09 PM, David Smoot wrote:

> I do not wish to sound ungrateful or entitled but this bug is literally
> the one show stopper that is preventing me from doing more work in
> Linux. I run a triple monitor setup and per monitor fractional scaling
> is a non-negotiable must for my work.
>
> Can someone explain the root of the problem?
>
> Is it poor driver support on Linux?
>
> Is it the desktop environment lacks mature support for this feature?
>
> Is it just very technically difficult and nobody has the time to handle
> all the possible combinations?
>
> Every day I sadly hold the space bar to bring up the boot menu to select
> Windows Boot Manager.
>
> Where is the limitation that prevents a solution here? What can be done
> to facilitate a fix?
>
> Thanks,
> David
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1870736
>
> Title:
> [nvidia] Screen scaling 125% gives 200%
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1870736/+subscriptions

Fractional scaling on intel don't work well too(it causes tearing, lags, etc). And it works good only with wayland.
David, you can try #53 workaround(activate drm modeset for nvidia driver). It disabled by default, may be this is root of this problem?

David Smoot (davidsmoot) wrote :

@Brian Neltner

The point of my question is to plan.... I don't care about shame, I just care if I should donate to a developer, wait another day, petition Nvidia, or wipe the linux partition because it is pointless.

I am certainly willing to be patient, just looking to somehow quantify the difference between patience and hopelessness and maybe figure out how to help move the ball forward.

David

giacomo benelli (benelgiac) wrote :

@Brian Neltner

Assigning blame of course is not helping. However, let me mention that some of us in this bug report is running "Ubuntu certified" hardware (i.e. Dell XPS). If that is supposed to mean anything at all, at some point I'd expect at least a plan, as David Smoot was mentioning.

But again, not complaining... Nvidia is free to not fix this at all. Chipping in for devs sounds like a good idea, count me in :)

1 comments hidden view all 222 comments
Felix Raynaud (napafaitlix) wrote :

Just a small contribution from my side: the bug is not fixed despite all the latest updates. I'm having a Quadro K5200 with proprietary drivers v440.100 on Ubuntu 20.04 and both fractional scaling (on one monitor) and normal/fractional scaling on multiple monitors with different scaling are broken.

I tried with the latest driver from the ppa:graphics-drivers/ppa repository, no help there. I confirm that scaling is working with the nouveau driver, but this is not a solution for me since I need features like CUDA, opencl or compatibility with VMWare 3D acceleration.

No luck with all 3 ways to set the scaling: Gnome control center, xrandr or nvidia-settings. I cannot contribute to the fix itself, but if more details on my configuration is needed, feel free to ask.

David Smoot (davidsmoot) wrote :

I tried the PPA suggested in post 122 (https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1870736/comments/122) last night. No luck

I'm running Pop OS 20.04 and the displays control panel does not even have fractional scaling buttons to try. I just have choices for "100% 200% 300% 400%" So it is possible the fix from 122 might work if I had the GUI options to try.

Apparently out of sheer coincidence, my updates showed a new "Nvidia 450" driver available. Applied the update and rebooted but I still do not see a settings option for fractional scaling.

I know this is not a Pop OS support ticket but is anyone aware of another mechanism to attempt fractional scaling? I am going to ask the same on Pop OS support.

@ David

I think pop-os disabled fractional scaling patch, so get in contact with them please:
 https://github.com/pop-os/mutter/commit/bc7c2658e4c873a28afeaf621fb24a1341c6d74c

mastorak (mastorak) wrote :

@3v1n0
PopOS announced today that they fixed the fractional scaling and that it works with NVIDIA. Maybe you can commnunicate with them as it seems promising.

@mastorak:

Unfortunately they've only packaged the fixes coming from ubuntu: https://github.com/pop-os/mutter/commits/master_focal

cica-kutya (cica-kutya) wrote :

Any information about fixing this bug, please? So many people are affected and still there's no resolution :(

@cica-kutya there is solution - nvidia kms. And fractional scaling work without any issues(like tearing on intel) for me. I have single gpu setup(no hybrid graphics).
You can activate it by:
1. Set nvidia_drm module option:
$ cat /etc/modprobe.d/nvidia-modeset.conf
options nvidia_drm modeset=1
2. Add same option to kernel cmdline:
$ cat /etc/default/grub
....
GRUB_CMDLINE_LINUX_DEFAULT="nvidia_drm.modeset=1 quiet splash"
....
3. Update initrd
$ sudo update-initramfs -u -k all
4. Reboot
5. Check it
$ sudo cat /sys/module/nvidia_drm/parameters/modeset
Y
6. Activate fraction scaling

Vitaly Sulimov (vsulimov) wrote :

@nightwing666 Thank you so much! I was fighting with this bug since april and nothing helps, but yours solution is worked perfectly for me!

Running Ubuntu 20.04 on MateBook X Pro, hybrid graphics (Intel + Nvidia GeForce MX250)

Mariano Ruiz (marianoruiz) wrote :

As @vsulimov mention, the solution from @nightwing666 works, in my case in a ThinkPad X1 Gen 2, but the video scaling in full screen doesn't, it makes any video you try to reproduce in full screen to blink, and if you set the video again in not fullscreen mode the video is scaled x2, or it makes the video player to crash. I tried with the default video player from Ubuntu, with VLC Player and even with Firefox reproducing a video from Youtube, in all the cases the result is the same: the video is reproduced well as long you don't enable full screen video reproduction. I tried with scalling at 125% and 150% and it failed in both cases.

Mariano Ruiz (marianoruiz) wrote :

I have to rectify a little bit my affirmation above, everything I said about the video issues is right, but the problem with the video lagging and blinking and re-scalling specially when you move the cursor while watching in full screen mode look like a GNOME problem, not a NVIDIA proprietary driver problem, because after setting up the Nouveau open source driver again, the same problem happens when watching video in full screen, so better to setup the Nvidia driver with the workaround than use the open source drive that does not enable all the acceleration features your video hardware has.

UV (uvwild) wrote :

i can observe no fractional scaling on a default installation dell xps5790 even with a single monitor (4k). similar connecting a second monitor is not working separately either.
I tried different display resolution to no avail.

I eventually started changing the display resolution and gave up on fractional scaling.

nvidia 450
libmutter-6-0:
  Installed: 3.36.6-1ubuntu0.20.04.2
--------
xrandr program version 1.5.0
Server reports RandR version 1.6

------------
lspci
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile) (rev 02) (prog-if 00 [VGA controller])
    DeviceName: Onboard IGD
    Subsystem: Dell UHD Graphics 630 (Mobile)
    Flags: bus master, fast devsel, latency 0, IRQ 176
    Memory at eb000000 (64-bit, non-prefetchable) [size=16M]
    Memory at 80000000 (64-bit, prefetchable) [size=256M]
    I/O ports at 4000 [size=64]
    Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: i915
    Kernel modules: i915

I found the prime-select toggle and set it to intel...
same issue

Carlos Pita (carlosjosepita) wrote :

@3v1n0

Running PopOS 20.10 right from the installer gets fractional scaling working fine (installed nvidia driver version is 455).

What is it that you said they already packaged? Is this supposed to be fixed in Groovy?

Diego Lineros (diegolineros) wrote :

Scaling is working in my Quadro now, but I can't use as I am finding serious performance issues. Not good.

Simon Ryu (neocoin) wrote :

>This effects me also:
>
>ubuntu 20.04
>GeForce GTX 1050 Ti Mobile
>4k monitor - usb-c port
>
>That work find in ubuntu 19.10 and same driver.

Above my problem is solved with grub setting.

nvidia_drm.modeset=1

Thanks everyone!!

Now I'm using Ubuntu 20.10.

cica-kutya (cica-kutya) wrote :

@nightwing666:
Thank you so much for this! It worked!

Displaying first 40 and last 40 comments. View all 222 comments or add a comment.