Last active
March 13, 2022 12:19
-
-
Save sysadminbp/b454a3c20837d035f37b02057ba48459 to your computer and use it in GitHub Desktop.
fix scroll tearing in linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fix scroll tearing | |
apt-get install -y driconf mesa-utils ; mkdir -p /etc/X11/xorg.conf.d/ ; | |
touch /etc/X11/xorg.conf.d/20-intel.conf /etc/X11/20-intel.conf; chmod -R 777 /etc/X11/xorg.conf.d/ /etc/X11/xorg.conf.d/20-intel.conf /etc/X11/20-intel.conf ; | |
cat > /etc/X11/xorg.conf.d/20-intel.conf <<EOL | |
################# | |
Section "Device" | |
Identifier "Intel Graphics" | |
Driver "intel" | |
Option "AccelMethod" "sna" | |
Option "TearFree" "true" | |
EndSection | |
################# | |
EOL | |
cat > /etc/X11/20-intel.conf <<EOL | |
################# | |
Section "Device" | |
Identifier "Intel Graphics" | |
Driver "intel" | |
Option "AccelMethod" "sna" | |
Option "TearFree" "true" | |
EndSection | |
################# | |
EOL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment