Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Videos freeze while audio continues to play in Chrome, Videos, etc. [$10] #121

Open
cassidyjames opened this issue Oct 5, 2018 · 63 comments

Comments

@cassidyjames
Copy link
Member

commented Oct 5, 2018

From @pbirkbeck on July 9, 2018 4:1

On elementary OS Juno beta videos freeze while watching netflix, youtube etc. Audio continues to play. When I move the mouse around the video resumes playing but freezes a few seconds later without any mouse movement.


There is a $10 open bounty on this issue. Add to the bounty at Bountysource.

@cassidyjames

This comment has been minimized.

Copy link
Member Author

commented Oct 5, 2018

From @maylton on September 20, 2018 18:44

I've been facing the very same problem. Also, it happens not only while streaming videos, but in vlc and default video player too.

@cassidyjames

This comment has been minimized.

Copy link
Member Author

commented Oct 5, 2018

From @peteruithoven on September 21, 2018 17:20

There also is a Videos specific issue for this: elementary/videos#93
I personally haven't seen this happen on Youtube, what browser and video did you use?

@cassidyjames

This comment has been minimized.

Copy link
Member Author

commented Oct 5, 2018

From @irineubruno on September 22, 2018 0:4

Estou com mesmo problema, não pode ser o driver de vídeo ?

@cassidyjames

This comment has been minimized.

Copy link
Member Author

commented Oct 5, 2018

From @Philip-Scott on September 22, 2018 4:15

I can confirm, but I don't think it's Gala's fault. If we search for "videos freeze until mouse movement" you will find that it's a driver problem :/

@cassidyjames

This comment has been minimized.

Copy link
Member Author

commented Oct 5, 2018

Can confirm here on two Intel systems. One with 5th gen and the other with I believe 8th gen.

@cassidyjames

This comment has been minimized.

Copy link
Member Author

commented Oct 5, 2018

From @sebasvisser on October 5, 2018 9:5

Can confirm this also happens on 7th gen i7 on chrome browser

@cassidyjames cassidyjames added this to To Do in Juno Regression Tracking via automation Oct 5, 2018

@cassidyjames cassidyjames changed the title videos freeze while audio continues to play on chrome Videos freeze while audio continues to play in Chrome, Videos, etc. Oct 5, 2018

@kubaplas

This comment has been minimized.

Copy link

commented Oct 9, 2018

I have the same issue on 6th gen Intel laptop with Youtube on Chrome browser.
4.15.0-36-generic kernel

@Djaler

This comment has been minimized.

Copy link

commented Oct 13, 2018

Same thing with Bomi video player. But only when it in non-fullscreen mode

@PNunesDev

This comment has been minimized.

Copy link

commented Oct 17, 2018

I can also confirm that this also happens to me on youtube or any video.
i5 4200u with Intel HD.
Elementary OS Juno 0.5
Kernel: 4.15.0-36-generic

I've started to use Linux recently, but I'm aware Elementary don't usually push kernel updates.
so, this is issue is going to stay in here for the rest of the 2 years of the 0.5 version, or will I need to force a kernel update just like the PRO linux users :P?

@cassidyjames

This comment has been minimized.

Copy link
Member Author

commented Oct 17, 2018

@PNunesDev elementary OS uses the Ubuntu kernel, which gets frequent updates gets upgraded to newer versions along with the rolling "HWE" stack.

@otavioschwanck

This comment has been minimized.

Copy link

commented Oct 18, 2018

Confirm here too.

image

@azhar25git

This comment has been minimized.

Copy link

commented Oct 18, 2018

Same here on core-i7 3rd gen...

@otavioschwanck

This comment has been minimized.

Copy link

commented Oct 18, 2018

Update:
If you keep moving the mouse, the video don't freeze. Only happens when mouse is stopped.

@kubaplas

This comment has been minimized.

Copy link

commented Oct 18, 2018

I've updated the kernel to 4.18.15, didn't help.

@jorge-aparicio

This comment has been minimized.

Copy link

commented Oct 18, 2018

I tried updating to the latest mesa drivers also didn't help

@otavioschwanck

This comment has been minimized.

Copy link

commented Oct 18, 2018

Update:
if mouse is out of video, the freeze doesn't happen

@PNunesDev

This comment has been minimized.

Copy link

commented Oct 18, 2018

I've updated the kernel to 4.18.15, didn't help.

Well, that's not good, probably the issue is related with intel mesa drivers.
Does intel contain any easy update system for their GPU drivers?

EDIT: Nevermind, somebody replied that updating Mesa didn't helped either.

@otavioschwanck

This comment has been minimized.

Copy link

commented Oct 18, 2018

I have ubuntu 18.04 and mint 19 (same base, kernel and drivers), and this issue occurs.

@leonidasv

This comment has been minimized.

Copy link

commented Oct 18, 2018

Core 7th gen, HD graphics 620 here, same issue.

Tried upgrading to kernel 4.18.0 and 4.18.15 but this same issue continues haunting me.

I think it's not a driver problem, but Gala's compositor one. I've never had this issue using Gnome.

For example:
I managed to make a video stop freezing by holding a Terminal window in front of it, with the beam animation. While the animation was playing on the Terminal window, the video on the browser behind it played smoothly. But, once the beam animation stopped (it automatically pauses after some seconds), almost instantly, the video also froze.

I think it's related to the Gala screen refresh rate. If there's no event coming from the system UI to force it redraw the screen every 1/60 second (in a 60hz display) for quite some time, it freezes and await for the next system event forcing it to redraw. This looks like a trick to save power, but this side-effect is annoying.

I opened an issue on Gala repo: elementary/gala#368

@danrabbit danrabbit changed the title Videos freeze while audio continues to play in Chrome, Videos, etc. Videos freeze while audio continues to play in Chrome, Videos, etc. [$10] Oct 18, 2018

@danrabbit danrabbit added the Bounty label Oct 18, 2018

@jorge-aparicio

This comment has been minimized.

Copy link

commented Oct 18, 2018

Update videos play perfectly for some reason in firefox not sure what makes it different but its a temporary solution for online video at least

@otavioschwanck

This comment has been minimized.

Copy link

commented Oct 18, 2018

Confirmed: On firefox, all works well.

@touchwood99

This comment has been minimized.

Copy link

commented Oct 19, 2018

Issue exists for me in Firefox - not in Chromium.
When selecting full screen in Youtube, display freezes. Audio continues playing.
Escape key has the screen flashing.
Its as though the GPU is not being used.

@MichelFrade

This comment has been minimized.

Copy link

commented Oct 19, 2018

Same issue here too.
captura de tela de 2018-10-19 18-34-16

@rugglcon

This comment has been minimized.

Copy link

commented Oct 24, 2018

Can confirm that the other config suggestion from @mnavarrocarter fixed the tearing and flickering at least

@peterrobertz

This comment has been minimized.

Copy link

commented Oct 24, 2018

i can confirm @mnavarrocarter solution fixed the problem for me.

dell xps 9360r ; intel i8

before: fullscreen video mode = freeze; overall sluggish

after: its gone, feels much faster + fullscreen video is no problem anymore

@cassidyjames did you simply forget to ship this file /etc/X11/xorg.conf.d/20-intel.conf ?

thank you man!

@PNunesDev

This comment has been minimized.

Copy link

commented Oct 24, 2018

@mnavarrocarter Unfortunaly I'm unable to find that file inside the X11 folder :/

@mnavarrocarter

This comment has been minimized.

Copy link

commented Oct 24, 2018

@PNunesDev You can just create it :)

@cryptowyrm

This comment has been minimized.

Copy link

commented Oct 24, 2018

@mnavarrocarter Your link says to put the file into /usr/share/X11/xorg.conf.d not /etc/X11/xorg.conf.d, and that folder actually exists already and has a few files in it, so might it be better to put the file there? The Linux folder structure is still a mystery to me for the most part so maybe there is a good reason for using /etc instead :)

One concerning issue is that the comments in your link say this increases the CPU load considerably, if true this might not be the perfect solution yet unless it's the only one that ends up working for everyone.

@PNunesDev

This comment has been minimized.

Copy link

commented Oct 24, 2018

I've used the /usr/share/X11/xorg.conf.d folder and it worked immediatally.
As for the increased CPU load, it makes sense since GPU decoding probably gets disabled in videos and CPU needs to render it instead which is WAYYY less efficient.

Let's just hope this gets fixed quick.
If this gets fixed in the future, let me us know so we can roll back the changes and take advantage of the GPU decode ... again!
Thanks

@mnavarrocarter

This comment has been minimized.

Copy link

commented Oct 25, 2018

AFAIK, X reads from both directories. The usr one is for the default config and the etc one is for custom. That's all I know I'm afraid. 😝

Cannot really comment in your second issue though. I don't have any benchmarks for that.

@yarbsemaj

This comment has been minimized.

Copy link

commented Oct 25, 2018

