Skip to main content
Topic: periodically YT videos lag - slow motion (Read 551 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

periodically YT videos lag - slow motion

Good evening. Sometimes the videos that play on youtube get stuck as if you keep pressing play-pause, play-pause, play-pause, etc., and after 3 seconds, it fixes. After this problem dmesg

My system is AMD Ryzen 9 6900HX with Radeon Graphics 680M. I have installed the open drivers based on the arch wiki. I am running on Artix Linux x86_64 (runit) plasma-X11.
By the way, I haven't noticed any error message in dmesg after the reported problem.

Can you help me to catch it from scratch to find out what's wrong?

Re: periodically YT videos lag - slow motion

Reply #1
Also the same phenomenon with other browsers except firefox (iron, brave)

Re: periodically YT videos lag - slow motion

Reply #2
I have a Navi GPU, same family as your igpu and I was wondering what is weird in the Mesa versions of last few months where video freezes also (and yes indeed only in chromium/webview/qtweb and not mozilla), for me it's every ~10 minutes so it was harder to pin point at first. With enough time a bug report in Mesa can be filed i guess.

LE: Now that i think of it there are flags for Chromium to disable hw acceleration to fix this. hmm. i'll see these next few days.

LE2: Okay it's actually kind of easy, try this as a test:
start any chromium based application with this argument in a terminal: --disable-gpu
and with this env. variable at the beginning if they use qt/webkit: QTWEBENGINE_CHROMIUM_FLAGS=--disable-gpu

Seems to have a positive effect for me so far.

Re: periodically YT videos lag - slow motion

Reply #3
If you start the browser on the commandline it's possible it might write some error messages to the terminal while the issue occurs. You can also enable more verbose logging as shown at the top of this page:
https://www.chromium.org/for-testers/enable-logging/

Re: periodically YT videos lag - slow motion

Reply #4
Thank you for your replies, and I am sorry for the misunderstanding. I have the same problem with firefox too!
I will check the browsers through the terminal.
I will also check the disable GPU flag.

Re: periodically YT videos lag - slow motion

Reply #5
Here are the messages in the terminal when the lag problem occurs (youtube video - iron browser).
Code: [Select]
ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[27072:27072:0611/130857.932506:ERROR:device_event_log_impl.cc(214)] [13:08:57.932] USB: usb_device_handle_usbfs.cc:133 Low-level transfer error: protocol error (71)
Any idea?

Re: periodically YT videos lag - slow motion

Reply #6
@AntonyZ0 Try the recent updates with kernel 6.4.0 and the radeon stuff, maybe you get lucky, my issues ameliorated, now it's freezing only every 15 minutes and if using mpv with shaders.

Re: periodically YT videos lag - slow motion

Reply #7
would you recommend me to use the Radeon Pro drivers? Still the same problems...

Re: periodically YT videos lag - slow motion

Reply #8
You can try amdgpu-pro if you're patient enough to get it running, absolutely, I only could go as far as setting up radv as vulkan_icd but that certainly didn't solve this problem, only improved slightly the 3d performance.