Error setting independent scaling factors for two different monitors

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Vitooo
Level 1
Level 1
Posts: 7
Joined: Mon Jul 17, 2023 7:39 pm

Error setting independent scaling factors for two different monitors

Post by Vitooo »

Linux Mint 21.2 Cinnamon
Cinnamon v 5.8.4
Linux Kernel: 6.2.0-33-generic
CPU: AMD Ryzen 9 5900HX with Radeon Graphics × 8
Memory: 30.7 GB
Graphics: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q]
Graphics: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne
NVIDIA Driver Version: 525.125.06
PRIME Profile: NVIDIA On-Demand mode

It seems that Cinnamon cannot handle different scaling factors on multiple monitors.
My laptop has a 2560x1600~60Hz screen (set as the primary display), and I have an external Dell monitor with 1920x1080~60Hz connected to a USB C HDMI Adapter (recognized as a DisplayPort by the system).
The primary display (2560x1600) at 100% is too small to read. When I select 150% for the primary display and 100% for the external Dell monitor, the Dell monitor only shows the upper left quarter of the screen. The primary display looks good. The image describes it better:

Image

This is very annoying! The only way to see the external monitor correctly without zooming is to set the primary display to 2560x1600 at 100%, which is nearly unreadable for me. On Windows, I can select different scaling for both monitors independently, and it works really fine.
How can I achieve this in Linux Mint?

Thank you in advance for your support!

Vito
Last edited by LockBot on Thu Mar 21, 2024 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Error setting independent scaling factors for two different monitors

Post by SMG »

Vitooo wrote: Thu Sep 21, 2023 3:45 pm Linux Mint 21.2 Cinnamon
Cinnamon v 5.8.4
Linux Kernel: 6.2.0-33-generic
CPU: AMD Ryzen 9 5900HX with Radeon Graphics × 8
Memory: 30.7 GB
Graphics: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q]
Graphics: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne
NVIDIA Driver Version: 525.125.06
PRIME Profile: NVIDIA On-Demand mode
Welcome to the forum, Vitooo.

Please open the System Reports app and click the System Information tab on the left. Your computer's information should come up in the right pane. Then click the Copy button in the lower right and paste the results into a reply window here so we can see how Linux Mint views your hardware.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Vitooo
Level 1
Level 1
Posts: 7
Joined: Mon Jul 17, 2023 7:39 pm

Re: Error setting independent scaling factors for two different monitors

Post by Vitooo »

SMG wrote: Sun Sep 24, 2023 7:56 pm
Vitooo wrote: Thu Sep 21, 2023 3:45 pm Linux Mint 21.2 Cinnamon
Cinnamon v 5.8.4
Linux Kernel: 6.2.0-33-generic
CPU: AMD Ryzen 9 5900HX with Radeon Graphics × 8
Memory: 30.7 GB
Graphics: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q]
Graphics: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne
NVIDIA Driver Version: 525.125.06
PRIME Profile: NVIDIA On-Demand mode
Welcome to the forum, Vitooo.

Please open the System Reports app and click the System Information tab on the left. Your computer's information should come up in the right pane. Then click the Copy button in the lower right and paste the results into a reply window here so we can see how Linux Mint views your hardware.
Thank you SMG!

Here is my system info:

Code: Select all

System:
  Kernel: 6.2.0-33-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.8.4 tk: GTK 3.24.33
    wm: muffin dm: LightDM Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 20YM v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required> Chassis: type: 10 v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T08861 WIN serial: <superuser required> UEFI: LENOVO
    v: GXCN43WW date: 06/15/2022
Battery:
  ID-1: BAT0 charge: 71.5 Wh (100.0%) condition: 71.5/71.0 Wh (100.8%) volts: 15.4 min: N/A
    model: SMP L20M4PD3 serial: <filter> status: Full
