How To Eliminate All Screen Tearing On Linux

Поделиться
HTML-код
  • Опубликовано: 9 июн 2024
  • Screen Tearing on linux can be increidbly annoying but it doesn't have to be there, in fact there's a way to just turn it off and no longer have to deal with it.
    ==========Support The Channel==========
    ► $100 Linode Credit: brodierobertson.xyz/linode
    ► Patreon: brodierobertson.xyz/patreon
    ► Paypal: brodierobertson.xyz/paypal
    ► Liberapay: brodierobertson.xyz/liberapay
    ► Amazon USA: brodierobertson.xyz/amazonusa
    ==========Resources==========
    Nvidia Screen Tearing: wiki.archlinux.org/title/NVID...
    =========Video Platforms==========
    🎥 Odysee: brodierobertson.xyz/odysee
    🎥 Podcast: techovertea.xyz/youtube
    🎮 Gaming: brodierobertson.xyz/youtube
    ==========Social Media==========
    🎤 Discord: brodierobertson.xyz/discord
    🎤 Matrix Space: brodierobertson.xyz/matrix
    🐦 Twitter: brodierobertson.xyz/twitter
    🌐 Mastodon: brodierobertson.xyz/mastodon
    🖥️ GitHub: brodierobertson.xyz/github
    ==========Time Stamps==========
    0:00 Introduction
    0:33 Drawbacks
    2:42 Required Installation
    3:27 Xorg Configuration
    6:19 Xrandr Method
    8:09 DEs Need A Config Option
    ==========Credits==========
    🎨 Channel Art:
    All my art has was created by Supercozman
    / supercozman
    / supercozman_draws
    #Linux #ScreenTear #GamingOnLinux
    🎵 Ending music
    Music from filmmusic.io
    "Basic Implosion" by Kevin MacLeod (incompetech.com)
    License: CC BY (creativecommons.org/licenses/b...)
    DISCLOSURE: Wherever possible I use referral links, which means if you click one of the links in this video or description and make a purchase I may receive a small commission or other compensation.
  • НаукаНаука

