[Workaround] Screen tearing with latest Nvidia drivers

[Workaround] Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 8th, '26, 15:57

With the latest Nvidia drivers I am getting screen tearing with the tearing test video:
https://www.youtube.com/watch?v=MfL_JkcEFbE
and also with VLC.

Graphics card is: GeForce RTX 3070 TUF Gaming OC 8GB Semi-Fanless

When I tested the Mageia 9 live boot USB I had to use the Nvidia drivers to get it to boot, so I don't think the Nouveau drivers are an option.

I found an Archlinux post from 2025-12-21 about Nvidia drivers causing screen tearing issues (specifically, with version 580.119.02, which is the current Mageia 9 version):
https://bbs.archlinux.org/viewtopic.php?id=311154

Is there is simple way to "downgrade" to the previous Nvidia driver to see if that works any better?

Code: Select all
% rpm -qa | grep nvidia | sort
dkms-nvidia-current-580.119.02-1.mga9.nonfree
lib64nvidia-egl-wayland1-1.1.13.1-2.mga9
nvidia-current-cuda-opencl-580.119.02-1.mga9.nonfree
nvidia-current-devel-580.119.02-1.mga9.nonfree
nvidia-current-doc-html-580.119.02-1.mga9.nonfree
nvidia-current-utils-580.119.02-1.mga9.nonfree
x11-driver-video-nvidia-current-580.119.02-1.mga9.nonfree


[Edit:] On my other machine, which is very similar but has a Palit GeForce RTX2080 SUPER GameRock 8GB Graphics Card, I cannot detect any tearing! The only difference in packages is that this does not have the nvidia-current-devel package installed.

Both machine use the same monitor, an ASUS PB278Q 2560x1440, via a DisplayPort mechanical switch

The working machine has some extra lines in the "Monitor" section of /etc/X11/xorg.conf, including:

Code: Select all
# modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "2560x1440_60"  311.83  2560 2744 3024 3488  1440 1441 1444 1490  -HSync +Vsync


I hope this helps.

Thanks!
Last edited by martin_ward on Jan 24th, '26, 17:23, edited 3 times in total.
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby morgano » Jan 8th, '26, 19:57

When I tested the Mageia 9 live boot USB I had to use the Nvidia drivers to get it to boot, so I don't think the Nouveau drivers are an option.

It is possible it works better on an updated Mageia 9, i.e much newer kernel. Even kernel 6.18 is available as backport (currently in testing)

Anyway, very soon we release Mageia 10 alpha so you can soon test that Live.

Is there is simple way to "downgrade" to the previous Nvidia driver to see if that works any better?


Code: Select all
# urpmi --downgrade package1 package2 etc
(include full version number)

For released versions updates see in a mirror for example http://mirror.accum.se/mirror/mageia/di ... e/updates/
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1574
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 10th, '26, 18:03

Thanks for the help morgano! I really appreciate it.

I first tried copying over /etc/X11/xorg.conf from the working system (which uses the same nvidia drivers), but this made no difference.

So I tried downgrading to 580.105.08-1.mga9 for nvidia-current-utils, dkms-nvidia-current, nvidia-current-cuda-opencl, nvidia-current-devel, x11-driver-video-nvidia-current and nvidia-current-doc-html

After rebooting it compiled the Nvidia drivers and needed rebooting again.

But now it comes up with the Nouveu drivers (as shown by lsmod).
/etc/X11/xorg.conf has one line changed, in section "Device" we have Driver "modesetting" instead of Driver "nvidia"

However: after a few quick tests, everything seems to be working and there is no screen tearing! :D

But it keeps trying (and presumably failing) to build the Nvidia driver on boot.
I assume it is falling back to Nouveau.

I tried setting the driver to Nouveau in mcc -> hardware -> set up the graphical server, but then it failed to boot into the desktop! I could ssh in from another machine and run mcc to set it to Kernel Mode setting to fix this, however.

Update wants to put the later Nvidia rpms back again.


