Stuttering with Fedora, M3000M, all videos unwatchable

Hi,

I’ve been running Fedora since F28 on a Eurocom laptop with 32G RAM, i7700K, Quadro M3000M. Videos on VLC, mplayer, and youtube (firefox, opera) are all unwatchable due to stuttering. I’m running the nvidia 430.50 driver on Fedora 30. I update it periodically depending on breakage due to frequent kernel updates in Fedora.

This has been a constant problem with every single nvidia driver version I have used over the past two years.

Please, somebody stop this before I go blind…

Kernel 5.2.17-200.fc30.x86_64 #1 SMP

Which DE are you using?
Does setting

__GL_MaxFramesAllowed=1

in system env help?

Hi, using the default gnome desktop. I run i3 on most of my other boxes, just haven’t gotten around to setting it up on this one.

Sorry, I didn’t understand where to set the __GL_MaxFramesAllowed parm

Thank you

This is distro specific, maybe add it to
/etc/environment

Thanks. What does it do?

It disables triple buffering, limiting the driver to double buffering. Gnome has some issues with that on hybrid graphics.

Thanks, I added it to /etc/environment, rebooted. No change :(

Do you have prime sync enabled at all, i.e. please post the output of
xrandr --prop

I’m pretty clueless when it comes to graphics. I have no idea what prime sync is. Here is the output of xrandr --prop

~$ xrandr --prop
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
HDMI-0 disconnected (normal left inverted right x axis y axis)
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: HDMI 
	ConnectorNumber: 7 
	_ConnectorLocation: 7 
	non-desktop: 0 
		supported: 0, 1
DP-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
	_MUTTER_PRESENTATION_OUTPUT: 0 
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
	Backlight: 100 
		range: (0, 100)
	EDID: 
		00ffffffffffff0030e46f0400000000
		0018010495221378eadc95a35855a026
		0d505400000001010101010101010101
		0101010101012e3680a070381f403020
		350058c21000001a522b80a070381f40
		3020350058c21000001a000000fe0033
		38373459803135365746360a00000000
		000041319e001000000a010a20200092
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: DisplayPort 
		supported: DisplayPort
	ConnectorType: Panel 
	ConnectorNumber: 6 
	_ConnectorLocation: 6 
	non-desktop: 0 
		supported: 0, 1
   1920x1080     60.02*+  47.99  
DP-1 disconnected (normal left inverted right x axis y axis)
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: DisplayPort 
		supported: DisplayPort
	ConnectorType: DisplayPort 
	ConnectorNumber: 4 
	_ConnectorLocation: 4 
	non-desktop: 0 
		supported: 0, 1
DP-2 disconnected (normal left inverted right x axis y axis)
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: DisplayPort 
	ConnectorNumber: 4 
	_ConnectorLocation: 4 
	non-desktop: 0 
		supported: 0, 1
DP-3 disconnected (normal left inverted right x axis y axis)
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: DisplayPort 
		supported: DisplayPort
	ConnectorType: DisplayPort 
	ConnectorNumber: 3 
	_ConnectorLocation: 3 
	non-desktop: 0 
		supported: 0, 1
DP-4 disconnected (normal left inverted right x axis y axis)
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: DisplayPort 
	ConnectorNumber: 3 
	_ConnectorLocation: 3 
	non-desktop: 0 
		supported: 0, 1

Ok, looks like you don’t have/use hybrid graphics but only direct nvidia graphics, so my assumptions have been wrong. So just forget about prime sync and the env setting.
What’s the refresh rate of your display?

I am not sure. How can I find out? When I run glxgears I’m getting 60 fps which the comment from glxgears says should be close to the refresh rate.

Is it from this mode line in the above output?

1920x1080 60.02*+ 47.99

Nevermind, it’s 60.02 as per the xrandr output.
Only thing that comes to my mind is that Gnome has been very buggy on discrete nvidia gpus before, the necessary patches finally landed in gnome 3.34, i.e. Fedora 31.

Thanks, ok. I’ll check on availability of 31

Thank you for your help. In the meantime maybe I’ll try going to i3 and see if it makes any difference since I don’t like gnome and have had this on my list anyway.

Interesting, I learned two things.

  1. Now I remember why I didn’t install i3 on this box yet. Fedora screws up all the passwords by including some gnome components that store them encrypted separately from the apps. Very nice until you change desktops. I had to use gnome to get my login for this site again.

  2. From a very short look it appears videos are rendering much better under i3 than gnome. Thanks a lot. It seems like you may have pinpointed the issue!

You should be able to start gnome-keyring-daemon per autostart on login to have access to your passwords in i3.

You’re right. But I really don’t like the idea of gnome hijacking the job of individual apps managing passwords. I’ll go through the process of getting rid of evolution and other gnome stuff I don’t like anyway and get back to a simpler, lighter desktop. Thank you :)