I know there are a lot of questions about this -- I've read at least 100 questions about it but still can't find a solution to the Nvidia screen flicker issue. I've had this issue since 11.10. The screen jitters and flickers about every 3-5 seconds. I'm running Ubuntu 12.04 LTS on a Gateway GT5028 with the Nvidia 6100. Any solution would be appreciated. I'd like to see this issue resolved for me.
This worked for me:
Install Compiz Config, from a terminal, type:
sudo apt-get install compizconfig-settings-manager
From the launcher, execute CompizConfig Settings Manager
- Check the checkbox in "Utility -> Workarounds -> Force full screen redraws (buffer swap) on repaint"
I have a Dell XPS laptop with a Nvidia GT 525m, using Ubuntu 14.04.
I base this solution on the answers on this thread: Weird partial screen flickering after upgrade to 14.04
Flickering windows under Ubuntu 14.04 fixed - NVIDIA graphic card
I have resolved the problem of flickering windows under Ubuntu 14.04 on my laptop and it is basically a problem related to the Nvidia graphic card setting, start by typing:
If the file
/etc/X11/xorg.conf does not exist, this command will create it.
sudo nano /etc/X11/xorg.conf
Scroll in the file and edit the
Device section as follow:
Section Device Identifier Device0 Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GeForce GTX 650" Option "RegistryDwords" "PerfLevelSrc=0x2222" Option "TripleBuffer" "True" EndSection
Usually the 3 last commades are missed in the section Device. This sets the card to performance mode and enables triple buffering.
In the terminal type:
and the X-server will appear Set argument's values in nvidia-settings/OpenGL as follow:
Sync to Vblank Allow Flipping Use Conformant Texture Clamping
Save the configuration and then restart the computer.
I had the same problem. You are confused because cogitoergosum assumed that you understand how the command line works. You will need to open a command prompt, and you will need to learn how to use several commands. The only way to truly solve this problem requires working on the command line interface (CLI). CLI skills are extremely valuable, especially in professional computing; so I will help you get started.
man cd and press enter. To escape the manual pages, when you are done reading and want to try out the command
q. On Linux, unlike Windows,
man + [command] will bring up the manual pages for any command you desire (just replace the + [command] with your desired command. For example, type
man vi to learn how to edit files with vi.
cd /etc/X11/ will take you to the directory containing "xorg.conf". You need to be careful to fix changes to the ownership and permissions of the files when they are edited as the root user.See the man pages for
man chmod or
man chown). You will always want to backup your files before changing them. To backup files, there are a few techniques. You can use
cat to output a file's contents and then redirect the output to a new file. Eg.
cat /etc/X11/xorg.conf > /etc/X11/xorg.conf.bkp1. You can also use
mv, but I usually just use redirection. To see a given directory contents, try
ls -l. If you can't see all the output, pipe the output into
less by typing
ls -l | less.
I found the solution to Nvidia bugs on Linux here for 64 bit: Nvidia & Linux x64 - common problems and solutions Readme - Here's the same readme for 32 bit (x86): Nvidia & Linux x86 - common problems and solutions Readme - 256.44 If you are using different Nvidia drivers for Linux, then you can find similar readme files on the Nvidia site here: Linux Display Driver Archive.
If you really want to increase your skills, you should Google the linux documents on shell scripting.
Just for all the others having this problem. Turning off dithering in nvidia settings appeared to have reduce the effect but it wasn't totally gone.
But turning off Flipping helped. I don't have this nasty flickering anymore. Yay!
How to do it on linux mint 18.3 cinnamon with an installed nvidia driver (nvidia-384 Version 384.111-0ubuntu0.16.04.1):
- Open your application menu
- Search "nvidia": You'll find "NVIDIA X Server Settings" – click that
- Turn off Dithering: I found it under GPU 0 – (your GeForce name) -> DFP-0 (your monitor name) (and DFP-3 & DFP-4, as I have 3 monitors)
- Turn off Flipping: X Screen 0 -> OpenGL Settings -> Allow Flipping (uncheck)
For what it's worth, I've been having this screen flicker issue on my Ubuntu/Debian-based MythTV box for years. I had it on 14.04 and I just recently upgraded that box from Linux Mint 18, where the problem also existed. I'm now running 16.04.2. The compizconfig-settings-manager change to force redraws did not work for me, but it got me playing around with the other settings. What fixed it for me was unchecking the "Force complete redraw on initial damage" option.
I don't know if I have a hardware issue that is causing a bit to be flipped which Compiz thinks is damage, but I haven't seen any artifacting or damage and the screen flicker is gone. I'm using the Intel embedded graphics in my Pentium G870 over HDMI to a 1080p TV.
This is what worked on my Ubuntu 20.04 system with an Nvidia Quadro K2000M card and the recommended 390 driver:
Section "OutputClass" Identifier "nvidia" MatchDriver "nvidia-drm" Driver "nvidia" Option "AllowEmptyInitialConfiguration" ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg" EndSection
Add Option "TripleBuffer" "TRUE"
sudo nano /usr/share/X11/xorg.conf.d/10-nvidia.conf
Section "OutputClass" Identifier "nvidia" MatchDriver "nvidia-drm" Driver "nvidia" Option "AllowEmptyInitialConfiguration" Option "TripleBuffer" "TRUE" ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg" EndSection
The screen on my laptop started flickering a few days ago. I had been running Ubuntu 18.04 and 20.04 without issue. I spent about two days researching this, but nothing worked.
My system doesn't have an
/etc/X11/xorg.conf file. Many of the settings discussed in the
nvidia-settings program no longer exist. The
nvidia-xconfig program produces an
xorg.conf file that appears to be obsolete. Even Nvidia's documentation at http://us.download.nvidia.com/XFree86/Linux-x86_64/319.32/README/xconfigoptions.html doesn't mention the new Xorg configuration sections.
Im using Linux Mint 17 with same issues plagued for some time. Discovered through linux software manager you can just type nvidia in the search bar (as in my case) "graphics" related of course and click on; Nvidia-Current-Updates. Once installed problem was resolved and performance when up. According to Nvidia website - linux software manager there are 26M drivers the program manager will analyze and download the specific driver. My problem has been solved.
Flickering screen on
- Ubuntu 22.04
- NVIDIA-SMI 450.203.03
- Driver Version: 450.203.03
- CUDA Version: 11.0
Turn off Flipping: X Screen 0 -> OpenGL Settings -> Allow Flipping (uncheck) Totally fixes the issue.
It will write "0/AllowFlipping=0" into your
Not sure how to make this persistent for the global config.