So in conclusion: it seems to try to boot into Nvidia, but falls back to Nouveau which works.
But telling it to use Nouveau in the first place does not work.
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby morgano » Jan 10th, '26, 20:54

After rebooting it compiled the Nvidia drivers and needed rebooting again.
Usually it compile and then continue to desktop.
That it rebooted seem to indicate something went wrong and...
But now it comes up with the Nouveu drivers (as shown by lsmod).
...exactly, it shifted back to nouveay and rebooted elegantly by itself :-)

However: after a few quick tests, everything seems to be working and there is no screen tearing! :D
Great that the free driver works well.

I could ssh in from another machine and run mcc to set it to Kernel Mode setting to fix this, however.
Another way would have been to in grub menu select to boot to terminal and launch mcc or drakx11.

Update wants to put the later Nvidia rpms back again.
Solution: as root, edit /etc/urpmi/skip.list: add the names of packages you do not want updated.

So in conclusion: it seems to try to boot into Nvidia, but falls back to Nouveau which works.
But telling it to use Nouveau in the first place does not work.
I think both those quirks need to be investigated.
Is there anything interesting in the system journal?

For nvidia, one check: do you have the corresponding -devel- package for the kernel you use?

You may also like to see (and we too) if Mageia10 alpha works, as a Live system on USB disk -it got released today, see our blog post.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1574
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 10th, '26, 23:28

Attached is the output of journalctl -b (as root) with a "normal" boot (journal.log)

Also a gzipped output of "journalctl -S 2026-01-01" (which includes previous boots) in journal-all.gz

I don't always get the message about compiling Nvidia drivers.

I hope this helps!
Attachments
journal-all.gz
(1.04 MiB) Downloaded 20 times
journal.log
(257.09 KiB) Downloaded 23 times
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby morgano » Jan 11th, '26, 18:13

From journal.log:
Code: Select all
Jan 10 21:14:01 pingu8 kernel: Linux version 6.6.116-desktop-1.mga9 (iurt@rabbit.mageia.org) (gcc (Mageia 12.3.0-3.mga9) 12.3.0, GNU ld (GNU Binutils) 2.40) #1 SMP PREEMPT_DYNAMIC Mon Nov  3 15:35:03 UTC 2025
Jan 10 21:14:01 pingu8 kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-6.6.116-desktop-1.mga9 root=UUID=e1349659-c521-4c12-8219-0d948db7bb5d ro nokmsboot splash quiet noiswmd resume=UUID=5fd0360f-1796-4991-90fb-a73adc4ce3f9 audit=0 vga=791
...
Jan 10 21:14:11 pingu8 dkms-autorebuild.sh[1779]: nvidia-current (580.105.08-1.mga9.nonfree): Installing module.
Jan 10 21:14:11 pingu8 dkms-autorebuild.sh[1779]: dkms build -m nvidia-current -v 580.105.08-1.mga9.nonfree -k 6.6.116-desktop-1.mga9 -a x86_64 -q --no-clean-kernel
...
Jan 10 21:14:35 pingu8 dkms-autorebuild.sh[1779]: (bad exit status: 10)
Jan 10 21:14:35 pingu8 dkms-autorebuild.sh[1779]:   Build failed.  Installation skipped.
-so it tries but fails.

Apparently it is about the version you want, 580.105.08-1, our next latest, correct so far.

Please post the output of
Code: Select all
dkms status
and
Code: Select all
rpm -qa|grep -e nvidia -e kernel
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1574
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 11th, '26, 19:15

