Kubuntu 25.04 - dual monitor not working

Operating System: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 6.14.0-22-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-7300U CPU @ 2.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Intel® HD Graphics 620
Manufacturer: LENOVO
System Version: ThinkPad T470s

Have setup the dual monitors in System Settings/Display config. The second monitor is a replica of the built-in screen. When I reboot, the secondary monitor seems to work okay. However, when I login it fails to display.

$ xrandr --listmonitors
Monitors: 2
 0: +*eDP-1 1920/309x1080/174+0+0  eDP-1
 1: +HDMI-2 1920/376x1080/301+0+0  HDMI-2

The secondary monitor is connected via HDMI port. Here is some more info

xrandr --query
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   1920x1080     60.02*+  48.00  
   1680x1050     60.02  
   1400x1050     60.02  
   1600x900      60.02  
   1280x1024     60.02  
   1400x900      60.02  
   1280x960      60.02  
   1440x810      60.02  
   1368x768      60.02  
   1280x800      60.02  
   1280x720      60.02  
   1024x768      60.02  
   960x720       60.02  
   928x696       60.02  
   896x672       60.02  
   1024x576      60.02  
   960x600       60.02  
   960x540       60.02  
   800x600       60.02  
   840x525       60.02  
   864x486       60.02  
   700x525       60.02  
   800x450       60.02  
   640x512       60.02  
   700x450       60.02  
   640x480       60.02  
   720x405       60.02  
   684x384       60.02  
   640x360       60.02  
   512x384       60.02  
   512x288       60.02  
   480x270       60.02  
   400x300       60.02  
   432x243       60.02  
   320x240       60.02  
   360x202       60.02  
   320x180       60.02  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024     60.02 +  75.02  
   1920x1080     60.00*   59.94  
   1280x960      60.00  
   1152x864      75.00  
   1280x720      60.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  

When I boot or reboot, the secondary monitor works okay. Can see everything very clearly, entering the password, etc. However, when it completes the login it fails to display. Just an “Out of Range” message.

Where do I look in the system logs to see what is happening. I’m running Xorg, not Wayland, as I found Wayland too unstable.

Have been doing more searching, and it seems where this problem has been solved, it is usually NVIDIA driver issues. As I don’t have them installed, and after reading the post at Kde neon 6.3 nvidia driver - #2 by BulletDust , have now installed the nvidia drivers from the PPA.

Now by default, I can at least see the secondary monitor. It’s NQR, and when ever I change the settings, it is lost, no display on the secondary monitor. A reboot fixes that. I have tried to change resolution and refresh rate. This is what it looks like now ..

There is only 1 more setting to tweak and that is “Global Scale”, so will try that. These are the current settings:

Your screen is 16:9 1920x1080, but you have your resolution set to 5:4 1280x1024? Is this the problem, or is this for some reason intentional?

1 Like

I tried changing the secondary display to the same resolution as the primary and it causes a loss of the secondary screen.

There will no doubt be a log file somewhere, like an nvidia one I assume.

What happens if you change resolution under nvidia-settings, paying attention to ensure your refresh rate is set to the correct refresh rate as opposed to ‘Auto’?

1 Like

I must have a cutdown version of the nvidia-settings ? No where to change resolution.

I read a post where people used “Xrandr” and so tried this, it zooms out:

xrandr --output HDMI-2 --scale 2x2

no change, so tried different scaling values. Unfotunately what I did resulted in loosing the primary display and as the secondary one is truncated here and there, couldn’t view tasks, etc. Rebooted and all back again. However, that 'scaling’has changed the position of the secondary screen. beforehand, apart from being too large, it was centred. Now it is aligned left.

Will do some more reading up tomorrow on “xrandr”. Here are the current values:

xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 309mm x 174mm
   1920x1080     60.02*+  48.00  
   1680x1050     60.02  
   1400x1050     60.02  
   1600x900      60.02  
   1280x1024     60.02  
   1400x900      60.02  
   1280x960      60.02  
   1440x810      60.02  
   1368x768      60.02  
   1280x800      60.02  
   1280x720      60.02  
   1024x768      60.02  
   960x720       60.02  
   928x696       60.02  
   896x672       60.02  
   1024x576      60.02  
   960x600       60.02  
   960x540       60.02  
   800x600       60.02  
   840x525       60.02  
   864x486       60.02  
   700x525       60.02  
   800x450       60.02  
   640x512       60.02  
   700x450       60.02  
   640x480       60.02  
   720x405       60.02  
   684x384       60.02  
   640x360       60.02  
   512x384       60.02  
   512x288       60.02  
   480x270       60.02  
   400x300       60.02  
   432x243       60.02  
   320x240       60.02  
   360x202       60.02  
   320x180       60.02  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024     60.02*+  75.02  
   1920x1080     60.00    59.94  
   1280x960      60.00  
   1152x864      75.00  
   1280x720      60.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  

Hold up, that’s not right. Is this a desktop or a laptop?

More importantly, you state you used my guide to install the drivers in their current state - I assume via the Launchpad PPA? What method were you using to install drivers prior to using the Launchpad PPA?

If you were downloading binaries direct from Nvidia and installing using the supplied .run script, that’s most likely the cause of your problem - As there’s every chance you’ve overwritten important packages by installing the driver outside of your distro’s package manager.

1 Like

A Lenovo laptop T470S.

Yes, Via the PPA. Followed your instructions, however, despite the fact this has been done:

sudo apt install nvidia-driver-570

When I tried to view the info from the graphics card

nvidia-settings --glxinfo

ERROR: NVIDIA driver is not loaded

?? So, not sure why that is the case. The graphics card is about 6 years old I think

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
sudo lshw -C video
  *-display                 
       description: VGA compatible controller
       product: HD Graphics 620
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 02
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
       resources: irq:133 memory:eb000000-ebffffff memory:a0000000-afffffff ioport:e000(size=64) memory:c0000-dffff

None, as it is a fresh install of Kubuntu 25.04 on the 12th May, so in terms of attempting to get the dual monitor going, have only been using “System settings | Display”.

Definitely not. This morning , as xrandr appears to be able to adjust settings more comprehensively than system settings, I have installed

 arandr

it’s just a gui for xrandr. The first thing I noticed it it recognised the two monitors and I was able to move each one seperately, whilst in system settings/display there was only one (primary) monitor being displayed.

Are you certain that the external monitor connection uses the same GPU? It’s not uncommon for laptops to run the external monitor hardwired off the iGPU, with the internal screen able to switch between the iGPU and the dGPU - Which results in problems similar to the ones you’re experiencing. Can you disable the iGPU in UEFI/BIOS?

nvidia-settings should still be able to see both monitors. I have a feeling your external monitor connection isn’t connected to the dGPU.

1 Like

How would I tell if the external monitor uses the same GPU ? Certainly at boot time, the external monitor initially is blank but then before the login stage it starts to display. Displays a mirror of the internal display. In regards to disabling the iGPU in UEFI/BIOs, I had a good look in the BIOS, no option there.

This is what happens when I try to run nvidia-settings from the terminal

which are the same messages as https://askubuntu.com/questions/602688/nvidia-settings-not-showing-all-options

Not sure if this is relevant or not, however, in terms of installation of nvidia, from the terminal history it appears that I previously did this:

 sudo ubuntu-drivers install nvidia:535
 

and that was prior to the PPA installation. That said, the following commands displayed no output:

sudo ubuntu-drivers list
sudo ubuntu-drivers list-oem
sudo ubuntu-drivers devices

Some other info:

$ glxinfo | grep OpenGL
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 620 (KBL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 25.0.3-1ubuntu2
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 25.0.3-1ubuntu2
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 25.0.3-1ubuntu2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)

I have seen a few posts where the latest nvidia driver was not suitable for older computers, therefore all that was required was to install an earlier release.