Комментарии • 143

  • @shovon64
    @shovon64 2 года назад +68

    It's almost 2022 and we are still eliminating screen tearing.

    • @ShinrinnoTatsujinENGVTUBER
      @ShinrinnoTatsujinENGVTUBER Год назад +1

      2022 called, they said that we are still eliminating screen tearing.

    • @seranagod909
      @seranagod909 Год назад +8

      Yeah linux sucks

    • @luckyskull3531
      @luckyskull3531 Год назад +2

      ​@@seranagod909 windows has that same fucking problem and more..

    • @seranagod909
      @seranagod909 Год назад +7

      @@luckyskull3531 yeah windows sucks

    • @mamje7
      @mamje7 Год назад +2

      @@seranagod909 computers sucks dude

  •  2 года назад +20

    The Nvidia configuration shown at 2:33 (Force Full Composition) does work to eliminate tearing.

    • @WillJMeakin
      @WillJMeakin 2 года назад +1

      Worked for me too on Debian based distro.

    • @sumirandahal76
      @sumirandahal76 8 месяцев назад

      Does that work with nvidia hybrid mode ? And what did you configure in 4:20 ?

  • @tato-chip7612
    @tato-chip7612 2 года назад +39

    unironically the best experience i had with a window manager i had with sway, not just because of the fact that i do not have to set up a god darn compositor. but also the fact that configuration is actually easy compared to pretty much everything else.

    • @comedy6631
      @comedy6631 2 года назад +3

      SWAY GANG!!!

    • @contempt2012
      @contempt2012 2 года назад +1

      Wayland removes so many features X11 had for years that it's not usable at this point. I wonder if it ever be.

    • @mitchmarq428
      @mitchmarq428 2 года назад +2

      @Watcher TIL xorg has a printer server...

    • @ac130kz
      @ac130kz 2 года назад

      You don't have to setup on Xorg either... They are very slow on Xorg

    • @plusquare
      @plusquare 2 года назад

      @@contempt2012 I think what u meant to say was trim the bloat

  • @voxelfusion9894
    @voxelfusion9894 2 года назад +32

    Yup, wayland did fix it. So far so good. Still stuck on xorg on my desktop though, due to nvidia.

    • @RandomGeometryDashStuff
      @RandomGeometryDashStuff 11 месяцев назад

      (nvidia proprietary driver) native wayland apps work very smooth and no screen taring but xwayland apps are stuttery (especially android emulator)

    • @RandomGeometryDashStuff
      @RandomGeometryDashStuff 11 месяцев назад

      add boot argument nvidia_drm.modeset=1 to make wayland work with proprietary nvidia driver

  • @codebitcookie8053
    @codebitcookie8053 2 года назад +2

    Wow, Thanks so much! I had screen tearing issues and this fixed it! I always learn something new form this channel, keep up the good work.

  • @LinuxPlayer9
    @LinuxPlayer9 2 года назад +3

    The nvidia-settings force full composition pipeline works, and you can tick the option in the nvidia-settings gui and save that to be the default behavior

  • @stoicfloor
    @stoicfloor 2 года назад

    thank you so much! This screen tearing issue has been boring me for months and now I finally got rid of it thanks to your video!

  • @11WicToR11
    @11WicToR11 2 года назад +19

    Wayland screen tearing totally doesnt exist in my experience. With zero drawbacks (apart from rewriting scripts using tools that are xorg specific).
    Those arch wiki solutions never helped me, and if you actually game on linux and dont wanna choose between performance and screen tearing ....give it a try!

    • @BrodieRobertson
      @BrodieRobertson  2 года назад +4

      There is a measurable increase in delay due to the forced vsync but if that doesn't bother you then go right ahead

    • @11WicToR11
      @11WicToR11 2 года назад +5

      @@BrodieRobertson didnt know how it worked before thanks, but in my experience it runs smoother than with this xorg option, no idea why tho. Maybe its my hw/sw setup but my computer is running notice-ably smoother in even basic tasks like scrolling sites with sht-ton of js bloat

    • @EwanMarshall
      @EwanMarshall 2 года назад +3

      vsync has to cause delay. You have to wait until the vblank before drawing the next frame even if you have it ready. This is where freesync and gsync come in, they allow one to call an earlier vblank interval, but the display has to support it.

    • @dm.3145
      @dm.3145 Год назад +1

      @@EwanMarshall So if you have a freesync capable display, you don't have to worry about it?

    • @EwanMarshall
      @EwanMarshall Год назад +2

      @@dm.3145 the additional latency from vsync, yeah, that is what freesync and gsync when enabled and running are to fix, they adjust the display to current frame timing so there is never a difference between the GPU output framerate and the display framerate to cause the tear.

  • @TheMemcon
    @TheMemcon 2 года назад

    Been dealing with this problem since switching my htpc to Linux and this fixed my issue. Appreciate the knowledge.

  • @bleack8701
    @bleack8701 2 года назад +4

    Oh god, I've been struggling with this EXACT topic for weeks. Luckily I got Linux on an old laptop I barely use, but still. The screen tearing has been driving me insane

  • @w_shakes_
    @w_shakes_ 2 года назад +3

    The arch wiki instructions for nvidia will work (cause they do for me with my 1070) its basically putting on hardware vsync, the drawback is that it add input latency for the entire desktop (so I generally just increase my mouse speed to help me with it.) I want to switch to wayland but I heard the nvidia drivers are still not the best for it right now, so I remain on xorg.

  • @mikolajfrycz
    @mikolajfrycz Месяц назад

    Thanks! After 30 minutes of googling and picom not working on I3, Your video helped a lot!!!!

  • @Mysticana
    @Mysticana Год назад +2

    I can vouch for the nvidia settings portion. However, with an amended recommendation.
    Before doing ForceFullCompositionPipleline I would do ForceCompositionPipeline instead to see if it fixes it.
    The reason is I got a massive performance hit causing my games to freeze every few seconds with the former option where as the later just fixed it with no performance hit.
    My understanding from my breif googling is that its because the former option forces it to do it for everything vs only when needed and thus puts more pressure on your GPU.

  • @Ithirahad
    @Ithirahad 2 года назад +6

    Why isn't "Await Full Frame" an option everywhere on all platforms? I can see the drawbacks, but regardless I'd've loved to be able to try out at least a no-frame-tearing option for gaming without the limitations imposed by VSync.

    • @tsa4983
      @tsa4983 Год назад

      Yes, I'm searching for this, can you elaborate? Can I use it on EndeavourOS -Arch Linux?

  • @whiskeylinux
    @whiskeylinux 2 года назад +1

    Throwing me off with these different outros lol. Great content as usual. I had no idea TearFree was an option.

  • @crazychicken0378
    @crazychicken0378 2 года назад

    Nice intro, I checked the vid to see it actually wasn’t ending :D

  • @imhemish
    @imhemish 2 года назад +5

    Wayland with sway? I think that doesnt have screen tearing

  • @chromerims
    @chromerims Год назад +1

    Very very good video 👍
    Tear-free toggle on/off is most useful.
    With kindest regards.

  • @accessiblelinuxgaming6858
    @accessiblelinuxgaming6858 2 года назад +4

    I agree on your point at the end regarding a DE option. I enjoy a clean and minimalist UI. I use GNOME, so maybe I'm somewhat of a glutton for punishment, but there are some really critical quality of life settings that can be a bit mysterious until you double down and crawl around on community forums. This can really turn a lot of people off, and generally gives the impression that Linux just doesn't have it's $h!t together. Some of this stuff also presents a huge accessibility issue, and I don't mean "accessible" as "easy to understand" or "obvious" I mean that for people with specific needs, it actually puts them at a disadvantage when attempting to use the operating system at all. Scaling is a good example of this. This to me is completely unacceptable. There seems to be this attitude in some segments of the community that if you're having a hard time with something, you just need to "get good". This is incredibly toxic, and doesn't push Linux into a state of progression.
    You can enable this setting in Nvidia-Settings, but "force composition pipeline" and the helper text that appears when you hover over the option does not make it obvious at all as to what this setting is actually doing.

  • @estevaomendes2305
    @estevaomendes2305 2 года назад +1

    I thought until now that Wayland compositors didn't had tearing only because of some protocol quirk or something like that. I think I saw an article mentioning this but not of a build in vsync. Anyway, to deal with tearing the picom's vsync option works pretty good too if you don't want to install the xf86-video-intel, which is deprecated in favor of the modesetting driver. I'll give a test on this anyway to see if there's any difference.

    • @BrodieRobertson
      @BrodieRobertson  2 года назад

      I'd say forcing vsync is pretty quirky, but I get what you mean a lot of the time the Wayland guys don't explain the screen tear fix and it's drawbacks

  • @Beryesa.
    @Beryesa. 2 года назад +5

    "Just use wayland" is THREE words but nvm 😄

  • @DanielClear2
    @DanielClear2 2 года назад

    KDE System Settings is a bliss IMO. It even has these options in there.

  • @svenkarlsen2702
    @svenkarlsen2702 2 года назад

    Wayland always makes me think of Weyland-Yutani

  • @nevork7578
    @nevork7578 2 месяца назад

    Thanks a lot! It works

  • @RogueRen
    @RogueRen 2 года назад

    I have Nvidia, I use those exact options from the Arch Wiki on Pop!_OS with KDE Plasma, and it works! ...with a small caveat. I have to slightly slow down animations in the KDE settings (only 1 or 2 ticks to the left), but other than that it does work.

  • @NUDELMOB
    @NUDELMOB 2 года назад +1

    Hm, iirc I had to use picom vsync on top of TearFree in the X conf for that AMD APU system I use once in a while, I'll have to double check that. Also, didn't know this option was available in xrandr, thanks!

  • @Aoitori365
    @Aoitori365 2 года назад +1

    i have hybrid graphics and my nvidia card doesn't seem to work with that fix so i usually just use xorg for gaming and wayland for movies/shows

    • @BrodieRobertson
      @BrodieRobertson  2 года назад

      Are you actually making use of the nvidia card?

  • @meaningless4845
    @meaningless4845 2 года назад

    I have used sway for one year then I came back to xorg and I'm completely satisfied. I turned prime synchronization on on Nvidia and it's really tear free. It's so much better than Wayland.

  • @zeocamo
    @zeocamo 2 года назад

    2:14 yes we come here for they kitty in the background with it showing off.

  • @yehudahecht1520
    @yehudahecht1520 2 года назад

    Wayland.
    No tears.
    Only dreams.

  • @ourporter
    @ourporter 22 дня назад

    2:09 awww kitty 😻

  • @simonjamesodell
    @simonjamesodell 2 года назад

    Why do we never get Tech Tips like this from the dominant "Tech Tips" channel on YT?

    • @BrodieRobertson
      @BrodieRobertson  2 года назад

      Tech Reviews doesn't have the same ring to it

  • @leonwatson4679
    @leonwatson4679 8 месяцев назад

    I have it where the screen flashes like the brightness is going low even if I am not inactive

  • @pyrokamileon
    @pyrokamileon Год назад +1

    i just learned about it now 😮

  • @francescopremsolidoro3858
    @francescopremsolidoro3858 2 года назад +2

    instantOS has a built in switch to turn compositing off. Real nice

    • @vaisakhkm783
      @vaisakhkm783 Год назад

      Compositing or tearfree??
      composing can be killed in any system easly

  • @killistan
    @killistan 2 года назад

    I got so tired of nvidia driver updates breaking vsync, that I just went to the nouveau drivers. Even so, I had to resort to picom. -- I didn't know about tearfree. If I have to mess with it again I'll try this : )

  • @marsimplodation
    @marsimplodation 2 года назад +1

    I knew of its existence but never could test it. I own a Nvidia Card and I don't see myself switching to amd, so I'm just using nvidias fullcompisition mode. You can even enable it through the terrible nvidia-settings gui, it's just a bit hidden

  • @bmsfx
    @bmsfx 2 года назад

    Nvidia GTX 970, Force Composition dont work well, it makes the graphics in CS:GO mad slow, delay when turning and moving at times.

  • @lmaolmao9337
    @lmaolmao9337 2 года назад

    What about any of the solutions in picom like vsync?

  • @fernandocaballero5102
    @fernandocaballero5102 2 года назад

    @Brodie Robertson does that 5.15 kernel have the NTFS driver already? and is there a way to test that it's activated?

    • @BrodieRobertson
      @BrodieRobertson  2 года назад +2

      Find out what the module is called and check the list with lsmod

    • @adjmonkey
      @adjmonkey 2 года назад

      I’m sure it is. I was using Endeavor with Cinnamon a week ago and it auto detected my windows partition and mounted it

  • @rag3z706
    @rag3z706 2 года назад +1

    For NVIDIA, enabling and saving force full composition pipeline will eliminate all tearing. Do this for all of your monitors and it will work fine.

    • @mikesoto890
      @mikesoto890 2 года назад

      What do you mean by saving?

    • @rag3z706
      @rag3z706 2 года назад

      @@mikesoto890 saving to x11 config

  • @AllanSavolainen
    @AllanSavolainen 2 года назад

    Is this tearing a new problem? I don't recall seeing it when I used WindowMaker on Debian daily around 2000-2005. Nor when I've used Ubuntu on my laptops, though I think all of them have had Intel iGPUs.

    • @BrodieRobertson
      @BrodieRobertson  2 года назад

      I can't say for sure, it's very possible WindowMaker had built in vsync though

  • @timidgoldfish
    @timidgoldfish 2 года назад +1

    Ironically, I get massive screen tearing on dxvk proton games running on Wayland. Haven't figured out what's the cause yet.

    • @BrodieRobertson
      @BrodieRobertson  2 года назад +1

      XWayland maybe?

    • @poseidon3032
      @poseidon3032 2 года назад

      Still can't get away from Xorg. These configurations should still work though for X specific apps.

  • @Alkaris
    @Alkaris 2 года назад +1

    Everytime someone mentions Wayland, I just feel I can't get around to using it, because it doesn't seem like an actual proper replacement for Xorg when it heavily relies on Xorg backend configurations to work, and those who swear by Wayland have been saying _"Wayland is the way"_ for years, but it never comes to mainstream and become fully matured as a drop-in replacement for Xorg completely. I've yet to see Wayland become its own thing entirely and ship on a Linux system that doesn't use Xorg at all for it to actually work. Perhaps some hardware enthusiast developers could jump in and actually take Wayland by storm and superseed it's development to become a properly replacement for Xorg where it can work by itself without relying on Xorg backend shenanigans in order to display and render graphics and desktops.

  • @Syedflipz
    @Syedflipz 2 года назад

    Screen tearing on lxqt, mate but not cinnamon why is this (there is only 0.001% screen tearing in cinnamon not a big deal) but why is this I have GeForce gt 730 gddr5

  • @PramurtaSinha
    @PramurtaSinha 2 года назад

    thank you very very much

  • @JuusoAlasuutari
    @JuusoAlasuutari 2 года назад +2

    I'll use memeland when it finally becomes obsolete and stable

  • @ishanagarwal475
    @ishanagarwal475 2 года назад

    I actually knew about it. I have an optimus laptop so there was a time I thought fuck it I will just use my nvidia card and disable the integrated one. After doing that I tried using kde plasma and xfce which had horrible screen tearing due to using nvidia card all the time. So I had to change the Xorg config. Modifying it was quite a shit show because I got it wrong a couple of times so I had boot via the live usb undo the changes, reboot and go all over it again. When I made a switch to GNOME switcheroo was already a thing so I didn't need to use nvidia all the time as it was only a right click away, never experienced screen tearing under gnome though even on Xorg.

  • @srivathsansudarsanan3372
    @srivathsansudarsanan3372 2 года назад

    You know tearfree is not all knowing in screen tearing I've had tearfree on for many years but my compositor overlay caused more tearing which took me a long time to fix. Also Wayland is not ready for window manager

    • @BrodieRobertson
      @BrodieRobertson  2 года назад +1

      Should I just make a video called "compositing is the devil"

    • @srivathsansudarsanan3372
      @srivathsansudarsanan3372 2 года назад

      @@BrodieRobertson probably picom causes one problem over another. I've had screen tearing first which I solved and now I'm having flickering after suspend which I still don't know how to solve

  • @dougtilaran3496
    @dougtilaran3496 2 года назад

    THat Italian New Zealander is starting to look like John Bonham

  • @nonetrix3066
    @nonetrix3066 2 года назад +1

    Just get used to tearing everywhere :chad:

  • @fuseteam
    @fuseteam 2 года назад +1

    "i got 2 words for you"
    "just use wayland"
    Me: brodie that's 3 words

    • @francoisrevol7926
      @francoisrevol7926 2 года назад

      Yeah, even Steve Ballmer knows how to count words, dammit 😀 ruclips.net/video/I14b-C67EXY/видео.html

    • @fuseteam
      @fuseteam 2 года назад

      @@francoisrevol7926 😂😂😂

  • @user-jq3rf4tnd3s
    @user-jq3rf4tnd3s 7 месяцев назад

    "ive got 2 words for you, just use wayland"

  • @fusebox4473
    @fusebox4473 2 года назад

    My HD 4770 only has 512m of vram, so ill give it a miss for now. If I ever build a soystem with a better GPU, ill defiantly run tearfree.

  • @QS1597
    @QS1597 2 года назад +1

    I almost left at the beginning, ngl

  • @hermannpaschulke1583
    @hermannpaschulke1583 2 года назад

    Yes, wayland does not have this issue. But also, I don't really care for tearing on xorg lol

  • @MrMediator24
    @MrMediator24 2 года назад

    Oh, screen tearing. The arch (he he) nemesis of Optimus laptops

  • @Mitsunee_
    @Mitsunee_ 2 года назад

    I interestingly only have screen tearing with videos at 60fps. 30fps is fine, *some* games are fine (I notice the rare tear in NieR Automata, when that's actually hitting 60fps for once, but never in Portal which runs at 300fps engine capped), sadly this is on my nvidia GPU, so no tearfree for me until I ditch the thing soon™

    • @BrodieRobertson
      @BrodieRobertson  2 года назад

      What's the refresh rate of your display?

    • @Mitsunee_
      @Mitsunee_ 2 года назад

      @@BrodieRobertson it is actually a 60hz display and set to 60hz in xrandr, but I might be causing problems by mirroring to a 50hz display that doesn't even support 60hz because europe or something. I'll figure out a new setup eventually... new work setup is first tho.

  • @lordrefrigeratorintercoole288
    @lordrefrigeratorintercoole288 Год назад +1

    "IS THAT SIMPLE" he says...
    I screwed up something, now my linux boots into command line.
    is there a way to roll back the changes?
    or do i have to reinstall linux mint?

  • @miikasuominen3845
    @miikasuominen3845 2 года назад +1

    Turn off the display? ;p

  • @priyanshu9513
    @priyanshu9513 2 года назад

    Be very careful one spelling mistake means Black screen after reboot.

  • @onee1594
    @onee1594 2 года назад

    Another xorg config video you probably should watch if you want to be nolifer.

  • @iodreamify
    @iodreamify 2 года назад +1

    I used to worry about tearfree before i switched to kwin on xorg, it actually eliminated tearing issues for me. Well unless i disable the compositor for gaming ofc.
    Before that, i was on xfce, and xfwm gave me more trouble with its vsync. Enabling tearfree on top of its own vsync made Firefox freeze completely

    • @BrodieRobertson
      @BrodieRobertson  2 года назад

      Kwin like most compositors enable some level of vsync by default

  • @FaustRSI
    @FaustRSI Год назад +1

    screen tearing is still a thing :(

  • @motoryzen
    @motoryzen 2 года назад

    "just use Wayland"
    1. Unless Wayland has improved...vastly in the past 15 months since I last tried it...no...and
    2. Until it's available to use within Linux Mint Cinnamon...nope.
    I don't have any screen tearing problems anyways. Rx 8GB 580 here running a 1440p 144hz monitor.😉

    • @BrodieRobertson
      @BrodieRobertson  2 года назад

      What I'm saying is Wayland inherently doesn't screen tear due to it's forced vsync

  • @bruderdasisteinschwerermangel
    @bruderdasisteinschwerermangel 2 года назад

    Isn't this just standard vsync?

  • @phonewithoutquestion80
    @phonewithoutquestion80 2 года назад

    "It's that easy" if you ignore 99% of the issues with Wayland that are much bigger than screen tearing with Xorg...

  • @fancywaifu9821
    @fancywaifu9821 2 года назад

    I did this on my laptop now it won’t boot. I need to get a flash drive and arch-chroot and remove the file lol

    • @karnalunea1122
      @karnalunea1122 2 года назад

      Could you set the init to bash in grub?
      I do not know if it works, i just heard somewhere it may be possible.

    • @fancywaifu9821
      @fancywaifu9821 2 года назад

      @@karnalunea1122 I dual boot Windows and Linux and I use Grub2Win to dual boot so idk if I can do that

    • @preritdayal2970
      @preritdayal2970 2 года назад +1

      same shit happend to me lol

  • @dengan699
    @dengan699 2 года назад

    Lol I didn't even know what "tear" is, after 5y of linux usage

  • @l4kr
    @l4kr 2 года назад +1

    I'm on KDE nVidia
    so my words are
    just make it work pls

    • @breadpirateroberts4946
      @breadpirateroberts4946 2 года назад +1

      egl wayland with nvidia works afaik, but plasma's wayland is still very iffy from my experience

  • @gustavomariz7769
    @gustavomariz7769 2 года назад +2

    nah, just don't use any graphical enviroment.

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi 2 года назад

    tyb. I only had screen tearing on Xfce some years ago.

  • @alirahimi92
    @alirahimi92 2 года назад

    1 year and I'm fine with tearing.

    • @BrodieRobertson
      @BrodieRobertson  2 года назад +1

      I've dealt with it for years on Windows but finally getting around to fixing it

    • @meaningless4845
      @meaningless4845 2 года назад

      Whyyyyy

    • @alirahimi92
      @alirahimi92 2 года назад

      @@meaningless4845 It's on my laptop. I just don't want my fan to ramps up. it's the best setting for me.

  • @xorsirenz
    @xorsirenz 2 года назад

    i got 2 words for you:
    1. Just
    2. Use
    3? Wayland..

  • @doooofus
    @doooofus 2 года назад +2

    settings > display settings > screen tearing [ON] / OFF

  • @breadpirateroberts4946
    @breadpirateroberts4946 2 года назад

    wayland gang

  • @alphabennyrosy5068
    @alphabennyrosy5068 2 года назад

    I like tearing

  • @Speykious
    @Speykious 2 года назад

    TIL

  • @zcalex7660
    @zcalex7660 2 года назад

    i got rid of all the screentearing with the experimental flag for picom

  • @KingZero69
    @KingZero69 2 года назад +1

    it's pronounced "ecks arr and arr"... not "ecks ran der"... 😏

  • @stpedro-ht9ng
    @stpedro-ht9ng Год назад +1

    I don't have any tearing issues on Nvidia with X11 when the full composition pipeline is enabled.