jakeday / linux-surface

Linux Kernel for Surface Devices
2.6k stars 243 forks source link

Screen tearing when in portrait mode SP6 #398

Open commandermoon opened 5 years ago

commandermoon commented 5 years ago

Hey Jakeday,

I found an issue with excessive screen tearing when scrolling in portrait mode. Tried multiple apps (PDF viewer, browsers, text heavy, image heavy) and the issue persists. Entire columns of pixels become desynced from the rest of the page and will lag behind any scrolling. Rotation also takes quite long (~3s) to switch. Pull the latest commit, ran setup.sh, and rebooted just before posting.

Thanks for all the hard work!

ZZZXXX0110 commented 5 years ago

I seem to have managed to fix this by enabling Intel GPU's built-in anti-tearing mode by creating a .conf file under /usr/share/X11/xorg.conf.d with following content:

Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option "AccelMethod" "sna"
  Option      "TearFree" "true"
  Option "DRI" "3"
EndSection

It's probably still not absolutely prefect but at the tearing in portrait mode is significantly reduced. I have not observed any performance decrease or increased battery consumption with acceleration mode set as SNA.

avanisubbiah commented 4 years ago

Had the same issue on the surface book 2 that fixed it. Thanks!

I seem to have managed to fix this by enabling Intel GPU's built-in anti-tearing mode by creating a .conf file under /usr/share/X11/xorg.conf.d with following content:

Section "Device"
  Identifier  "Intel Graphics"
  Driver      "intel"
  Option "AccelMethod" "sna"
  Option      "TearFree" "true"
  Option "DRI" "3"
EndSection

It's probably still not absolutely prefect but at the tearing in portrait mode is significantly reduced. I have not observed any performance decrease or increased battery consumption with acceleration mode set as SNA.