dkms status:
Code: Select all
nvidia-current, 580.105.08-1.mga9.nonfree: added
virtualbox, 7.0.10-1.mga8, 5.15.126-desktop-1.mga8, x86_64: installed-binary from 5.15.126-desktop-1.mga8
virtualbox, 6.1.30-1.mga8, 5.15.4-desktop-1.mga8, x86_64: installed-binary from 5.15.4-desktop-1.mga8
virtualbox, 6.1.30-1.mga8, 5.15.10-desktop-1.mga8, x86_64: installed-binary from 5.15.10-desktop-1.mga8
virtualbox, 7.0.6-1.mga8, 5.15.88-desktop-1.mga8, x86_64: installed-binary from 5.15.88-desktop-1.mga8
virtualbox, 7.0.8-1.mga8, 5.15.110-desktop-2.mga8, x86_64: installed-binary from 5.15.110-desktop-2.mga8
virtualbox, 6.1.30-1.mga8, 5.15.6-desktop-2.mga8, x86_64: installed-binary from 5.15.6-desktop-2.mga8
virtualbox, 6.1.38-1.2.mga8, 5.15.62-desktop-1.mga8, x86_64: installed-binary from 5.15.62-desktop-1.mga8
virtualbox, 6.1.32-1.mga8, 5.15.25-desktop-1.mga8, x86_64: installed-binary from 5.15.25-desktop-1.mga8
virtualbox, 6.1.24-1.mga8, 5.10.52-desktop-1.mga8, x86_64: installed-binary from 5.10.52-desktop-1.mga8
virtualbox, 7.0.10-1.mga8, 5.15.120-desktop-2.mga8, x86_64: installed-binary from 5.15.120-desktop-2.mga8
virtualbox, 6.1.26-1.mga8, 5.10.60-desktop-2.mga8, x86_64: installed-binary from 5.10.60-desktop-2.mga8
virtualbox, 7.0.6-1.mga8, 5.15.98-desktop-1.mga8, x86_64: installed-binary from 5.15.98-desktop-1.mga8
virtualbox, 6.1.28-1.mga8, 5.10.78-desktop-1.mga8, x86_64: installed-binary from 5.10.78-desktop-1.mga8
virtualbox, 6.1.32-1.mga8, 5.15.16-desktop-1.mga8, x86_64: installed-binary from 5.15.16-desktop-1.mga8
virtualbox, 6.1.28-1.mga8, 5.10.75-desktop-1.mga8, x86_64: installed-binary from 5.10.75-desktop-1.mga8
virtualbox, 7.0.8-1.mga8, 5.15.117-desktop-2.mga8, x86_64: installed-binary from 5.15.117-desktop-2.mga8
virtualbox, 6.1.26-1.mga8, 5.10.56-desktop-1.mga8, x86_64: installed-binary from 5.10.56-desktop-1.mga8
virtualbox, 6.1.22-1.mga8, 5.10.46-desktop-1.mga8, x86_64: installed-binary from 5.10.46-desktop-1.mga8
virtualbox, 6.1.22-1.mga8, 5.10.45-desktop-2.mga8, x86_64: installed-binary from 5.10.45-desktop-2.mga8
virtualbox, 7.0.8-1.mga8, 5.15.106-desktop-2.mga8, x86_64: installed-binary from 5.15.106-desktop-2.mga8
virtualbox, 6.1.28-1.mga8, 5.10.70-desktop-1.mga8, x86_64: installed-binary from 5.10.70-desktop-1.mga8
virtualbox, 6.1.32-1.mga8, 5.15.18-desktop-2.mga8, x86_64: installed-binary from 5.15.18-desktop-2.mga8
virtualbox, 6.1.38-1.2.mga8, 5.15.65-desktop-1.mga8, x86_64: installed-binary from 5.15.65-desktop-1.mga8
virtualbox, 7.1.14-2.mga9, 6.6.116-desktop-1.mga9, x86_64: installed-binary from 6.6.116-desktop-1.mga9
virtualbox, 6.1.32-1.mga8, 5.15.28-desktop-1.mga8, x86_64: installed-binary from 5.15.28-desktop-1.mga8
virtualbox, 7.0.10-1.mga8, 5.15.122-desktop-1.mga8, x86_64: installed-binary from 5.15.122-desktop-1.mga8
virtualbox, 7.0.4-1.mga8, 5.15.82-desktop-1.mga8, x86_64: installed-binary from 5.15.82-desktop-1.mga8
virtualbox, 6.1.22-1.mga8, 5.10.48-desktop-1.mga8, x86_64: installed-binary from 5.10.48-desktop-1.mga8
virtualbox, 6.1.32-1.mga8, 5.15.23-desktop-1.mga8, x86_64: installed-binary from 5.15.23-desktop-1.mga8
virtualbox, 6.1.30-1.mga8, 5.15.15-desktop-1.mga8, x86_64: installed-binary from 5.15.15-desktop-1.mga8
virtualbox, 6.1.30-1.mga8, 5.15.11-desktop-3.mga8, x86_64: installed-binary from 5.15.11-desktop-3.mga8
virtualbox, 6.1.26-1.mga8, 5.10.62-desktop-1.mga8, x86_64: installed-binary from 5.10.62-desktop-1.mga8
virtualbox, 6.1.34-1.2.mga8, 5.15.32-desktop-1.mga8, x86_64: installed-binary from 5.15.32-desktop-1.mga8
virtualbox, 7.0.4-1.mga8, 5.15.79-desktop-1.mga8, x86_64: installed-binary from 5.15.79-desktop-1.mga8