Can you disable the iGPU in BIOS/UEFI and see if the problem persists? In the screenshots above Prime offloading is disabled, meaning your rendering on the iGPU - It appears your external display is hardwired to the dGPU, so when Prime is disabled your second monitor doesn’t work.

If the problem persists, you really need to post your problem on the official Kubuntu support forums.

1 Like

In a previous posts I stated:

The connection to the external display is via a HDMI port, so I would assume if there is any hardwiring, it is via that connection. That said, the secondary monitor works fine at present, apart from the screen display is too large, see below:

Kubuntu == KDE based, so I would assume this forum should be adequate. What forums are you referring to ?

The nvidia drivers are installed, however are they active ??

nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

dpkg -l | grep nvidia- | grep ii
ii  libnvidia-cfg1-570:amd64                                 570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-570                                     570.169-0ubuntu0~gpu25.04.1                all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-570:amd64                              570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA libcompute package
ii  libnvidia-compute-570:i386                               570.169-0ubuntu0~gpu25.04.1                i386         NVIDIA libcompute package
ii  libnvidia-decode-570:amd64                               570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-decode-570:i386                                570.169-0ubuntu0~gpu25.04.1                i386         NVIDIA Video Decoding runtime libraries
ii  libnvidia-egl-wayland1:amd64                             1:1.1.17-1                                 amd64        Wayland EGL External Platform library -- shared library
ii  libnvidia-egl-wayland1:i386                              1:1.1.17-1                                 i386         Wayland EGL External Platform library -- shared library
ii  libnvidia-encode-570:amd64                               570.169-0ubuntu0~gpu25.04.1                amd64        NVENC Video Encoding runtime library
ii  libnvidia-encode-570:i386                                570.169-0ubuntu0~gpu25.04.1                i386         NVENC Video Encoding runtime library
ii  libnvidia-extra-570:amd64                                570.169-0ubuntu0~gpu25.04.1                amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-570:amd64                                 570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-fbc1-570:i386                                  570.169-0ubuntu0~gpu25.04.1                i386         NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-570:amd64                                   570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-gl-570:i386                                    570.169-0ubuntu0~gpu25.04.1                i386         NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  nvidia-compute-utils-570                                 570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA compute utilities
ii  nvidia-dkms-570                                          570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA DKMS package
ii  nvidia-driver-570                                        570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA driver metapackage
ii  nvidia-firmware-570-570.153.02                           570.153.02-0ubuntu0~gpu25.04.1             amd64        Firmware files used by the kernel module
ii  nvidia-firmware-570-570.169                              570.169-0ubuntu0~gpu25.04.1                amd64        Firmware files used by the kernel module
ii  nvidia-kernel-common-570                                 570.169-0ubuntu0~gpu25.04.1                amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-570                                 570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA kernel source package
ii  nvidia-prime                                             0.8.17.2                                   all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                                          510.47.03-0ubuntu4                         amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-570                                         570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA driver support binaries
ii  screen-resolution-extra                                  0.18.3build1                               all          Extension for the nvidia-settings control panel
ii  xserver-xorg-video-nvidia-570                            570.169-0ubuntu0~gpu25.04.1                amd64        NVIDIA binary Xorg driver

The ubuntu drivers is quenstionable also:

ubuntu-drivers devices

results in no output.

