Nvidia driver screen blinks

Hello. I have recently installed EndeavourOS and have encountered that sometimes there is screen flickering. The defect does not occur often. Just for half a second. I have tried installing other distributions and the problem occurs everywhere with the latest nvidia driver version (535.98). Also, when I installed builds with an earlier driver version, the defect did not occur. I tried installing an earlier version of the driver from the official nvidia website, but during the installation I got an error installing the kernel via DKMS and after rebooting my system did not start again. I had to reinstall it. Is it possible to install an older version of the driver through the repository? Or maybe solve the problem without installing another driver

Do you have the kernel parameter nvidia_drm.modeset=1

Are you using wayland or x11?

To downgrade a package, thereā€™s program downgrade. But downgrading is only a temporary workaround because it can cause compatibility issues later.

Edit: you can use nvidia-inst -n to replace Nvidia driver with nouveau. But I see you donā€™t want to do so, right?

I understand nouveau is an opensource driver? I read that they work worse on nvidia video cards than proprietary ones. Iā€™m using x11

Yes, nouveau is open source. If you are gaming, then nouveau probably is not reasonable, but otherwise it is worth trying anyway. With nvidia-inst it is easy to go back to Nvidia driver:

nvidia-inst

Also, it is a good idea to make sure your system is up to date:

sudo pacman -Syu

Edit: if you havenā€™t seen these, they are worth reading:

I had a flickering issue before I switched to Budgie. I had KDE Plasma then, and sometimes when exiting a game the screen flickered, windows were upside down. Sometimes I could ā€œfixā€ the issue by Alt+Tabbing around, but sometimes only a reboot helped. I have not experienced the same since not using KDE Plasma, maybe this is a mixed issue between the NVidia driver and Plasma?

I play games sometimes, so I donā€™t think itā€™s a good fit. Downgrade fails due to a package problem

I installed Linux Mint Cinnamon and the problem was the same until I switched to an earlier version of the driver, so itā€™s a driver problem.

i use downgrade: failed to resolve ā€œnvidia-utils=530.41.03ā€, ā€œnvidia-dkmsā€ dependency. This package cannot be updated due to unresolved dependencies:
nvidia-dkms

@Authority

Screen flickering bug is fixed in the recent nvidia driver version 535.104.05 released on 2023-08-22 (YYYY-MM-DD).

  • Fixed a bug which prevented DKMS from registering kernel modules.
  • Fixed a bug which could cause the screen to flicker.

It should be in the Arch repos in a few days.

2 Likes

Thanks. Iā€™ll wait a couple days. Maybe the problem will go away after the update.

1 Like

I wish I had a solution, but you may want to look into the open issue at https://github.com/NVIDIA/open-gpu-kernel-modules/issues/511

My personal (though maybe not the best) solution was to downgrade to nvidia-525xx-dkms from the aur. Just make sure you grab the 32-bit utils as well if you go down that road.

Edit. I didnā€™t see the fix from 535.104. Hopefully that works. :+1:

This means you should downgrade nvidia-utils as well if downgrading nvidia-dkms.

But waiting for the new version is probably a better idea. :wink:

thereā€™s some info here

i am still using 530.41.03-1, i tried drivers 535.98-4 a few days ago and still had the flickering

Just updated to 535.104 and still having flickering.

Same thing

ā€œinstalling nvidia-utils (525.89.02-1) breaks dependency ā€˜nvidia-utils=535.104.05ā€™ required by nvidia-dkmsā€

Both nvidia-dkms and nvidia-utils must be of the same version. So if downgrading, downgrade them both in the same command.

I have succeeded, but after rebooting, my system wonā€™t boot. Booting stops after ā€œStardet Hostname Serviceā€ or after ā€œReached target Graphical Interfaceā€

i also could not boot when downgrading nvidia to 525 but 530 works, i set nvidia_drm.modeset=1 to get rid of the flicker
i downgraded the kernel to 6.3.9

1 Like