rpm -qa | grep -e nvidia -e kernel| sort
Code: Select all
dkms-nvidia-current-580.105.08-1.mga9.nonfree
kernel-desktop-5.10.30-1.mga8-1-1.mga8
kernel-desktop-5.10.41-1.mga8-1-1.mga8
kernel-desktop-5.10.43-1.mga8-1-1.mga8
kernel-desktop-5.10.45-2.mga8-1-1.mga8
kernel-desktop-5.10.46-1.mga8-1-1.mga8
kernel-desktop-5.10.48-1.mga8-1-1.mga8
kernel-desktop-5.10.52-1.mga8-1-1.mga8
kernel-desktop-5.10.56-1.mga8-1-1.mga8
kernel-desktop-5.10.60-2.mga8-1-1.mga8
kernel-desktop-5.10.62-1.mga8-1-1.mga8
kernel-desktop-5.10.70-1.mga8-1-1.mga8
kernel-desktop-5.10.75-1.mga8-1-1.mga8
kernel-desktop-5.10.78-1.mga8-1-1.mga8
kernel-desktop-5.15.10-1.mga8-1-1.mga8
kernel-desktop-5.15.106-2.mga8-1-1.mga8
kernel-desktop-5.15.11-3.mga8-1-1.mga8
kernel-desktop-5.15.110-2.mga8-1-1.mga8
kernel-desktop-5.15.117-2.mga8-1-1.mga8
kernel-desktop-5.15.120-2.mga8-1-1.mga8
kernel-desktop-5.15.122-1.mga8-1-1.mga8
kernel-desktop-5.15.126-1.mga8-1-1.mga8
kernel-desktop-5.15.15-1.mga8-1-1.mga8
kernel-desktop-5.15.16-1.mga8-1-1.mga8
kernel-desktop-5.15.18-2.mga8-1-1.mga8
kernel-desktop-5.15.23-1.mga8-1-1.mga8
kernel-desktop-5.15.25-1.mga8-1-1.mga8
kernel-desktop-5.15.28-1.mga8-1-1.mga8
kernel-desktop-5.15.32-1.mga8-1-1.mga8
kernel-desktop-5.15.4-1.mga8-1-1.mga8
kernel-desktop-5.15.6-2.mga8-1-1.mga8
kernel-desktop-5.15.62-1.mga8-1-1.mga8
kernel-desktop-5.15.65-1.mga8-1-1.mga8
kernel-desktop-5.15.79-1.mga8-1-1.mga8
kernel-desktop-5.15.82-1.mga8-1-1.mga8
kernel-desktop-5.15.88-1.mga8-1-1.mga8
kernel-desktop-5.15.98-1.mga8-1-1.mga8
kernel-desktop-6.6.116-1.mga9
kernel-desktop-devel-5.10.30-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.41-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.43-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.45-2.mga8-1-1.mga8
kernel-desktop-devel-5.10.46-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.48-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.52-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.56-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.60-2.mga8-1-1.mga8
kernel-desktop-devel-5.10.62-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.70-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.75-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.78-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.10-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.106-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.11-3.mga8-1-1.mga8
kernel-desktop-devel-5.15.110-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.117-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.120-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.122-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.126-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.15-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.16-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.18-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.23-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.25-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.28-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.32-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.4-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.6-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.62-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.65-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.79-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.82-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.88-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.98-1.mga8-1-1.mga8
kernel-desktop-devel-6.6.116-1.mga9
kernel-desktop-devel-latest-6.6.116-1.mga9
kernel-desktop-latest-6.6.116-1.mga9
kernel-firmware-20250509-1.mga9
kernel-firmware-nonfree-20250509-1.mga9.nonfree
kernel-userspace-headers-6.6.116-1.mga9
lib64nvidia-egl-wayland1-1.1.13.1-2.mga9
nvidia-current-cuda-opencl-580.105.08-1.mga9.nonfree
nvidia-current-devel-580.105.08-1.mga9.nonfree
nvidia-current-doc-html-580.105.08-1.mga9.nonfree
nvidia-current-utils-580.105.08-1.mga9.nonfree
virtualbox-kernel-5.10.45-desktop-2.mga8-6.1.22-1.8.mga8
virtualbox-kernel-5.10.46-desktop-1.mga8-6.1.22-1.9.mga8
virtualbox-kernel-5.10.48-desktop-1.mga8-6.1.22-1.10.mga8
virtualbox-kernel-5.10.52-desktop-1.mga8-6.1.24-1.1.mga8
virtualbox-kernel-5.10.56-desktop-1.mga8-6.1.26-1.mga8
virtualbox-kernel-5.10.60-desktop-2.mga8-6.1.26-1.2.mga8
virtualbox-kernel-5.10.62-desktop-1.mga8-6.1.26-1.4.mga8
virtualbox-kernel-5.10.70-desktop-1.mga8-6.1.28-1.mga8
virtualbox-kernel-5.10.75-desktop-1.mga8-6.1.28-1.2.mga8
virtualbox-kernel-5.10.78-desktop-1.mga8-6.1.28-1.4.mga8
virtualbox-kernel-5.15.10-desktop-1.mga8-6.1.30-1.5.mga8
virtualbox-kernel-5.15.106-desktop-2.mga8-7.0.8-1.mga8
virtualbox-kernel-5.15.11-desktop-3.mga8-6.1.30-1.7.mga8
virtualbox-kernel-5.15.110-desktop-2.mga8-7.0.8-1.2.mga8
virtualbox-kernel-5.15.117-desktop-2.mga8-7.0.8-1.8.mga8
virtualbox-kernel-5.15.120-desktop-2.mga8-7.0.10-1.mga8
virtualbox-kernel-5.15.122-desktop-1.mga8-7.0.10-1.1.mga8
virtualbox-kernel-5.15.126-desktop-1.mga8-7.0.10-1.4.mga8
virtualbox-kernel-5.15.15-desktop-1.mga8-6.1.30-1.12.mga8
virtualbox-kernel-5.15.16-desktop-1.mga8-6.1.32-1.mga8
virtualbox-kernel-5.15.18-desktop-2.mga8-6.1.32-1.4.mga8
virtualbox-kernel-5.15.23-desktop-1.mga8-6.1.32-1.6.mga8
virtualbox-kernel-5.15.25-desktop-1.mga8-6.1.32-1.7.mga8
virtualbox-kernel-5.15.28-desktop-1.mga8-6.1.32-1.8.mga8
virtualbox-kernel-5.15.32-desktop-1.mga8-6.1.34-1.2.mga8
virtualbox-kernel-5.15.4-desktop-1.mga8-6.1.30-1.mga8
virtualbox-kernel-5.15.6-desktop-2.mga8-6.1.30-1.2.mga8
virtualbox-kernel-5.15.62-desktop-1.mga8-6.1.38-1.2.mga8
virtualbox-kernel-5.15.65-desktop-1.mga8-6.1.38-1.5.mga8
virtualbox-kernel-5.15.79-desktop-1.mga8-7.0.4-1.mga8
virtualbox-kernel-5.15.82-desktop-1.mga8-7.0.4-1.2.mga8
virtualbox-kernel-5.15.88-desktop-1.mga8-7.0.6-1.mga8
virtualbox-kernel-5.15.98-desktop-1.mga8-7.0.6-1.6.mga8
virtualbox-kernel-6.6.116-desktop-1.mga9-7.1.14-13.mga9
virtualbox-kernel-desktop-latest-7.1.14-13.mga9
x11-driver-video-nvidia-current-580.105.08-1.mga9.nonfree