ubuntu-drivers debug
=== log messages from detection ===
DEBUG:root:Skipping check for rtl8812au-dkms since it does not depend on video abi
DEBUG:root:Skipping check for open-vm-tools-desktop since it does not depend on video abi
DEBUG:root:Cannot find xserver-xorg-video-nvidia-570-server-open package in the cache. Cannot check ABI
DEBUG:root:Cannot find xserver-xorg-video-nvidia-570-open package in the cache. Cannot check ABI
DEBUG:root:Cannot find xserver-xorg-video-nvidia-550-server-open package in the cache. Cannot check ABI
DEBUG:root:Skipping check for intel-usbio-dkms since it does not depend on video abi
DEBUG:root:Cannot find xserver-xorg-video-nvidia-575-open package in the cache. Cannot check ABI
DEBUG:root:Skipping check for lenovo-cfgservice since it does not depend on video abi
DEBUG:root:Skipping check for oem-qemu-meta since it does not depend on video abi
DEBUG:root:Skipping check for lenovo-fccunlock since it does not depend on video abi
DEBUG:root:Cannot find xserver-xorg-video-nvidia-535-server-open package in the cache. Cannot check ABI
DEBUG:root:Cannot find xserver-xorg-video-nvidia-550-open package in the cache. Cannot check ABI
DEBUG:root:Cannot find xserver-xorg-video-nvidia-565-open package in the cache. Cannot check ABI
DEBUG:root:Skipping check for intel-ipu6-dkms since it does not depend on video abi
DEBUG:root:Skipping check for intel-ipu7-dkms since it does not depend on video abi
DEBUG:root:Skipping check for intel-vision-dkms since it does not depend on video abi
DEBUG:root:Loading custom detection plugin /usr/share/ubuntu-drivers-common/detect/sl-modem.py
DEBUG:root:plugin /usr/share/ubuntu-drivers-common/detect/sl-modem.py return value: None
DEBUG:root:Loading custom detection plugin /usr/share/ubuntu-drivers-common/detect/arm-gles.py
DEBUG:root:plugin /usr/share/ubuntu-drivers-common/detect/arm-gles.py return value: None

Should I uninstall nvidia completely and re-install ? Is the latest/570 not suitable for this GPU , and I need an earlier version ? How does one match the nvidia driver version to the GPU type/version ?

I found this post on the Lenovo forums - English Community-Lenovo Community

It details how to disable the iGPU. Now if I can get the “nvidia-settings” working fully, it may give me the required option.

nvidia-settings

ERROR: NVIDIA driver is not loaded


(nvidia-settings:22236): GLib-GObject-CRITICAL **: 18:18:51.124: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

** (nvidia-settings:22236): CRITICAL **: 18:18:51.126: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed

ERROR: nvidia-settings could not find the registry key file or the X server is not accessible. This file should have been installed along with this driver at
       /usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will continue to work, but values cannot be prepopulated or validated, and will not be listed in the help text. Please see
       the README for possible values and descriptions.

** Message: 18:18:51.177: PRIME: No offloading required. Abort
** Message: 18:18:51.177: PRIME: is it supported? no

@BulletDust ?? Are there two nvidia drivers installed ? See below …

uname -r
6.14.0-23-generic
dkms status
nvidia/570.169, 6.14.0-22-generic, x86_64: installed
nvidia/570.169, 6.14.0-23-generic, x86_64: installed
apt-cache policy nvidia-driver-570
nvidia-driver-570:
  Installed: 570.169-0ubuntu0~gpu25.04.1
  Candidate: 570.169-0ubuntu0~gpu25.04.1
  Version table:
 *** 570.169-0ubuntu0~gpu25.04.1 500
        500 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu plucky/main amd64 Packages
        100 /var/lib/dpkg/status
     570.133.07-0ubuntu2 500
        500 http://au.archive.ubuntu.com/ubuntu plucky/restricted amd64 Packages

Source: https://askubuntu.com/questions/1153023/error-nvidia-driver-is-not-loaded

EDIT: Running dkms status on my own system shows the following result:

dkms status
nvidia/570.169, 6.11.0-28-generic, x86_64: installed
nvidia/570.169, 6.11.0-29-generic, x86_64: installed
1 Like

Oh, so you have similar. Doesn’t that imply what is installed is for two different kernels ?

Yes, but you’re only running one kernel. Ubuntu keeps older kernels in the instance you have to rollback via grub. If I was to do a sudo apt autoremove the second instance would likely be removed.

1 Like

Looking through the nvidia commands via terminal/history, and I THINK this one was done before I read your “how to” on the drivers…

sudo ubuntu-drivers install nvidia:535

Yet “ubuntu-drivers” does nothing at presetn. it won’t list,etc ?? I’ll try this

sudo ubuntu-drivers autoinstall

Software sources states “no proprietary drivers are in use”