When using the Sawfish window manager, there is screen tearing in videos in Firefox. How to fix this?
Asked
Active
Viewed 1,010 times
1 Answers
1
To fix this, run a compositor (these provide off-screen buffers for each window) alongside your non-compositing window manager. Compton seems to do the trick.
Install the needed packages and add this to .gnomerc
:
# To get tearing-free video in Firefox
hsetroot -solid '#000000'
compton --backend glx & # Worked for me in Ubuntu 16.04
compton --backend xr_glx_hybrid & # Works for me in Ubuntu 18.04
The hsetroot
line is needed if the background goes gray.
My setup:
Software: Ubuntu 16.04.4 LTS, Firefox 59.0.1, Sawfish 1.11, and Compton 0.1~beta2.
Graphics: RADEON(0): Chipset: "CAICOS" (ChipID = 0x6779)
Tearing tests:
More information:
- How to enable transparency (discusses compositors for Sawfish)
- Howto: Using Compton for tear-free compositing on XFCE or LXDE
- 1134077 - HTML5 video tearing in full-screen mode on mutter (GNOME) due to vsync problem and compositor bypass (discussion about Firefox and compositing)
Some related questions:

Håkon A. Hjortland
- 3,596