I seem to have a lot of old kernels lying around!
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 11th, '26, 20:31

I have downloaded and tested the Mageia 10 iso, booting from a USB drive.

Booted with Nouveau drivers: desktop came up and I tested the YouTube tearing test and also downloaded it to test with vlc. All seems to be OK. Good job!

Rebooted to use Nvidia drivers: I left it for a few minutes and when I came back it was on the initial menu but with the desktop already up. Programs would only run full screen with no top bar: as if there was no window manager running? The taskbar looked OK.
I tried to shutdown, but it hung, so I had to hold the power button to get it to shut down.

Booted up again and used Nvidia drivers: I pressed ESC while the drivers were compiling and the screen started flikering rapidly between the boot up image and the console. A photo is attached.

Eventually the console came up, then the desktop came up and seemed to be OK. The YouTube tearing test was OK and the downloaded copy also OK with vlc.
Attachments
IMG_2719.jpg
IMG_2719.jpg (887.26 KiB) Viewed 1324 times
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby morgano » Jan 11th, '26, 22:46

martin_ward wrote:I have downloaded and tested the Mageia 10 iso, booting from a USB drive.

Booted with Nouveau drivers: desktop came up and I tested the YouTube tearing test and also downloaded it to test with vlc. All seems to be OK. Good job!
:D 8-)