CPU:
  Info: 8-core model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3
    rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 2300 high: 4574 min/max: 1200/4679 boost: enabled cores: 1: 1200 2: 3663
    3: 3624 4: 1200 5: 1200 6: 1200 7: 1200 8: 3619 9: 1200 10: 1200 11: 3612 12: 3614 13: 4574
    14: 3300 15: 1200 16: 1200 bogomips: 105398
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: nvidia
    v: 525.125.06 pcie: speed: 2.5 GT/s lanes: 8 ports: active: none off: DP-3 empty: DP-4,eDP-2
    bus-ID: 01:00.0 chip-ID: 10de:2520
  Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16
    ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 05:00.0 chip-ID: 1002:1638
  Device-3: Luxvisions Innotech Integrated Camera type: USB driver: uvcvideo bus-ID: 3-3:3
    chip-ID: 30c9:0030
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati,nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1200 s-dpi: 96
  Monitor-1: DP-1-0 pos: right res: 1920x1080 dpi: 69 diag: 812mm (32")
  Monitor-2: eDP pos: primary,left res: 1920x1200 dpi: 142 diag: 406mm (16")
  OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.49 6.2.0-33-generic)
    v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
Audio:
  Device-1: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:228e
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3
  Sound Server-1: ALSA v: k6.2.0-33-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 8086:2723
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-3:2 chip-ID: 8087:0029
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2
    sub-v: 237e
Drives:
  Local Storage: total: 953.87 GiB used: 310.81 GiB (32.6%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBPNTY-1T00-1101 size: 953.87 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 29.9 C
Partition:
  ID-1: / size: 374.42 GiB used: 310.77 GiB (83.0%) fs: ext4 dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 256 MiB used: 39.4 MiB (15.4%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Device-1: 1-3:2 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb rev: 2.0
    speed: 12 Mb/s chip-ID: 8087:0029
  Device-2: 1-4:3 info: Elan Micro ELAN:Fingerprint type: <vendor specific> driver: N/A rev: 2.0
    speed: 12 Mb/s chip-ID: 04f3:0c4b
  Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Device-1: 3-2:2 info: Kingston HyperX Pulsefire Core type: Mouse,Keyboard,HID
    driver: hid-generic,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 0951:16de
  Device-2: 3-3:3 info: Luxvisions Innotech Integrated Camera type: Video driver: uvcvideo
    rev: 2.0 speed: 480 Mb/s chip-ID: 30c9:0030
  Device-3: 3-4:4 info: Integrated Express ITE Device(8296) type: Keyboard
    driver: hid-generic,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 048d:c916
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
Sensors:
  System Temperatures: cpu: 62.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2966 apt: 2911 flatpak: 55
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
  Active apt repos in: /etc/apt/sources.list.d/hashicorp.list
    1: deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https: //apt.releases.hashicorp.com jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com victoria main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https: //repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
    1: deb http: //repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https: //linux.teamviewer.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http: //packages.microsoft.com/repos/code stable main
Info:
  Processes: 469 Uptime: 24m Memory: 30.71 GiB used: 6.59 GiB (21.4%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Unknown python3.10 client inxi: 3.3.13
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Error setting independent scaling factors for two different monitors

Post by SMG »

Vitooo wrote: Thu Sep 28, 2023 3:04 pm Graphics:
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati,nvidia
unloaded: fbdev,modesetting,nouveau,vesa gpu: amdgpu display-ID: :0 screens: 1
OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.49 6.2.0-33-generic)
v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
It appears the AMD GPU is the primary so let's see if the 6.5-oem kernel helps with this situation.

You can install the latest 6.5-oem kernel with

Code: Select all

sudo apt-get install linux-oem-22.04d
and reboot.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Vitooo
Level 1
Level 1
Posts: 7
Joined: Mon Jul 17, 2023 7:39 pm

Re: Error setting independent scaling factors for two different monitors

Post by Vitooo »

SMG wrote: Thu Sep 28, 2023 4:40 pm
Vitooo wrote: Thu Sep 28, 2023 3:04 pm Graphics:
Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati,nvidia
unloaded: fbdev,modesetting,nouveau,vesa gpu: amdgpu display-ID: :0 screens: 1
OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.49 6.2.0-33-generic)
v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
It appears the AMD GPU is the primary so let's see if the 6.5-oem kernel helps with this situation.

You can install the latest 6.5-oem kernel with

Code: Select all

sudo apt-get install linux-oem-22.04d
and reboot.
As you suggested, I installed the 6.5.0-1003-oem kernel. I've noticed that the nvidia driver was not loaded. mintreport:

Code: Select all

System:
  Kernel: 6.5.0-1003-oem x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.8.4 tk: GTK 3.24.33
    wm: muffin dm: LightDM Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy
...
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: N/A pcie:
    speed: 8 GT/s lanes: 8 bus-ID: 01:00.0 chip-ID: 10de:2520
  Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16
    ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 05:00.0 chip-ID: 1002:1638
  Device-3: Luxvisions Innotech Integrated Camera type: USB driver: uvcvideo bus-ID: 3-3:3
    chip-ID: 30c9:0030
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3408x2130 s-dpi: 144
  Monitor-1: eDP res: 3408x2130 dpi: 252 diag: 406mm (16")
  OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.54 6.5.0-1003-oem)
    v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
...
So I reinstalled the NVIDIA drivers. First, I tried with the nvidia-driver-535 and the result was this:
Image
That is my primary laptop display. The secondary display (Dell external monitor) seemed to be alright, but it was impossible to execute "cinnamon-settings display" to change the primary display to the Dell monitor and execute mintreport.

After this unexpected result, I purged the NVIDIA drivers (that solved the distorted display issue) and then I reinstalled the nvidia-driver-525, but it seems that it can't be loaded with that kernel oem version. The driver-manager UI installer gives an "unexpected error" with no info. mintreport:

Code: Select all

System:
  Kernel: 6.5.0-1003-oem x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.8.4 tk: GTK 3.24.33
    wm: muffin dm: LightDM Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy
...
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: N/A pcie:
    speed: 8 GT/s lanes: 8 bus-ID: 01:00.0 chip-ID: 10de:2520
  Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16
    ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 05:00.0 chip-ID: 1002:1638
  Device-3: Luxvisions Innotech Integrated Camera type: USB driver: uvcvideo bus-ID: 3-3:3
    chip-ID: 30c9:0030
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3408x2130 s-dpi: 144
  Monitor-1: eDP res: 3408x2130 dpi: 252 diag: 406mm (16")
  OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.54 6.5.0-1003-oem)
    v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
...
So, I returned to my previous configuration. My problem persists.

I read in a forum that Lenovo laptops have all of their outputs including type-C wired to NVIDIA card. Could this scaling problem be related to NVIDIA drivers?

Thank you!!
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Error setting independent scaling factors for two different monitors

Post by SMG »

Vitooo wrote: Sun Oct 01, 2023 10:22 pmAs you suggested, I installed the 6.5.0-1003-oem kernel. I've noticed that the nvidia driver was not loaded.
There is a difference between the driver being installed and the driver loading at boot time. They are two different steps. Just because the driver did not load at boot time does not mean you should be re-installing it over top of the installation you already have.

There can be multiple reasons the Nvidia driver does not load at boot time. The primary one is the fact your system was likely in AMD-Powersave mode. Did you check to see what mode your system was in before you starting making changes?
Vitooo wrote: Sun Oct 01, 2023 10:22 pm So I reinstalled the NVIDIA drivers.
How did you "reinstall" the Nvidia driver? What steps did you do?
Vitooo wrote: Sun Oct 01, 2023 10:22 pm First, I tried with the nvidia-driver-535 and the result was this:
That's impressive especially considering your laptop display was not even using Nvidia. Did you try installing AMD drivers from the AMD website? Those will not work with OEM kernels and they also do not work with kernels newer than 6.2.
Vitooo wrote: Sun Oct 01, 2023 10:22 pmAfter this unexpected result, I purged the NVIDIA drivers
How did you "purge" the drivers? You likely removed the nvidia-prime-applet if you used terminal wildcards.
Vitooo wrote: Sun Oct 01, 2023 10:22 pm(that solved the distorted display issue) and then I reinstalled the nvidia-driver-525, but it seems that it can't be loaded with that kernel oem version. The driver-manager UI installer gives an "unexpected error" with no info.
I cannot help you if you do not provide the output you are seeing. Others with Nvidia have been able to use the 6.5-oem kernel.

Please provide your complete system information by opening the System Reports app and click the System Information tab on the left. Your computer's information should come up in the right pane. Then click the Copy button in the lower right and paste the results into a reply window here so we can see how Linux Mint views your hardware.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Error setting independent scaling factors for two different monitors

Post by SMG »

Vitooo wrote: Thu Sep 21, 2023 3:45 pmGraphics: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne
Because of the "snow" issue you had on the laptop screen, I suggest making sure you have the latest linux-firmware for amdgpu.

Here are instructions to update your system with the latest AMD driver linux-firmware.
  • Take a Timeshift snapshot. If this change causes problems, a snapshot will be the best way to reverse the change.
  • Please go to this page and download the linux-firmware-main.tar.gz firmware package into your Downloads directory. Make sure there is still a red rectangle with HEAD in it and a green rectangle with main in it. If not, stop and I will get you updated information.
  • Right-click the downloaded file and select "Extract here". That will create a directory named linux-firmware-main.
  • Navigate to the amdgpu folder and open a terminal in that directory and run the following lines one at a time.

    Code: Select all

    sudo cp -u * /lib/firmware/amdgpu/
    sudo update-initramfs -u -k all
  • Reboot the computer.
If you have any questions on the instructions, just ask.

Please also check in the BIOS/UEFI of your computer to see if there is an option for graphics and let us know if there is and what the options are. It might say something like Hybrid or Discrete.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Vitooo
Level 1
Level 1
Posts: 7
Joined: Mon Jul 17, 2023 7:39 pm

Re: Error setting independent scaling factors for two different monitors

Post by Vitooo »

Hi SMG!

Maybe I took many steps without asking. This time, I will be waiting for your reply. I'm going to clarify the situation and answer your questions before proceeding.
There can be multiple reasons the Nvidia driver does not load at boot time. The primary one is the fact your system was likely in AMD-Powersave mode. Did you check to see what mode your system was in before you starting making changes?
Yes, it is in "NVIDIA on-demand" mode in order to save battery.

Code: Select all

$ prime-select query
on-demand
How did you "reinstall" the Nvidia driver? What steps did you do?
The nvidia-driver-525 was selected in the driver-manager but not active, as I told you before. So, I just selected the nvidia-driver-535 in the driver-manager and I installed it.
How did you "purge" the drivers? You likely removed the nvidia-prime-applet if you used terminal wildcards.
I purged the NVIDIA drivers, and yes, I accidentally removed the nvidia-prime-applet.

Code: Select all

$ sudo apt-get remove --purge *nvidia*
When I reinstalled the NVIDIA drivers again, I noticed that the "NVIDIA applet" was missing. So, I installed the nvidia-prime-applet again

Code: Select all

$ sudo apt-get install nvidia-prime-applet
Please also check in the BIOS/UEFI of your computer to see if there is an option for graphics and let us know if there is and what the options are. It might say something like Hybrid or Discrete.
It is in "hybrid" mode at the moment, both GPUs are enabled. I used to set this option in "discrete" mode (only NVIDIA gpu), but the battery consumption was very high.

So, I hope this explanation is clear enough!

I have a question to ask BEFORE installing the latest AMDGPU drivers manually.
As I commented before, it seems that the USB-C video connector is NOT attached to the AMDGPU, but to the NVIDIA GPU.
Some evidence:

Querying the connected displays with nvidia-settings:

Code: Select all

$ nvidia-settings --query ConnectedDisplays -d

DEPRECATED: The attribute 'ConnectedDisplays' is deprecated, use "-q dpys" instead.

  Attribute 'ConnectedDisplays' (ThinkBook:0[gpu:0]): TV-0.
    'ConnectedDisplays' is a bitmask attribute.
    'ConnectedDisplays' is a read-only attribute.
    'ConnectedDisplays' can use the following target types: X Screen, GPU.
If I disconnect the DELL external monitor and I run that command again, TV-0 disappears. So the DELL external monitor is connected to the NVIDIA GPU, and the laptop monitor is connected to the AMDGPU.

In order to know which GPU is gpu:0:

Code: Select all

$ nvidia-smi
Mon Oct  2 18:06:56 2023       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.125.06   Driver Version: 525.125.06   CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |
| N/A   38C    P8    13W /  60W |     54MiB /  6144MiB |     39%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1200      G   /usr/lib/xorg/Xorg                 53MiB |
+-----------------------------------------------------------------------------+
GPU:0 is the NVIDIA GPU.

I think that this means that the NVIDIA driver is controlling the DELL external monitor. In fact, I can configure the DELL monitor with the NVIDIA settings application, but I can't control the integrated laptop monitor.

I really don't know how Cinnamon Desktop controls the independent scaling (maybe it uses xrandr?) but it seems that the command that Cinnamon uses, is not being correctly applied to the DELL monitor. Could this be due to a problem with the NVIDIA drivers controlling the external monitor? I want to make sure that this issue has nothing to do with the NVIDIA drivers before applying a manual update to the AMDGPU drivers.
If Cinnamon uses xrandr, maybe a terminal command to test it could be useful?

As you requested, I'm sharing my system info again:

Code: Select all

System:
  Kernel: 6.2.0-33-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.8.4 tk: GTK 3.24.33
    wm: muffin dm: LightDM Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 20YM v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required> Chassis: type: 10 v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T08861 WIN serial: <superuser required> UEFI: LENOVO
    v: GXCN43WW date: 06/15/2022
Battery:
  ID-1: BAT0 charge: 70.4 Wh (98.5%) condition: 71.5/71.0 Wh (100.8%) volts: 15.4 min: N/A
    model: SMP L20M4PD3 serial: <filter> status: Not charging
CPU:
  Info: 8-core model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3
    rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 3104 high: 4527 min/max: 1200/4679 boost: enabled cores: 1: 3611 2: 3300
    3: 4410 4: 4279 5: 1200 6: 3300 7: 3609 8: 3611 9: 3700 10: 1200 11: 4527 12: 3300 13: 3613
    14: 1200 15: 3612 16: 1200 bogomips: 105405
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: nvidia
    v: 525.125.06 pcie: speed: 2.5 GT/s lanes: 8 ports: active: none off: DP-3 empty: DP-4,eDP-2
    bus-ID: 01:00.0 chip-ID: 10de:2520
  Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16
    ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 05:00.0 chip-ID: 1002:1638
  Device-3: Luxvisions Innotech Integrated Camera type: USB driver: uvcvideo bus-ID: 3-3:3
    chip-ID: 30c9:0030
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati,nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1200 s-dpi: 96
  Monitor-1: DP-1-0 pos: right res: 1920x1080 dpi: 93 diag: 604mm (23.8")
  Monitor-2: eDP pos: primary,left res: 1920x1200 dpi: 142 diag: 406mm (16")
  OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.49 6.2.0-33-generic)
    v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
Audio:
  Device-1: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:228e
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3
  Sound Server-1: ALSA v: k6.2.0-33-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 8086:2723
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-3:2 chip-ID: 8087:0029
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2
    sub-v: 237e
Drives:
  Local Storage: total: 953.87 GiB used: 310.92 GiB (32.6%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBPNTY-1T00-1101 size: 953.87 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 31.9 C
Partition:
  ID-1: / size: 374.42 GiB used: 310.88 GiB (83.0%) fs: ext4 dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 256 MiB used: 39.4 MiB (15.4%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Device-1: 1-3:2 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb rev: 2.0
    speed: 12 Mb/s chip-ID: 8087:0029
  Device-2: 1-4:3 info: Elan Micro ELAN:Fingerprint type: <vendor specific> driver: N/A rev: 2.0
    speed: 12 Mb/s chip-ID: 04f3:0c4b
  Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Device-1: 3-2:2 info: Kingston HyperX Pulsefire Core type: Mouse,Keyboard,HID
    driver: hid-generic,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 0951:16de
  Device-2: 3-3:3 info: Luxvisions Innotech Integrated Camera type: Video driver: uvcvideo
    rev: 2.0 speed: 480 Mb/s chip-ID: 30c9:0030
  Device-3: 3-4:4 info: Integrated Express ITE Device(8296) type: Keyboard
    driver: hid-generic,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 048d:c916
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
Sensors:
  System Temperatures: cpu: 65.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2960 apt: 2905 flatpak: 55
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
  Active apt repos in: /etc/apt/sources.list.d/hashicorp.list
    1: deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https: //apt.releases.hashicorp.com jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com victoria main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https: //repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
    1: deb http: //repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https: //linux.teamviewer.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http: //packages.microsoft.com/repos/code stable main
Info:
  Processes: 456 Uptime: 42m Memory: 30.71 GiB used: 7 GiB (22.8%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Unknown python3.10 client inxi: 3.3.13

Thank you very much for your support, SMG!
I really appreciate it!
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Error setting independent scaling factors for two different monitors

Post by SMG »

Vitooo wrote: Mon Oct 02, 2023 6:27 pmIt is in "hybrid" mode at the moment, both GPUs are enabled. I used to set this option in "discrete" mode (only NVIDIA gpu), but the battery consumption was very high.
Did it help the issue with the scaling? I'm asking to see if we can pinpoint where the issue might be originating. While there have been a lot of AMD driver bugs, there is also the additional factor in this case that there are two GPUs in the computer. That can sometimes complicate determining the source of a problem.
Vitooo wrote: Mon Oct 02, 2023 6:27 pmSo, I hope this explanation is clear enough!
Yes, it was all good and your system sounds to be in good shape now.
Vitooo wrote: Mon Oct 02, 2023 6:27 pmI have a question to ask BEFORE installing the latest AMDGPU drivers manually.
There are no amdgpu drivers for you to install manually. You should be using the drivers which load automatically from the kernel.

The information I posted is for linux-firmware which are support files for the amdgpu drivers so they can function to their fullest potential (and sometimes they are tweaked to fix bugs).
Vitooo wrote: Mon Oct 02, 2023 6:27 pm As I commented before, it seems that the USB-C video connector is NOT attached to the AMDGPU, but to the NVIDIA GPU.
I never said your TV was connected to the AMDGPU. I made the point earlier in the topic that your LAPTOP SCREEN was connected to the AMDGPU. In fact, the inxi data you posted indicates your TV is connected to the Nvidia GPU. That's never been a question.

Additionally, I said the AMDGPU is the primary renderer. I did NOT say it was the only one. The primary renderer loads first and that is what shows as the GPU in inxi. However, there are laptops for which both renderers load, but only one shows in the inxi field. I've not yet figured out why that happens; I presume it has something to do with the way the ports/screens are wired to the GPUs.
Vitooo wrote: Mon Oct 02, 2023 6:27 pmIn order to know which GPU is gpu:0:
In order to know which GPU is GPU-0, I check /var/log/Xorg.0.log. That is a better place to check because it has the information for both Nvidia and AMD. Running the Nvidia settings info will not tell you about AMD.

A word of caution: the Nvidia tools are mainly designed assuming that your computer only has Nvidia. That is not true in your case so be careful with data you find online telling you to do something from the command line because you may end up shutting out the AMD GPU (ask all the people who got black screens because they unknowingly shut out their AMD or Intel onboard GPUs).
Vitooo wrote: Mon Oct 02, 2023 6:27 pmI really don't know how Cinnamon Desktop controls the independent scaling (maybe it uses xrandr?)
FYI: You cannot make changes to Nvidia-controlled screens using xrandr. You can only use xrandr for open-source drivers (AMD, Intel, nouveau).

It's possible this issue may be a bug in Cinnamon (or muffin) or this could be an issue because there are two different graphics drivers involved. I don't know the best way to describe the problem to search through the Cinnamon bugs to see if it has already been mentioned. I did take a quick check through the muffin issues a couple of days ago, but I couldn't find what I thought I remembered seeing in the past.

There are many AMD bugs and I don't have the time right now to hunt through them to see if something like this has happened. I know people have run into odd issues because of dual-graphics, but I'm not sure of a good way to narrow down the bug list to see if there is something like this.
Vitooo wrote: Mon Oct 02, 2023 6:27 pm As you requested, I'm sharing my system info again:
Here's where the data indicates which ports are active. Sometimes the data for active and off are not accurate, but the sum of those two are usually what have screens attached to them.

Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: nvidia
v: 525.125.06 pcie: speed: 2.5 GT/s lanes: 8 ports: active: none off: DP-3 empty: DP-4,eDP-2
bus-ID: 01:00.0 chip-ID: 10de:2520

Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16
ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 05:00.0 chip-ID: 1002:1638

Notice in this part that display drivers for both AMD and Nvidia are loaded. However, the gpu field only shows amdgpu.

Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati,nvidia
unloaded: fbdev,modesetting,nouveau,vesa gpu: amdgpu display-ID: :0 screens: 1

Additionally, the renderer showing is AMD. That is why I said AMD was the primary (primary does not mean only one; primary implies there is a secondary).
OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.49 6.2.0-33-generic)
v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes

You can see the specifics of which port is attached to which monitor by running xrandr --verbose. Check my explanation on how to interpret it near the bottom of this post. Now that I look closer at that topic, you both have the same computer and the same problem. :shock: You do have a slightly different CPU than the other person.

Here are the AMD issues if you want to see if there are any Lenovo ThinkBook 16p Gen 2 users who have posted bugs.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Vitooo
Level 1
Level 1
Posts: 7
Joined: Mon Jul 17, 2023 7:39 pm

Re: Error setting independent scaling factors for two different monitors

Post by Vitooo »

Hi SMG!

Thank you again!
I did another test, and I found a "solution". Setting the nvidia-prime-applet to the "Performance" mode and then setting the UEFI in "discrete" mode (only NVIDIA gpu) solved the issue. Now I am able to set 150% scaling for the laptop monitor and 100% for the external DELL monitor. Also, minor issues with the login screen were solved (I didn't mention this before, it has no importance to me anyway).
But the issue is solved at a HIGH price. My laptop is now consuming more battery than before, and its temperature is higher.
I hope this gives you more detail on the problem. I didn't try the linux-firmware manual update yet (I said "drivers update" in my previous post, sorry, my bad. I didn't know the difference)

What do you think? What should I do? It would be great to get this working with the UEFI hybrid mode and NVIDIA on demand mode to make my laptop cooler.
Should I try the linux-firmware manual update for the amdgpu?

Thank you!

Here I'm sharing my system info again with this particular scenario (NVIDIA performance mode | UEFI Discrete mode):

Code: Select all

System:
  Kernel: 6.2.0-33-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.8.4 tk: GTK 3.24.33
    wm: muffin dm: LightDM Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 20YM v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required> Chassis: type: 10 v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T08861 WIN serial: <superuser required> UEFI: LENOVO
    v: GXCN43WW date: 06/15/2022
Battery:
  ID-1: BAT0 charge: 69.9 Wh (97.8%) condition: 71.5/71.0 Wh (100.8%) volts: 15.4 min: N/A
    model: SMP L20M4PD3 serial: <filter> status: Not charging
CPU:
  Info: 8-core model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MT MCP arch: Zen 3
    rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 2864 high: 4442 min/max: 1200/4679 boost: enabled cores: 1: 3776 2: 1200
    3: 3546 4: 3531 5: 1200 6: 1200 7: 3568 8: 1200 9: 4441 10: 4442 11: 1200 12: 4442 13: 3553
    14: 1200 15: 3573 16: 3752 bogomips: 105405
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: nvidia
    v: 525.125.06 pcie: speed: 5 GT/s lanes: 8 ports: active: none off: DP-1,eDP-1 empty: DP-2
    bus-ID: 01:00.0 chip-ID: 10de:2520
  Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16
    ports: active: none empty: DP-3,DP-4,eDP-2 bus-ID: 05:00.0 chip-ID: 1002:1638
  Device-3: Luxvisions Innotech Integrated Camera type: USB driver: uvcvideo bus-ID: 3-3:3
    chip-ID: 30c9:0030
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati,nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia,amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 7248x2160 s-dpi: 120
  Monitor-1: DP-0 pos: right res: 3840x2160 dpi: 138 diag: 812mm (32")
  Monitor-2: DP-4 pos: primary,left res: 3408x2130 dpi: 252 diag: 406mm (16")
  OpenGL: renderer: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 v: 4.6.0 NVIDIA 525.125.06
    direct render: Yes
Audio:
  Device-1: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:228e
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3
  Sound Server-1: ALSA v: k6.2.0-33-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 8086:2723
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-3:2 chip-ID: 8087:0029
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2
    sub-v: 237e
Drives:
  Local Storage: total: 953.87 GiB used: 310.74 GiB (32.6%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBPNTY-1T00-1101 size: 953.87 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 32.9 C
Partition:
  ID-1: / size: 374.42 GiB used: 310.71 GiB (83.0%) fs: ext4 dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 256 MiB used: 39.4 MiB (15.4%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Device-1: 1-3:2 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb rev: 2.0
    speed: 12 Mb/s chip-ID: 8087:0029
  Device-2: 1-4:3 info: Elan Micro ELAN:Fingerprint type: <vendor specific> driver: N/A rev: 2.0
    speed: 12 Mb/s chip-ID: 04f3:0c4b
  Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002
  Device-1: 3-2:2 info: Kingston HyperX Pulsefire Core type: Mouse,Keyboard,HID
    driver: hid-generic,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 0951:16de
  Device-2: 3-3:3 info: Luxvisions Innotech Integrated Camera type: Video driver: uvcvideo
    rev: 2.0 speed: 480 Mb/s chip-ID: 30c9:0030
  Device-3: 3-4:4 info: Integrated Express ITE Device(8296) type: Keyboard
    driver: hid-generic,usbhid rev: 2.0 speed: 12 Mb/s chip-ID: 048d:c916
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
Sensors:
  System Temperatures: cpu: 84.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  GPU: device: nvidia screen: :0.0 temp: 54 C device: amdgpu temp: N/A
Repos:
  Packages: 2960 apt: 2905 flatpak: 55
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
  Active apt repos in: /etc/apt/sources.list.d/hashicorp.list
    1: deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https: //apt.releases.hashicorp.com jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com victoria main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https: //repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
    1: deb http: //repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https: //linux.teamviewer.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http: //packages.microsoft.com/repos/code stable main
Info:
  Processes: 471 Uptime: 26m Memory: 30.71 GiB used: 9.13 GiB (29.7%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Unknown python3.10 client inxi: 3.3.13
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Error setting independent scaling factors for two different monitors

Post by SMG »

Vitooo wrote: Tue Oct 03, 2023 11:46 amI did another test, and I found a "solution". Setting the nvidia-prime-applet to the "Performance" mode and then setting the UEFI in "discrete" mode (only NVIDIA gpu) solved the issue. Now I am able to set 150% scaling for the laptop monitor and 100% for the external DELL monitor. Also, minor issues with the login screen were solved (I didn't mention this before, it has no importance to me anyway).
That would seem to indicate that somehow either the AMD driver is the problem or the interaction between AMD and Nvidia is the problem.
Vitooo wrote: Tue Oct 03, 2023 11:46 amBut the issue is solved at a HIGH price. My laptop is now consuming more battery than before, and its temperature is higher.
That is what usually happens when running in Discrete Nvidia mode.

However, I'm surprised to see both GPUs still listed in the output. In other laptops when one sets the BIOS/UEFI to Discrete, only the Nvidia GPU shows. :? That would seem to indicate there either is not a MUX or it is some type of special MUX switch.

I would like to point out several changes which may give clues as to what is happening. The first is the laptop screen (eDP) is now showing as being driven by Nvidia.

Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: nvidia
v: 525.125.06 pcie: speed: 5 GT/s lanes: 8 ports: active: none off: DP-1,eDP-1 empty: DP-2
bus-ID: 01:00.0 chip-ID: 10de:2520
Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16
ports: active: none empty: DP-3,DP-4,eDP-2 bus-ID: 05:00.0 chip-ID: 1002:1638

There are also now two gpus listed.

Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati,nvidia
unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia,amdgpu display-ID: :0 screens: 1

If you run xrandr or xrandr --verbose, you will now likely see changes in the port information. Laptop screens tend to show just as DP ports when using Nvidia Discrete (usually, but not always). Notice there is no eDP listed now.

Code: Select all

  Monitor-1: DP-0 pos: right res: 3840x2160 dpi: 138 diag: 812mm (32")
  Monitor-2: DP-4 pos: primary,left res: 3408x2130 dpi: 252 diag: 406mm (16")
  OpenGL: renderer: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 v: 4.6.0 NVIDIA 525.125.06
    direct render: Yes
Vitooo wrote: Tue Oct 03, 2023 11:46 amShould I try the linux-firmware manual update for the amdgpu?
Yes, please try that. Not all of the linux-firmware updates are coming through the package system or if they are, they are slow to make it into the system.

Please check to see if this is the most recent BIOS/UEFI.
Machine:
Type: Laptop System: LENOVO product: 20YM v: Lenovo ThinkBook 16p Gen 2
serial: <superuser required> Chassis: type: 10 v: Lenovo ThinkBook 16p Gen 2
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0T08861 WIN serial: <superuser required> UEFI: LENOVO
v: GXCN43WW date: 06/15/2022
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Vitooo
Level 1
Level 1
Posts: 7
Joined: Mon Jul 17, 2023 7:39 pm

Re: Error setting independent scaling factors for two different monitors

Post by Vitooo »

Hi SMG!

So, after a couple of months using the nvidia-prime-applet in "Performance" mode and UEFI in "discrete" mode (only NVIDIA GPU), now I really need to activate both video cards and solve the scaling factor issue. I'm training AI models and need the full VRAM available in my NVIDIA video card. Using discrete and performance mode seems to make Cinnamon and Xorg consume a significant amount of VRAM, along with Chrome, Firefox, Nemo, etc.

Having said that, I decided to update the linux-firmware as you suggested before. However, the issue still remains unresolved. No solution at all.

I'm going to share with you the system info for both scenarios:


Scenario 1 (Scaling OK): nvidia-prime-applet in "Performance" mode and UEFI in "discrete" mode (only NVIDIA gpu)

Code: Select all

System:
  Kernel: 6.2.0-39-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33
    wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 20YM v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required> Chassis: type: 10 v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T08861 WIN serial: <superuser required> UEFI: LENOVO
    v: GXCN46WW date: 02/14/2023
Battery:
  ID-1: BAT0 charge: 71.5 Wh (100.0%) condition: 71.5/71.0 Wh (100.8%) volts: 15.4 min: N/A
    model: SMP L20M4PD3 type: Li-poly serial: <filter> status: Full cycles: 18
CPU:
  Info: 8-core model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MT MCP smt: enabled
    arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 1851 high: 3300 min/max: 1200/4679 boost: enabled cores: 1: 1200 2: 1200
    3: 1200 4: 2453 5: 1200 6: 1200 7: 3285 8: 1200 9: 2597 10: 2812 11: 1200 12: 1200 13: 1200
    14: 3174 15: 1200 16: 3300 bogomips: 105402
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: nvidia
    v: 535.161.07 pcie: speed: 2.5 GT/s lanes: 8 ports: active: none off: [color=#BF4000]DP-1,eDP-1[/color] empty: DP-2
    bus-ID: 01:00.0 chip-ID: 10de:2520 class-ID: 0300
  Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16
    ports: active: none empty: DP-3,DP-4,eDP-2 bus-ID: 05:00.0 chip-ID: 1002:1638 class-ID: 0300
  Device-3: Luxvisions Innotech Integrated Camera type: USB driver: uvcvideo bus-ID: 3-3:3
    chip-ID: 30c9:0030 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati,nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia,amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 7248x2160 s-dpi: 120 s-size: 1533x457mm (60.4x18.0") s-diag: 1600mm (63")
  [color=#BF4000]Monitor-1: DP-0 pos: right res: 3840x2160 hz: 60 dpi: 185 size: 527x296mm (20.7x11.7")[/color]
    diag: 604mm (23.8")
[color=#BF4000]  Monitor-2: DP-4 pos: primary,left res: 3408x2130 hz: 60 dpi: 252 size: 344x215mm (13.5x8.5")[/color]
    diag: 406mm (16")
  OpenGL: renderer: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 v: 4.6.0 NVIDIA 535.161.07
    direct render: Yes
Audio:
  Device-1: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:228e class-ID: 0403
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k6.2.0-39-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-3:2 chip-ID: 8087:0029
    class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2
    sub-v: 237e hci-v: 5.2 rev: 237e
Drives:
  Local Storage: total: 953.87 GiB used: 335.54 GiB (35.2%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBPNTY-1T00-1101 size: 953.87 GiB
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 11190001 temp: 33.9 C scheme: GPT
Partition:
  ID-1: / size: 374.42 GiB used: 335.49 GiB (89.6%) fs: ext4 dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 256 MiB used: 43.5 MiB (17.0%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-3:2 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb interfaces: 2
    rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029 class-ID: e001
  Device-2: 1-4:3 info: Elan Micro ELAN:Fingerprint type: <vendor specific> driver: N/A
    interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 04f3:0c4b class-ID: 0000
  Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-2:2 info: Kingston HyperX Pulsefire Core type: Mouse,Keyboard,HID
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0951:16de
    class-ID: 0300
  Device-2: 3-3:3 info: Luxvisions Innotech Integrated Camera type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 30c9:0030 class-ID: 0e02
    serial: <filter>
  Device-3: 3-4:4 info: Integrated Express ITE Device(8296) type: Keyboard
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 048d:c916
    class-ID: 0301
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 59.0 C mobo: N/A
  Fan Speeds (RPM): N/A
  GPU: device: nvidia screen: :0.0 temp: 44 C device: amdgpu temp: N/A
Repos:
  Packages: 2972 apt: 2921 flatpak: 51
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
  Active apt repos in: /etc/apt/sources.list.d/hashicorp.list
    1: deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https: //apt.releases.hashicorp.com jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //mirrors.cicku.me/linuxmint/packages virginia main upstream import backport
    2: deb http: //ubuntu.unc.edu.ar/ubuntu jammy main restricted universe multiverse
    3: deb http: //ubuntu.unc.edu.ar/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //ubuntu.unc.edu.ar/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https: //repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
    1: deb http: //repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https: //linux.teamviewer.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http: //packages.microsoft.com/repos/code stable main
Info:
  Processes: 474 Uptime: 4h 27m wakeups: 8147 Memory: 30.71 GiB used: 7.34 GiB (23.9%)
  Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Cinnamon v: 6.0.4
  inxi: 3.3.13
Scenario 2 (Scaling ISSUE): nvidia-prime-applet in "On demand" mode and UEFI in "switchable" mode (AMD and NVIDIA gpu)

Code: Select all

System:
  Kernel: 6.2.0-39-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33
    wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 20YM v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required> Chassis: type: 10 v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T08861 WIN serial: <superuser required> UEFI: LENOVO
    v: GXCN46WW date: 02/14/2023
Battery:
  ID-1: BAT0 charge: 71.5 Wh (100.0%) condition: 71.5/71.0 Wh (100.8%) volts: 15.4 min: N/A
    model: SMP L20M4PD3 type: Li-poly serial: <filter> status: Full cycles: 18
CPU:
  Info: 8-core model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MT MCP smt: enabled
    arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 1788 high: 3102 min/max: 1200/4679 boost: enabled cores: 1: 1198 2: 2037
    3: 1200 4: 2111 5: 1200 6: 3096 7: 1200 8: 2671 9: 2835 10: 3102 11: 1198 12: 1967 13: 1197
    14: 1200 15: 1198 16: 1200 bogomips: 105404
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: nvidia
    v: 535.161.07 pcie: speed: 2.5 GT/s lanes: 8 ports: active: none off: DP-3 empty: DP-4,eDP-2
    bus-ID: 01:00.0 chip-ID: 10de:2520 class-ID: 0300
  Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16
    ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 05:00.0 chip-ID: 1002:1638 class-ID: 0300
  Device-3: Luxvisions Innotech Integrated Camera type: USB driver: uvcvideo bus-ID: 3-3:3
    chip-ID: 30c9:0030 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati,nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 4480x1600 s-dpi: 96 s-size: 1185x423mm (46.7x16.7") s-diag: 1258mm (49.5")
  Monitor-1: DP-1-0 pos: right res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7")
    diag: 604mm (23.8")
  Monitor-2: eDP pos: primary,left res: 2560x1600 hz: 60 dpi: 189 size: 344x215mm (13.5x8.5")
    diag: 406mm (16")
  OpenGL: renderer: llvmpipe (LLVM 15.0.7 256 bits) v: 4.5 Mesa 23.2.1-1ubuntu3.1~22.04.2
    direct render: Yes
Audio:
  Device-1: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:228e class-ID: 0403
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k6.2.0-39-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-3:2 chip-ID: 8087:0029
    class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2
    sub-v: 237e hci-v: 5.2 rev: 237e
Drives:
  Local Storage: total: 953.87 GiB used: 336.03 GiB (35.2%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBPNTY-1T00-1101 size: 953.87 GiB
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 11190001 temp: 33.9 C scheme: GPT
Partition:
  ID-1: / size: 374.42 GiB used: 335.99 GiB (89.7%) fs: ext4 dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 256 MiB used: 43.5 MiB (17.0%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-3:2 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb interfaces: 2
    rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029 class-ID: e001
  Device-2: 1-4:3 info: Elan Micro ELAN:Fingerprint type: <vendor specific> driver: N/A
    interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 04f3:0c4b class-ID: 0000
  Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-2:2 info: Kingston HyperX Pulsefire Core type: Mouse,Keyboard,HID
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0951:16de
    class-ID: 0300
  Device-2: 3-3:3 info: Luxvisions Innotech Integrated Camera type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 30c9:0030 class-ID: 0e02
    serial: <filter>
  Device-3: 3-4:4 info: Integrated Express ITE Device(8296) type: Keyboard
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 048d:c916
    class-ID: 0301
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 58.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2972 apt: 2921 flatpak: 51
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
  Active apt repos in: /etc/apt/sources.list.d/hashicorp.list
    1: deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https: //apt.releases.hashicorp.com jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //mirrors.cicku.me/linuxmint/packages virginia main upstream import backport
    2: deb http: //ubuntu.unc.edu.ar/ubuntu jammy main restricted universe multiverse
    3: deb http: //ubuntu.unc.edu.ar/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //ubuntu.unc.edu.ar/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https: //repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
    1: deb http: //repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https: //linux.teamviewer.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http: //packages.microsoft.com/repos/code stable main
Info:
  Processes: 396 Uptime: 11m wakeups: 5 Memory: 30.71 GiB used: 2.8 GiB (9.1%) Init: systemd
  v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Cinnamon v: 6.0.4 inxi: 3.3.13
The only peculiar thing I've noticed is that in Scenario 1 (Performance mode & UEFI NVIDIA discrete mode), the screen resolutions aren't accurate.
Monitor-1: DP-0 pos: right res: 3840x2160 (maybe external DELL monitor?)
Monitor-2: DP-4 pos: primary, left res: 3408x2130 (maybe integrated laptop monitor?)
These resolutions are incorrect, but the scaling works well.

On the flip side, in Scenario 2 (On Demand mode & UEFI switchable mode), it displays the correct resolutions for both monitors:
Monitor-1: DP-1-0 pos: right res: 1920x1080 (external DELL monitor)
Monitor-2: eDP pos: primary, left res: 2560x1600 (integrated laptop monitor)
These resolutions are correct, but the scaling factor doesn't work.

I'm not sure if this odd resolution information is related to the issue, but it's worth mentioning.

Just a quick reminder regarding this issue: in scenario 2, if I don't activate the scaling factor, everything works as expected. However, the integrated laptop monitor at 2560x1600 and 100% scaling makes it almost impossible for me to read.
If I set the monitor to, for example, 1680x1050, it also works fine, and I can read, but since it's not the monitor's native resolution, it appears slightly blurry. It's the best option, but it's really killing my eyes.

I'm really at a loss for what else to try.
Could it be a bug in Cinnamon's scaling mechanism specifically related to this switchable GPUs scenario?

Can you help me SMG?

Thank you in advance for your support!
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Error setting independent scaling factors for two different monitors

Post by SMG »

Vitooo wrote: Fri Mar 15, 2024 7:06 pmSo, after a couple of months using the nvidia-prime-applet in "Performance" mode and UEFI in "discrete" mode (only NVIDIA GPU), now I really need to activate both video cards and solve the scaling factor issue.
I suggest you start by upgrading to a supported kernel. The 6.2 kernel went end of life last month and is no longer receiving updates.

I also suggest you clean this root partition because you are getting close to being not able to log into your system.
Partition:
ID-1: / size: 374.42 GiB used: 335.49 GiB (89.6%) fs: ext4 dev: /dev/nvme0n1p5
ID-2: /boot/efi size: 256 MiB used: 43.5 MiB (17.0%) fs: vfat dev: /dev/nvme0n1p1

Vitooo wrote: Fri Mar 15, 2024 7:06 pmScenario 2 (Scaling ISSUE): nvidia-prime-applet in "On demand" mode and UEFI in "switchable" mode (AMD and NVIDIA gpu)
Something appears to be wrong with this because the AMD renderer is not showing as loaded.

OpenGL: renderer: llvmpipe (LLVM 15.0.7 256 bits) v: 4.5 Mesa 23.2.1-1ubuntu3.1~22.04.2
direct render: Yes

If this is the correct link, it appears the latest BIOS/UEFI is version 48.
Machine:
Type: Laptop System: LENOVO product: 20YM v: Lenovo ThinkBook 16p Gen 2
serial: <superuser required> Chassis: type: 10 v: Lenovo ThinkBook 16p Gen 2
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0T08861 WIN serial: <superuser required> UEFI: LENOVO
v: GXCN46WW date: 02/14/2023
Vitooo wrote: Fri Mar 15, 2024 7:06 pmHowever, the integrated laptop monitor at 2560x1600 and 100% scaling makes it almost impossible for me to read.
You can change the font size.
Vitooo wrote: Fri Mar 15, 2024 7:06 pm Could it be a bug in Cinnamon's scaling mechanism specifically related to this switchable GPUs scenario?
You are using the same version of Cinnamon in both cases so I'm not sure why you think it is a Cinnamon problem. Cinnamon does not control the graphics drivers.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Vitooo
Level 1
Level 1
Posts: 7
Joined: Mon Jul 17, 2023 7:39 pm

Re: Error setting independent scaling factors for two different monitors

Post by Vitooo »

Hi SMG, thank you for your reply!
SMG wrote: Fri Mar 15, 2024 9:53 pm I suggest you start by upgrading to a supported kernel. The 6.2 kernel went end of life last month and is no longer receiving updates.
Yes, that's another issue that could take an entire separate post. It turns out that kernel version 6.2 is the only one that works well with the recommended proprietary NVIDIA-driver-535 on my laptop. I've tried every kernel version in attempts to get the recommended drivers to work. All 6.5.X kernels result in a black screen, and the 5.15.0-X kernels work with the 525.60.11-0ubuntu0.22.04.1 NVIDIA driver. Do you think I should revert back to kernel version 5.15.0-100 and the 525.60.11-0 NVIDIA driver? Even with that combination, the scaling issue persists.
SMG wrote: Fri Mar 15, 2024 9:53 pm I also suggest you clean this root partition because you are getting close to being not able to log into your system.
Thanks, I will keep that in mind! :)
SMG wrote: Fri Mar 15, 2024 9:53 pm Something appears to be wrong with this because the AMD renderer is not showing as loaded.

OpenGL: renderer: llvmpipe (LLVM 15.0.7 256 bits) v: 4.5 Mesa 23.2.1-1ubuntu3.1~22.04.2
direct render: Yes
My mistake. The system info I provided earlier was obtained while in Software Rendering mode. Let me share it again, this time with a default Cinnamon session (although this would constitute yet another scenario, the issue remains the same):

Code: Select all


System:
  Kernel: 6.2.0-39-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33
    wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 20YM v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required> Chassis: type: 10 v: Lenovo ThinkBook 16p Gen 2
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0T08861 WIN serial: <superuser required> UEFI: LENOVO
    v: GXCN46WW date: 02/14/2023
Battery:
  ID-1: BAT0 charge: 71.5 Wh (100.0%) condition: 71.5/71.0 Wh (100.8%) volts: 15.4 min: N/A
    model: SMP L20M4PD3 type: Li-poly serial: <filter> status: Full cycles: 18
CPU:
  Info: 8-core model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MT MCP smt: enabled
    arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 1309 high: 1966 min/max: 1200/4679 boost: enabled cores: 1: 1966 2: 1197
    3: 1397 4: 1398 5: 1200 6: 1200 7: 1397 8: 1599 9: 1200 10: 1200 11: 1198 12: 1200 13: 1198
    14: 1200 15: 1200 16: 1200 bogomips: 105402
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Lenovo driver: nvidia
    v: 535.161.07 pcie: speed: 2.5 GT/s lanes: 8 ports: active: none off: DP-3 empty: DP-4,eDP-2
    bus-ID: 01:00.0 chip-ID: 10de:2520 class-ID: 0300
  Device-2: AMD Cezanne vendor: Lenovo driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16
    ports: active: eDP-1 empty: DP-1,DP-2 bus-ID: 05:00.0 chip-ID: 1002:1638 class-ID: 0300
  Device-3: Luxvisions Innotech Integrated Camera type: USB driver: uvcvideo bus-ID: 3-3:3
    chip-ID: 30c9:0030 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati,nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1200 s-dpi: 96 s-size: 1016x318mm (40.0x12.5") s-diag: 1065mm (41.9")
  Monitor-1: DP-1-0 pos: right res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7")
    diag: 604mm (23.8")
  Monitor-2: eDP pos: primary,left res: 1920x1200 hz: 60 dpi: 142 size: 344x215mm (13.5x8.5")
    diag: 406mm (16")
  [color=#BF4000]OpenGL: renderer: RENOIR[/color] (renoir LLVM 15.0.7 DRM 3.49 6.2.0-39-generic)
    v: 4.6 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes
Audio:
  Device-1: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel pcie: speed: 2.5 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:228e class-ID: 0403
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo driver: N/A pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k6.2.0-39-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-3:2 chip-ID: 8087:0029
    class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2
    sub-v: 237e hci-v: 5.2 rev: 237e
Drives:
  Local Storage: total: 953.87 GiB used: 335.68 GiB (35.2%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730 SDBPNTY-1T00-1101 size: 953.87 GiB
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 11190001 temp: 32.9 C scheme: GPT
Partition:
  ID-1: / size: 374.42 GiB used: 335.64 GiB (89.6%) fs: ext4 dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 256 MiB used: 43.5 MiB (17.0%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-3:2 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb interfaces: 2
    rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029 class-ID: e001
  Device-2: 1-4:3 info: Elan Micro ELAN:Fingerprint type: <vendor specific> driver: N/A
    interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 04f3:0c4b class-ID: 0000
  Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-2:2 info: Kingston HyperX Pulsefire Core type: Mouse,Keyboard,HID
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0951:16de
    class-ID: 0300
  Device-2: 3-3:3 info: Luxvisions Innotech Integrated Camera type: Video driver: uvcvideo
    interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 30c9:0030 class-ID: 0e02
    serial: <filter>
  Device-3: 3-4:4 info: Integrated Express ITE Device(8296) type: Keyboard
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 048d:c916
    class-ID: 0301
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 57.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2972 apt: 2921 flatpak: 51
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
  Active apt repos in: /etc/apt/sources.list.d/hashicorp.list
    1: deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https: //apt.releases.hashicorp.com jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //mirrors.cicku.me/linuxmint/packages virginia main upstream import backport
    2: deb http: //ubuntu.unc.edu.ar/ubuntu jammy main restricted universe multiverse
    3: deb http: //ubuntu.unc.edu.ar/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //ubuntu.unc.edu.ar/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https: //repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
    1: deb http: //repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https: //linux.teamviewer.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] http: //packages.microsoft.com/repos/code stable main
Info:
  Processes: 487 Uptime: 32m wakeups: 237 Memory: 30.71 GiB used: 7.77 GiB (25.3%) Init: systemd
  v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Cinnamon v: 6.0.4 inxi: 3.3.13
SMG wrote: Fri Mar 15, 2024 9:53 pm If this is the correct link, it appears the latest BIOS/UEFI is version 48.
Machine:
Type: Laptop System: LENOVO product: 20YM v: Lenovo ThinkBook 16p Gen 2
serial: <superuser required> Chassis: type: 10 v: Lenovo ThinkBook 16p Gen 2
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: SDK0T08861 WIN serial: <superuser required> UEFI: LENOVO
v: GXCN46WW date: 02/14/2023
A MAJOR WARNING regarding this advice. I followed it once, as you recommended on Oct 03, 2023. I didn't mention it at the time, but I feel I should now. After updating the BIOS/UEFI, Grub disappeared, rendering it impossible to boot Mint. Only Windows remained. It's not your fault, SMG! Updating the Lenovo UEFI should be a smoother process for us, but unfortunately, it's not. I believe I followed these instructions to recover:
https://www.fosslinux.com/115031/troubl ... -linux.htm
Just in case anyone else encounters the same problem.
SMG wrote: Fri Mar 15, 2024 9:53 pm You can change the font size.
Yes, but images and icons still maintain the same size. If that were a solution, scaling wouldn't exist. :)
SMG wrote: Fri Mar 15, 2024 9:53 pm You are using the same version of Cinnamon in both cases so I'm not sure why you think it is a Cinnamon problem. Cinnamon does not control the graphics drivers.
I think it could be a Cinnamon issue because everything else works fine except for scaling. While it's true that Cinnamon doesn't control graphics drivers directly, it is responsible for rendering the desktop. Perhaps the methods Cinnamon uses to scale the entire desktop are compatible with laptops that have only an NVIDIA card (or discrete mode) or only an AMD card, but not with this specific scenario where there's a "switch" between an AMD Cezanne and an NVIDIA videocard, with the specific way Lenovo has connected them. Let's call it "an unforeseen scenario" rather than a bug. It's possible that a new capability is needed for this particular case.

Thank you SMG! I really appreciate your support.
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Error setting independent scaling factors for two different monitors

Post by SMG »

Vitooo wrote: Sat Mar 16, 2024 11:41 amYes, that's another issue that could take an entire separate post. It turns out that kernel version 6.2 is the only one that works well with the recommended proprietary NVIDIA-driver-535 on my laptop. I've tried every kernel version in attempts to get the recommended drivers to work. All 6.5.X kernels result in a black screen, and the 5.15.0-X kernels work with the 525.60.11-0ubuntu0.22.04.1 NVIDIA driver. Do you think I should revert back to kernel version 5.15.0-100 and the 525.60.11-0 NVIDIA driver? Even with that combination, the scaling issue persists.
I don't know why your computer would be different such that 6.5 kernels would result in black screens. If you have updated to the latest amdgpu firmware and the newest kernel, then I would expect it to work.

Here is the link to the Lenovo Thinkbook Community forum. Because this appears to be an issue related to your laptop model, I suggest searching to see if others are having issues. I do notice quite a lot of questions about usb-c connections.
Vitooo wrote: Sat Mar 16, 2024 11:41 amThe system info I provided earlier was obtained while in Software Rendering mode.
I have no idea why you would run in software rendering mode. :?
Vitooo wrote: Sat Mar 16, 2024 11:41 am I think it could be a Cinnamon issue because everything else works fine except for scaling.
Here is the Cinnamon Issues and you can also access the code there.

Here is a Cinnamon issue that the original poster indicated was resolved fractional scaling not working when setting on individual monitors #11189 .

Here is a muffin issue https://github.com/linuxmint/muffin/issues/639] Triple Monitor setup resumes from turning off displays incorrectly #639 which might give you ideas for workarounds.
Vitooo wrote: Sat Mar 16, 2024 11:41 am Let's call it "an unforeseen scenario" rather than a bug. It's possible that a new capability is needed for this particular case.
Let's call it Lenovo did not design your computer to run Linux-based distros so your expectation that others should make it work anyhow when Lenovo is not making any effort to make it work might not be a realistic expectation.

I do not code Cinnamon and I do not have the laptop you have so I do not have any further suggestions.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Cinnamon”