Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am experiencing a very strange way of stutter when watching Youtube videos. Every couple of minutes it repeats the previous ~0.5 sec of audio and video. There is no regular pattern of when it occurs. All other applications run without any problems.
The system is a Core2Duo desktop with 4GB RAM, 160GB SSD. I'll paste the HW specs at the end of this post. It is set up as a triple boot configuration:
1) Linux Mint 20.2 Cinnamon with proprietary Nvidia-340-legacy drivers, X11, latest Firefox, kernel 5.4, SystemD init.
2) Devuan 4 Gnome (Debian Bullseye based) with Nouveau drivers, Wayland, latest Firefox-ESR, kernel 5.10, Runit init.
2a) (previously I also tried Devuan 4 Mate with Nouveau drivers, X11, latest Firefox-ESR, kernel 5.10, OpenRC init)
3) MS Windows 8.1 with latest Firefox
All GNU/Linux systems are having the issue, on Windows however it does NOT occur.
It appears to be independent of distro, kernel version, GPU drivers, X11/Wayland, Firefox version, desktop environment and init system. No peaks in resource usage (RAM/HDD). No entries in dmesg. I am using Ethernet rather than Wifi, if that matters.
Toggling gfx.webrender.all setting in Firefox makes no difference. And just tested latest Chromium browser in Linux Mint - same issue.
Could anyone think of what could be causing this? I've searched the web but could not find any solution so far.
Regarding the KMS setting in your first link I found an Arch wiki entry, that "The proprietary NVIDIA driver supports KMS (since 364.12)". My card is a legacy 340.xx, so I assume it does not apply to my card. I also couldn't locate the file nvidia-kms.conf anywhere on my system. So the only thing I changed on my Mint system was changing NVIDIA settings from auto to high performance. In a first quick test the stutter has gone.
I'm going to check with my Devuan install though, which uses Nouveau, and Arch wiki states "Intel, Nouveau, ATI and AMDGPU drivers already enable KMS automatically for all chipsets"
Your second link refers to a discussion which talks about symptoms I don't have
Yes, but it was provided with the comment "lots of troubleshooting here", which I take as a hint for you to look what people did to troubleshoot the problem, and repeat some of these steps, to be able to provide some palpable info on the problem.
In my Mint install, all I had to do was changing the "PowerMizer Settings" in NVIDIA Control panel from Auto/Adaptive to Maximum. Right from this moment, the stutter has gone. After rebooting, this setting changes back to Auto/Adaptive, but _still_ the issue does not appear again.
On my Devuan install with Nouveau however, the stutter is still there and I didn't find a way to fix it. I tried the h264ify extension in Firefox to force the codec to H264, but it didn't make a difference.
So it seems to be a video driver thing. Maybe Nouveau is just not that perfect for an aged video card like mine, or the video card itself might have a glitch which only the proprietary driver is able to circumnavigate?
@ondoho: I'll take another look into the troubleshooting link.
Edit: I also couldn't locate the file nvidia-kms.conf anywhere on my Devuan install, so I am assuming that KMS is not used with Nouveau either.
Last edited by alp_c; 10-15-2021 at 01:44 PM.
Reason: added KMS comment
Did some more digging with the Devuan 4 system, which was running on Nouveau and still had the stuttering Youtube clips.
First I wanted to install proprietary Nvidia drivers (340xx), but they are no longer in the repos. Only up to Devuan 3/Debian 10 and in Ceres/Sid. I changed sources.list to Ceres and installed Nvidia legacy 340 drivers, but they did not compile against the 5.14 kernel that came with Ceres. Official Nvidia support only goes up to kernel 5.4. So I wiped the whole Devuan 4 installation and installed Devuan 3 with kernel 4.19 and Nouveau. No stutter, but a lot of tearing, no matter if Webrender was enabled or disabled in Firefox. Then I installed Nvidia drivers. Gave some warning but still worked, no stutter but still a lot of tearing. Went back to Nouveau in order to upgrade to Devuan 4 again. Before upgrading I noticed that Devuan 3 was using Wicd for network configuration, but Devuan 4 does not ship Wicd (uses Network Manager instead). So I installed Network Manager on Devuan 3. Immediately after installing there was some stuttering, but I was unable to reproduce it later. Finally I upgraded to Devuan 4 and the stutter was all back.
Honestly, I'm going to stop at this point. I've tried up and down but I'm unable to find the weak spot. I'll continue using Mint 20 with Nvidia drivers, which works perfectly on this machine. As a nice side effect, it will stop me from further distro hopping, which consumed quite a lot of time during the last months.
No stutter, but a lot of tearing, no matter if Webrender was enabled or disabled in Firefox.
It's probably too late now but I wonder if the tearing was limited to Firefox. Troubleshooting usually involves testing a symptom as broadly as possible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.