I seem to have a lot of old kernels lying around!
Oh my! :shock: :lol:
Please install remove-old-kernels, and use it, see https://wiki.mageia.org/en/Mageia_9_Rel ... ld-kernels
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1574
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 12th, '26, 19:00

morgano wrote:Please install remove-old-kernels, and use it,


Will do, once my system is sorted out.

What tells the system, when it boots, which video drivers to use? Is it /etc/X11/xorg.conf?
Currently I have:
Code: Select all
Section "Device"
    Identifier "device1"
    BoardName "NVIDIA Kernel Mode setting (Xorg modesetting)"
    Driver "modesetting"
    Option "DPMS"
EndSection


Each boot is getting these messages:
Code: Select all
Jan 12 15:59:12 pingu8 dkms-autorebuild.sh[1798]: nvidia-current (580.105.08-1.mga9.nonfree): Installing module.
Jan 12 15:59:12 pingu8 dkms-autorebuild.sh[1798]: dkms build -m nvidia-current -v 580.105.08-1.mga9.nonfree -k 6.6.116-desktop-1.mga9 -a x86_64 -q --no-clean-kernel
Jan 12 15:59:36 pingu8 dkms-autorebuild.sh[1798]: (bad exit status: 10)
Jan 12 15:59:36 pingu8 dkms-autorebuild.sh[1798]:   Build failed.  Installation skipped.
Jan 12 15:59:36 pingu8 systemd[1]: Finished dkms-autorebuild.service.
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby morgano » Jan 12th, '26, 20:46

martin_ward wrote:
morgano wrote:Please install remove-old-kernels, and use it,
Will do, once my system is sorted out.
There is absolutely no harm doing it now.
Actually have you checked you have disk space, what do command "df" say?

What tells the system, when it boots, which video drivers to use?
I believe it is autodetected, but do not know details.
If you delete (or better move or rename it) it will be created again. I read there is a way to place an empty file in its place and lock it but forgot how.

Is it /etc/X11/xorg.conf?
Actually, it should work without xorg.conf - and in some cases actually better on our modern desktop systems.

