Ubuntu Mate 22.04 scaling problem

Bug #2038645 reported by tele1234567891
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-settings (Ubuntu)
New
Undecided
Unassigned

Bug Description

I changed monitor from 24" LG to 32" Samsung LS32A704NWPXEN

The situation looks like this:
1. 4K starts default, I can save settings to /etc/X11/xorg.conf only with
sudo chmod u+x /usr/share/screen-resolution-extra/nvidia-polkit

2. Problem I have with HDMI and DisplayPort, the situation is the same,
 after changing from 1920x1080 to 4K I can see 1/4 of the screen
lower left part of the screen.

The problem does not occur from 4K to 1920x1080 when 4K is default.

To switch to 4K I need remove /etc/X11/xorg.conf and reboot system.

3. Scaling in Mate does not change the size of the Steam icon xD wtf? Why?
I have only option 100% and 200%.

4. Scaling with Nvidia, ( Option Underscan in second tab of nvidia-settings, default is 0 )
I managed to check by placing the panel at the top and then changing the scaling in nvidia
(because the image is cut off from the bottom)
It seems to me that this option does not scale, but crops the image.
Because the font and icon sizes looks identical.
Only the picture frame is cut off and the center remains.

5. This monitor does not have an image scaling option.

nvidia-settings 510.47.03-0ubuntu1

