Solving screen flickering in Chrome/Chromium

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.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19555
    Member
    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"
      EndSection

      Save 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.
      #19557
      Forum Admin
      anticapitalista
        Helpful
        Up
        0
        ::

        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.

        #20400
        Member
        wolfen
          Helpful
          Up
          0
          ::

          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"
          EndSection

          And that’s it. 🙂

          • This reply was modified 4 years, 1 month ago by wolfen.
          #27569
          Member
          cord
            Helpful
            Up
            0
            ::
            Section "Device"
               Identifier  "Intel Graphics"
               Driver      "intel"
               Option      "AccelMethod"  "sna"
               Option      "TearFree"    "true"
               Option      "DRI"    "3"
            EndSection

            i 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 🙂

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.