Code: Select all
Jan 12 15:59:12 pingu8 dkms-autorebuild.sh[1798]: nvidia-current (580.105.08-1.mga9.nonfree): Installing module.
Jan 12 15:59:12 pingu8 dkms-autorebuild.sh[1798]: dkms build -m nvidia-current -v 580.105.08-1.mga9.nonfree -k 6.6.116-desktop-1.mga9 -a x86_64 -q --no-clean-kernel

It say it start to build kernel module of nvidia-current for kernel desktop 6.6.116, and next lines says it failed - unfortunately not why.

You could see if it works better with backport kernel, but you should really first clean away all those old kernels.
Then follow: https://wiki.mageia.org/en/Kernel_flavo ... rt_kernels
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1574
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Screen tearing with latest Nvidia drivers

Postby doktor5000 » Jan 12th, '26, 21:23

morgano wrote:It say it start to build kernel module of nvidia-current for kernel desktop 6.6.116, and next lines says it failed - unfortunately not why.

That information is contained in the build log /var/lib/dkms/nvidia-current/580.105.08-1.mga9.nonfree/build/make.log
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18182
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 12th, '26, 21:33

morgano wrote:Actually have you checked you have disk space, what do command "df" say?

On this root partition I still have 18GB free (out of 64GB total).

Do you have any suggestions as to how to get it to start with Nouveau? Nouveau is working, but only after attempting to compile Nvidia. Switching to "Nouveau (alias of Xorg free nouveau driver)" in mcc fails.

In the past, when I have deleted old kernels it has modified /boot/grub2/grub.cfg such that my other root partitions fail to boot. :(
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 12th, '26, 23:17

doktor5000 wrote:That information is contained in the build log /var/lib/dkms/nvidia-current/580.105.08-1.mga9.nonfree/build/make.log

Thanks doktor5000! The log file is attached. As you can see the problem is that ./include/linux/compat.h is trying to load "config-mycompat.h" and not finding it.

The cause is that /usr/src/kernel-6.6.116-desktop-1.mga9/include/linux/compat.h is now a link to /root/media_build/linux/../v4l/compat.h

This in turn was because I was trying to build the drivers for my TBS 6205 DVB-T PCIe tuner card, which is currently not working in Mageia 9 (it was working in Mageia 8, but that's another issue).

I am guessing that the fix is to re-install kernel-desktop-devel-6.6.116-1.mga9 to get a fresh copy of the kernel source code. Do I just do urpme and urpmi for this package?

This would allow the Nvidia driver to build: but at the moment, I would prefer to use the Nouveau driver sinceI know it works! I would rather do this first.
Attachments
make.log
(68.52 KiB) Downloaded 22 times
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby morgano » Jan 13th, '26, 00:28

Do I just do urpme and urpmi for this package?

Probably. but another way is to forget about it and install backport kernel 6.18 as a fresh upgrade :-)
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1574
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Screen tearing with latest Nvidia drivers

Postby doktor5000 » Jan 13th, '26, 18:23

martin_ward wrote:Do I just do urpme and urpmi for this package?

A reinstall should be sufficient
Code: Select all
urpmi --replace-pkgs --replacefiles packagename
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18182
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 13th, '26, 18:39

Some more tests with some sucess (I want to change one thing at a time, for clarity):

I ran mcc and switched to "Nouveau (alias of Xorg free nouveau driver)"
Got the message "you need to reboot"
Rebooted
Still get the message about Nvidia drivers
Desktop does not come up.

See attached file for the journal log of this boot.

The Nouveau kernel modules are loaded:
Code: Select all
nouveau              2904064  0
drm_exec               12288  1 nouveau
gpu_sched              57344  1 nouveau
drm_ttm_helper         12288  1 nouveau
ttm                    94208  2 drm_ttm_helper,nouveau
drm_display_helper    208896  1 nouveau
drm_kms_helper        233472  4 drm_display_helper,nouveau
i2c_algo_bit           12288  2 igb,nouveau
video                  73728  2 asus_wmi,nouveau
mxm_wmi                12288  1 nouveau
drm                   794624  8 gpu_sched,drm_kms_helper,drm_exec,drm_display_helper,drm_ttm_helper,ttm,nouveau
wmi                    36864  5 video,asus_wmi,wmi_bmof,mxm_wmi,nouveau

I logged in remotely, switched back to "Kernel Mode setting (Xorg modesetting)" and rebooted.

Removed and re-installed the kernel source packages:
kernel-desktop-devel-6.6.116-1.mga9
kernel-desktop-devel-latest-6.6.116-1.mga9
(I did this just before your post arrived, doktor5000, but thanks anyway!)

On reboot, it still builds the Nvidia driver (I assume therefore that it does this regardless), but the desktop comes up using Nouveau.

A second reboot is quicker (since the driver build succeeded) and is still using Nouveau.

So the Kernel Mode setting (Xorg modesetting) driver works, and runs Nouveau modules, but the Nouveau (alias of Xorg free nouveau driver) entry fails.

So, I have a working system with no screen tearing.
I am happy to run more tests, if needed.

What is the difference between "Kernel Mode setting (Xorg modesetting)" and "Nouveau (alias of Xorg
free nouveau driver)"? Which is best? (apart from the obvious: whichever works for you! :) )

