Forum › Forums › General › Tips and Tricks › Solving screen flickering in Chrome/Chromium
- This topic has 3 replies, 3 voices, and was last updated Sep 28-8:21 pm by cord.
-
AuthorPosts
-
March 19, 2019 at 9:13 am #19555Member
wolfen
Hi all.
After installing antiX I had this minor, but somewhat annoying, problem. When using Chromium browser (and Chrome too, tried both), some kind of flickering oblique line appeared when scrolling a web page. First thing I tried was a kernel upgrade. Didn’t work (but, offtopic, with that my netbook was finally able to recognise an external 64Mb SD card). Finally, I found a solution that, if you are in the same case, can try. No credits for me, I found all this here. I’m sharing this here because this goes straight to the things that worked for antiX in my netbook, but if none of this does work you’ll find plenty more info there.
First, open Chromium (in a terminal; change it for Chrome order if that’s your browser):
chromium --disable-gpu-driver-bug-workarounds --enable-native-gpu-memory-buffers
And scroll some web page. If now is OK, you can use this as a workaround, type:
sudo nano /usr/share/applications/chromium-browser.desktop
Find this text:
Exec= chromium-browser
And add the later, so it gets:
Exec= chromium-browser --disable-gpu-driver-bug-workarounds --enable-native-gpu-memory-buffers
Save and it should restart OK everytime.If you, as in my case, have an Intel gpu, then you can try another solution, without changing the /usr/share/applications/chromium-browser.desktop launcher doc. Edit (or create) a new doc:
sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
Now copy and paste this:Section "Device" Identifier "Intel Graphics" Driver "intel" Option "AccelMethod" "sna" Option "TearFree" "true" Option "DRI" "3" EndSectionSave and exit. I don’t remember if I had to restart my computer or just desktop session or even just Chromium (I think it was the later), but anyway, worked like a charm. I hope this will be useful to someone too, cheers and enjoy antiX!
- This topic was modified 4 years, 1 month ago by wolfen.
March 19, 2019 at 9:32 am #19557Forum Admin
anticapitalista
::Thanks for posting the fix.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
April 11, 2019 at 11:33 am #20400Member
wolfen
::I’m posting here again because I found another solution which is better for me. The former one, I found later, troubled my Palemoon browser, which drew lines on the borders of the screen when scrolling up or down. With this solution, Palemoon, Firefox and Chromium now seem to scroll just OK. 🙂
So, we do as before, but the content in the acceleration config file (now renamed as 20-intelaccel.conf, but I don’t really know if this affects the final output or you can keep the same name as before) is:
Section "Device" Identifier "Intel Graphics" Driver "intel" Option "AccelMethod" "uxa" EndSectionAnd that’s it. 🙂
- This reply was modified 4 years ago by wolfen.
September 28, 2019 at 8:21 pm #27569Member
cord
::Section "Device" Identifier "Intel Graphics" Driver "intel" Option "AccelMethod" "sna" Option "TearFree" "true" Option "DRI" "3" EndSectioni found a similar suggestion/solution (minus the last “DRI” option) on reddit when i was thinking about installing compton to possibly deal with screen tearing while watching netflix in firefox. so far it has worked quite well though there is still something a tiny bit off that i can’t put my finger on. i may try adding the “DRI” line or your more recent post to see if it clears that up. thanks for the share 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.