Can confirm that @mnavarrocarter method works however playing a 1080p youtube video causes my cpu to almost top out

@jorge-aparicio

This comment has been minimized.

Copy link

commented Oct 25, 2018

Using @mnavarrocarter works somewhat for me the high cpu usage still causes frame drops and stutters on my xps 13 using youtube on chrome

@jeanvcastro

This comment has been minimized.

Copy link

commented Nov 1, 2018

I can confirm @mnavarrocarter solution fixed the problem for me.

elementary OS 5.0 Juno (64-bit)
Built on Ubuntu 18.04 LTS
Linux 4.15.0-38-generic
GTK+ 3.22.30

Dual Core Intel® Core™ i5-5300U CPU @ 2.30GHz
Intel Corporation HD Graphics 5500 (rev 09)

@jorge-aparicio

This comment has been minimized.

Copy link

commented Nov 1, 2018

After more experimentation I have determined that the high cpu usage of the fix prevents me from playing 1080p 60fps videos on youtube and stutters with 720p fps videos which is not an issue I've had on other distros i.e. manjaro so while this helps a bit I wouldnt call it a fix. XPS 13 9360 7th gen I7 intel 620 graphics

@anarrestee

This comment has been minimized.

Copy link

commented Nov 11, 2018

Does anyone know if we can expect a permanent fix from stable updates? Or would you advice to use the workarounds available, like the one suggested by @mnavarrocarter?

(Edit) @mnavarrocarter's workaround fixed it for me in Netflix and Youtube (Chrome). But issue persists in elementary's Videos app.

elementary OS 5.0 Juno (64-bit)
Built on Ubuntu 18.04 LTS
Linux 4.15.0-38-generic
GTK+ 3.22.30

Dual-Core Intel® Core™ i7-3537U CPU @ 2.00GHz
NVIDIA Corporation GK107M [GeForce GT 740M] (rev a1)

@belizeno

This comment has been minimized.

Copy link

commented Nov 13, 2018

I can confirm this works on my computer. There needs to be a permanent fix though. Elementary Os is as perfect an OS as you can get, with this one tiny glitch messing things up on Intel Graphics HD Machines.

screenshot from 2018-11-13 13-57-48

@anarrestee

This comment has been minimized.

Copy link

commented Nov 14, 2018

After installing Firefox and VLC and testing the issue again, I can confirm (in my machine) it persists and seems confined to Videos app, even after using @mnavarrocarter solution.

@okitoxd

This comment has been minimized.

Copy link

commented Nov 14, 2018

I have the same problem. I found that the video works fluid if i do use Picture in Picture feature over youtube video and the original video is in other working area.

@xayden

This comment has been minimized.

Copy link

commented Nov 14, 2018

@mnavarrocarter solution works fine for videos, but this issue is not with videos only, I have this issue while downloading on mega.nz or when loading a website the loading icon stops and doesn't show any content on the page unless I move the mouse, for mega.nz the download progress doesn't show any update unless I move the mose
screenshot from 2018-11-15 00-28-45

@viniciusn

This comment has been minimized.

Copy link

commented Nov 15, 2018

Same here, doesn't happen on Mozilla or Epiphany. Only Chrome, Chromiun or Opera.

@hunboy723

This comment has been minimized.

Copy link

commented Nov 25, 2018

Kaffeine works on the first screen.

@xayden

This comment has been minimized.

Copy link

commented Nov 26, 2018

Connecting external monitor with @mnavarrocarter solution doesn't solve the problem.

@Livotch

This comment has been minimized.

Copy link

commented Nov 27, 2018

I had the same problem on Chrome, I disabled "Use hardware acceleration when available" in Chrome settings, it works fine now.

@BoredGitTechie

This comment has been minimized.

Copy link

commented Nov 29, 2018

i have the same issue with freezing, did the same as Livotch did a while ago and fixed on steam but found out that it affects games aswell as chrome, cant play some games only using a controller as it freezes and starts moving again when i move the mouse, rendering my controller pointless. do we have any fixes for this or is the freezing a dead end?

@elementary elementary deleted a comment from Victor-Arruda Nov 30, 2018

@elementary elementary deleted a comment from michaelsboost Dec 2, 2018

@elementary elementary deleted a comment from pushqrdx Dec 2, 2018

@elementary elementary deleted a comment from trieutulong89 Dec 2, 2018

@elementary elementary locked as too heated and limited conversation to collaborators Dec 5, 2018

@elementary elementary deleted a comment from viniciusn Mar 3, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.