Thanks again everyone!
Attachments
journal.txt
(221.66 KiB) Downloaded 15 times
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby morgano » Jan 13th, '26, 19:05

As for which driver it use, try selecting nvidia using drakx11
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1574
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 13th, '26, 19:49

morgano wrote:As for which driver it use, try selecting nvidia using drakx11
mcc runs drakx11 when you select "Hardware -> Set up the graphical server"

So there would be difference if I ran it directly.
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby morgano » Jan 14th, '26, 19:22

It works the same, I was just too lazy to look for that English menu names "Hardware -> Set up the graphical server"...
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1574
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 17th, '26, 17:36

I switched to the Nvidia drivers and the drakx11 process seemed to hang with "modprobe nvidia-..." running continually. After a few minutes I rebooted and the desktop came up OK and the nvidia modules were loaded.

But the screen tearing was back again!

This is with these rpms installed:

dkms-nvidia-current-580.105.08-1.mga9.nonfree
lib64nvidia-egl-wayland1-1.1.13.1-2.mga9
nvidia-current-cuda-opencl-580.105.08-1.mga9.nonfree
nvidia-current-devel-580.105.08-1.mga9.nonfree
nvidia-current-doc-html-580.105.08-1.mga9.nonfree
nvidia-current-utils-580.105.08-1.mga9.nonfree
x11-driver-video-nvidia-current-580.105.08-1.mga9.nonfree

I switched back to the "modesetting" driver which uses nouveau, and it is OK again.
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: Screen tearing with latest Nvidia drivers

Postby morgano » Jan 17th, '26, 17:43

By chance, does it work better if you run Plasma on Wayland?
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T43, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox
morgano
 
Posts: 1574
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: [Workaround] Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 24th, '26, 17:25

I have marked this as [Workaround] since the Nouveau drivers seem to be working fine for me.

I "updated" back to the latest Nvidia drivers (although I am not using them), so that I will notice if a newer driver appears and I can test it.

I still don't know why "modesetting" works (and uses Nouveau) but "Nouveau" doesn't.
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Re: [Workaround] Screen tearing with latest Nvidia drivers

Postby AstorBG » Jan 25th, '26, 11:18

Did you try to in nvidia GUI settings (X Server Display Config, Advanced) the option: ForceFullCompositionPipeline=On? Some times it helps with tearing.
Mandrake -> Mandriva -> Mageia
AstorBG
 
Posts: 63
Joined: Jan 29th, '13, 21:31

Re: [Workaround] Screen tearing with latest Nvidia drivers

Postby martin_ward » Jan 26th, '26, 16:44

AstorBG wrote:Did you try to in nvidia GUI settings (X Server Display Config, Advanced) the option: ForceFullCompositionPipeline=On? Some times it helps with tearing.
Sorry, where is this setting?
martin_ward
 
Posts: 36
Joined: Jun 16th, '11, 11:52

Next

Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest