LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can I get rid of screen flickering in this situation? (https://www.linuxquestions.org/questions/slackware-14/can-i-get-rid-of-screen-flickering-in-this-situation-4175619807/)

FlinchX 12-18-2017 02:50 AM

Can I get rid of screen flickering in this situation?
 
I run Slackware64-14.2 with a NVidia Geforce video card and proprietary blob. Sometimes I play a game in windowed mode and whenever the game is running, if I switch to another workspace to take notes in gvim, the screen is flickering so bad that reading the text becomes hard. Without the game running there is no flickering at all. Perhaps there's some video driver / xserver setting that I could tune to get rid of this flickering?

Ztcoracat 12-18-2017 06:36 AM

Hi:

I'm not good with Nvidia sorry. This link looks like a start.

https://www.geforce.com/drivers

Good Luck

enorbet 12-18-2017 07:19 AM

If your nvidia card is new enough to use the modern (non-legacy) drivers you will very likely benefit from this article, --- Linux nVidia VSync, New Feature --- While it has to do more with screen tearing I suspect yours is just an extreme example of that. It might also be helpful to research how to fetch your monitor's EDID and load it by default so that you are getting the most effective "Screen" parameters for your specific "Monitor".

Incidentally, as in all GUI work, the checkbox is only a symbol for a cli command. If your card is too old for the newest drivers, you may still be able to accomplish the same thing with the underlying command like this ----

Code:

nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceCompositionPipeline = On }"
If your card is too old or too weak it will cost you ~$75-$100 USD to get a newer, stronger one of decent quality. If that is the case, trust me, it would be money well spent. Most people are surprised how much powerful graphics systems increase the performance of your entire PC experience.

FlinchX 12-18-2017 09:51 AM

Quote:

Originally Posted by enorbet (Post 5794517)
If your nvidia card is new enough

My apologies, I did not include the specs in the first post. I have a NVidia Geforce 730GT. Will read the article a bit later and will post feedback here.

FlinchX 12-18-2017 09:56 AM

Quote:

Originally Posted by enorbet (Post 5794517)
It might also be helpful to research how to fetch your monitor's EDID and load it by default so that you are getting the most effective "Screen" parameters for your specific "Monitor".

I've already been through that during initial monitor setup. I believe I run the right modeline. It includes a '-hsync +vsync' part if that matters

Darth Vader 12-18-2017 09:57 AM

Man, honestly I think you ask too much from the Linux gods. :D

I do not think the things will ends well while using an application using extensively the 3D, like a game, then you to expect your desktop with 3D effects to playing well.

Just because those things do not go well together, they interfere. ;)

orbea 12-18-2017 10:04 AM

Could you provide your card's codename? It will be clearer what card you have then.

You can do so with.
Code:

lspci | grep VGA
Also see https://nouveau.freedesktop.org/wiki/CodeNames/.

For example I have a GK110B and I would guess you have a GK107 or GK208?

Since you are using an older nvidia card have you considered trying to use nouveau? The caveats being that a recent kernel and versions of libdrm and mesa would significantly improve its usefulness. It will also still be an imperfect driver since nvidia does not release documentation or firmware in a timely manner. There will be some performance loss compared to nvidia, but with the nouveau reclocking feature (Needs at least a 4.10 kernel for best support I think?) and your specific needs you may not notice. Additionally talking with nouveau developers about potential issues is easy on irc and/or their issue tracker while effectively reporting issues to nvidia is nearly impossible unless you have connections.

FlinchX 12-18-2017 11:49 AM

Quote:

Originally Posted by Darth Vader (Post 5794569)
I do not think the things will ends well while using an application using extensively the 3D, like a game, then you to expect your desktop with 3D effects to playing well.

You mean things not ending well as in having side effects like flickering or more serious issues like eventually getting my hardware toasted?

I think big DEs like KDE make use of 3D effects (I'm nost sure about it), but do simple window managers do that as well? I'm a humble dwm user since those times when I was managing to fill up all RAM with running apps and tried to save every megabyte of memory - now I didn't manage to do that (yet).

FlinchX 12-18-2017 11:51 AM

Quote:

Originally Posted by orbea (Post 5794572)
Could you provide your card's codename? It will be clearer what card you have then.

You can do so with.
Code:

lspci | grep VGA

lspci reports this:

Code:

01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 730] (rev a1)

Quote:

Originally Posted by orbea (Post 5794572)
Since you are using an older nvidia card have you considered trying to use nouveau?

The game I'm playing doesn't run with nouveau driver, I have to stick to the blob.

FlinchX 12-18-2017 11:56 AM

Quote:

Originally Posted by enorbet (Post 5794517)
[URL="https://www.gamingonlinux.com/articles/how-to-an-update-on-fixing-screen-tearing-on-linux-with-an-nvidia-gpu.8892"]

This suggestion helped, the flickering seems to be gone after I enabled Force Full Composition Pipeline in nvidia-settings. I will watch it closer for the next few days and if all goes well, I'll make the change persistent by sticking that command line call somewhere. Marking thread as solved.

As usual, not only I managed to fix the issue with the help of this very user friendly community, but also learned a few new things during the process. Thank you.

Darth Vader 12-18-2017 12:01 PM

Quote:

Originally Posted by FlinchX (Post 5794614)
You mean things not ending well as in having side effects like flickering or more serious issues like eventually getting my hardware toasted?

I guess that's all about side effects. Even in the simple case of a 3D game vs. and a desktop pushing a video-driver, there is used a kind of 3D acceleration.

Quote:

Originally Posted by FlinchX (Post 5794614)
I think big DEs like KDE make use of 3D effects (I'm nost sure about it), but do simple window managers do that as well? I'm a humble dwm user since those times when I was managing to fill up all RAM with running apps and tried to save every megabyte of memory - now I didn't manage to do that (yet).

I do not think that DWM use 3D effects, but any driver other than the pure modesetting use a kind of hardware acceleration.

And a hint: a NVIDIA card has no 2D acceleration engine and no one, never has, they use the 3D engine too for this feature.

Hence, your video driver will touch the 3D, as demonstrated by your game changing "Force Full Composition Pipeline". ;)

jamesf 12-20-2017 05:35 AM

This thread from back in 2014 might help you put the nvidia-settings command equivalent in your xorg.conf.d directory:
https://www.linuxquestions.org/quest...de-4175509896/


All times are GMT -5. The time now is 06:04 PM.