System Info
================================================================{
inxi -Fxxrzc0
System:
  Kernel: 5.15.0-84-generic x86_64 bits: 64 compiler: gcc v: 11.4.0
    Desktop: MATE 1.26.0 wm: marco dm: LightDM
    Distro: Ubuntu 22.04.3 LTS (Jammy Jellyfish)
Machine:
  Type: Desktop Mobo: MSI model: B150M PRO-VDH (MS-7982) v: 1.0
    serial: <superuser required> UEFI: American Megatrends v: 3.H0
    date: 07/10/2018
CPU:
  Info: quad core model: Intel Core i5-6400 bits: 64 type: MCP
    arch: Skylake-S rev: 3 cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
  Speed (MHz): avg: 2256 high: 3219 min/max: 800/3300 cores: 1: 1271
    2: 1623 3: 2912 4: 3219 bogomips: 21599
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GA106 [Geforce RTX 3050] vendor: Gigabyte driver: nvidia
    v: 525.125.06 pcie: speed: 2.5 GT/s lanes: 8 ports: active: none
    off: HDMI-A-1 empty: DP-1,DP-2,HDMI-A-2 bus-ID: 01:00.0
    chip-ID: 10de:2507
  Display: x11 server: X.Org v: 1.21.1.4 compositors: 1: Picom v: 9
    2: marco v: 1.26.0 driver: X: loaded: nvidia gpu: nvidia display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 69
  Monitor-1: HDMI-0 res: 1920x1080 dpi: 70 diag: 801mm (31.5")
  OpenGL: renderer: NVIDIA GeForce RTX 3050/PCIe/SSE2
    v: 4.6.0 NVIDIA 525.125.06 direct render: Yes
...
Sensors:
  System Temperatures: cpu: 29.8 C pch: 37.0 C mobo: 27.8 C gpu: nvidia
    temp: 40 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Repos:
  Packages: 3100 apt: 3082 snap: 18
  Active apt repos in: /etc/apt/sources.list
    1: deb http://pl.archive.ubuntu.com/ubuntu/ jammy main restricted
    2: deb http://pl.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
    3: deb http://pl.archive.ubuntu.com/ubuntu/ jammy universe
    4: deb http://pl.archive.ubuntu.com/ubuntu/ jammy-updates universe
    5: deb http://pl.archive.ubuntu.com/ubuntu/ jammy multiverse
    6: deb http://pl.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
    7: deb http://pl.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
    8: deb http://security.ubuntu.com/ubuntu jammy-security main restricted
    9: deb http://security.ubuntu.com/ubuntu jammy-security universe
    10: deb http://security.ubuntu.com/ubuntu jammy-security multiverse
  No active apt repos in: /etc/apt/sources.list.d/minetestdevs-ubuntu-stable-jammy.list
  Active apt repos in: /etc/apt/sources.list.d/mozillateam-ubuntu-ppa-jammy.list
    1: deb https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/ jammy main
    2: deb-src https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu/ jammy main
Info:
  Processes: 247 Uptime: 2h 7m Memory: 15.56 GiB used: 4.49 GiB (28.8%)
  Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12
  Shell: Bash v: 5.1.16 running-in: mate-terminal inxi: 3.3.13
================================================================}

Revision history for this message
tele1234567891 (swojskichlopak) wrote :

Now I can not save settings again.

From terminal:
============================================={
WARNING: Unable to parse X.Org version string.

Package xorg-server was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-server.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-server' found
=============================================}
However error not exist when settings are saved.

Revision history for this message
tele1234567891 (swojskichlopak) wrote :
Revision history for this message
tele1234567891 (swojskichlopak) wrote :

At the present day
- I upgraded driver to nvidia-driver-535 , 535.113.01-0ubuntu0.22.04.1
- I installed xserver-xorg-dev to remove above error about `xorg-server.pc'
But when I'm trying save settings to /etc/X11/xorg.conf
I have warning:

========={
WARNING: Unable to parse X.Org version string.
=========}

- After reboot I have 4K instead 1920x1080
- I checked whether the changes had actually been saved.

I did
- removed /etc/X11/xorg.conf
- checked with ls and not exist file /etc/X11/xorg.conf
- saved settings to /etc/X11/xorg.conf
and file exist
- after reboot, in /var/log/Xorg.0.log I see

====================={
...
[ 889.417] (II) NVIDIA(0): Validated MetaModes:
[ 889.417] (II) NVIDIA(0): "1920x1080_50+0+0"
[ 889.417] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
[ 889.491] (--) NVIDIA(0): DPI set to (69, 68); computed from "UseEdidDpi" X config
[ 889.491] (--) NVIDIA(0): option
[ 889.492] (II) NVIDIA: Reserving 24576.00 MB of virtual memory for indirect memory
[ 889.492] (II) NVIDIA: access.
[ 889.518] (II) NVIDIA(0): Setting mode "1920x1080_50+0+0"
[ 889.576] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 889.576] (==) NVIDIA(0): Backing store enabled
[ 889.576] (==) NVIDIA(0): Silken mouse enabled
[ 889.577] (**) NVIDIA(0): DPMS enabled
...
=====================}
- After reboot I have 4K instead 1920x1080

Revision history for this message
tele1234567891 (swojskichlopak) wrote :
Download full text (13.0 KiB)

From sudo /usr/bin/nvidia-bug-report.sh

===================={
/var/log/kern.log:
Oct 8 01:43:29 tele kernel: [ 260.464109] NVRM: API mismatch: the client has the version 535.113.01, but
Oct 8 01:43:29 tele kernel: [ 260.464109] NVRM: this kernel module has the version 525.125.06. Please
Oct 8 01:43:29 tele kernel: [ 260.464109] NVRM: make sure that this kernel module and all NVIDIA driver
Oct 8 01:43:29 tele kernel: [ 260.464109] NVRM: components have the same version.
====================}

From terminal
================================{
$ dpkg -l | grep nvidia
ii libnvidia-cfg1-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-common-535 535.113.01-0ubuntu0.22.04.1 all Shared files used by the NVIDIA libraries
rc libnvidia-compute-515:amd64 525.125.06-0ubuntu0.22.04.1 amd64 Transitional package for libnvidia-compute-525
rc libnvidia-compute-525:amd64 525.125.06-0ubuntu0.22.04.1 amd64 NVIDIA libcompute package
ii libnvidia-compute-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA libcompute package
ii libnvidia-compute-535:i386 535.113.01-0ubuntu0.22.04.1 i386 NVIDIA libcompute package
ii libnvidia-decode-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA Video Decoding runtime libraries
ii libnvidia-decode-535:i386 535.113.01-0ubuntu0.22.04.1 i386 NVIDIA Video Decoding runtime libraries
ii libnvidia-egl-wayland1:amd64 1:1.1.9-1.1 amd64 Wayland EGL External Platform library -- shared library
ii libnvidia-encode-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVENC Video Encoding runtime library
ii libnvidia-encode-535:i386 535.113.01-0ubuntu0.22.04.1 i386 NVENC Video Encoding runtime library
ii libnvidia-extra-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 Extra libraries for the NVIDIA driver
ii libnvidia-fbc1-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-fbc1-535:i386 535.113.01-0ubuntu0.22.04.1 i386 NVIDIA OpenGL-based Framebuffer Capture runtime library
ii libnvidia-gl-535:amd64 535.113.01-0ubuntu0.22.04.1 amd64 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii libnvidia-gl-535:i386 535.113.01-0ubuntu0.22.04.1 i386 NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
rc linux-modules-nvidia-515-5.15.0-40-generic 5.15.0-40.43+1 amd64 Linux kernel nvidia modules for version 5.15.0-40
rc linux-modules-nvidia-515-5.15.0-41-generic 5.15.0-41.44+1 amd64 Linux kernel nvidia modul...

Revision history for this message
tele1234567891 (swojskichlopak) wrote :

I open mate-display-properties and I changed the screen resolution from 4K to 1920x1080,
then after reboot system I have 1920x1080.

Do these programs use a different configuration file?

Revision history for this message
tele1234567891 (swojskichlopak) wrote :

However, I once found an entry saying that I can delete a file. I don't remember the details, but it doesn't work.

Revision history for this message
tele1234567891 (swojskichlopak) wrote (last edit ):

After the latest driver update, the system was unable to load Nvidia drivers.
Driver Manager was unable to install / load other drivers.
( /usr/bin/software-properties-gtk --open-tab=4 )
Something ... " libhvloc-plugins: requires libxnvctrl0 " ...
I used

apt-get purge *nvidia*
apt --fix-broken install
apt autoremove
apt install nvidia-driver-545

and that solved my problem with manager for drivers.
Thank you for supporting VESA.
During the repair, I used both the Noveau and VESA drivers.

At the moment:

1. I still can't save resolution in nvidia-settings
" Unable to open X config file '/etc/X11/xorg.conf' for writing "

2. changing from 1920x1080 to 4K now working

3. About Steam icon I'll try reporting to Steam on github

4. There are two problems with scaling.
4.1 The image is smaller, but without the menu bar.
- Let's assume it's a driver or monitor problem.
4.2 Some TVs can scale the image automatically, but my monitor doesn't.
- It's monitor problem.

Enjoy your work,
Good luck.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.