Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Screen tearing in Ubuntu 24.04

  1. #1
    Join Date
    Feb 2017
    Beans
    63

    Screen tearing in Ubuntu 24.04

    GeForce 1060 graphic card with 535.171.04 drivers. First I noticed some screen tearing in Stremio watching a movie in full screen mode. Then today I try a video game and again I notice screen tearing, mostly around the middle and upper half of the screen. I try another game, the same happens. I try playing VLC in full screen, there is tearing. There is no tearing on the desktop, windows are not tearing when moving them. There is no tearing when I play game or video in a window, tearing is only in full screen mode. I tried turning off 'sync to vblanc' in OpenGL settings, doesn't make a difference if it's on or off.

    This is frustrating to no end. Just last week this same card with the same 535 drivers was working flawlessly on Ubuntu 22.04, but now with the new LTS this happens. Do you know what could be the problem? If you have an Nvidia card with the new Ubuntu 24.04, could you please try to replicate the problem?

  2. #2
    Join Date
    Feb 2017
    Beans
    63

    Re: Screen tearing in Ubuntu 24.04

    I found a solution. Install this extension:
    https://extensions.gnome.org/extensi...creen-windows/

  3. #3
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Screen tearing in Ubuntu 24.04

    You don't mention your DE used, mine is XFCE4 with X11, my specs:
    Code:
    inxi -G 
    Graphics:
      Device-1: NVIDIA GA107BM [GeForce RTX 3050 Ti Mobile] driver: nvidia
        v: 550.78
      Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
        driver: amdgpu v: kernel
      Device-3: Bison Integrated Camera driver: uvcvideo type: USB
      Display: x11 server: X.Org v: 21.1.11 driver: X: loaded: amdgpu,nvidia
        unloaded: fbdev,modesetting,nouveau,vesa dri: radeonsi
        gpu: amdgpu,nvidia,nvidia-nvswitch resolution: 1: N/A 2: 1920x1080~120Hz
      API: EGL v: 1.5 drivers: nvidia,radeonsi,swrast
        platforms: gbm,x11,surfaceless,device
      API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: amd mesa v: 24.0.5-1ubuntu1
        renderer: AMD Radeon Graphics (radeonsi renoir LLVM 17.0.6 DRM 3.57
        6.8.0-31-generic)
    No tearing in any of the mentioned apps your showing, outside of Stremio I don't use it so I can't report on that.

    Are you in a Wayland session?

    EDIT: You found a fix now i see.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  4. #4
    Join Date
    Feb 2017
    Beans
    63

    Re: Screen tearing in Ubuntu 24.04

    On closer inspection, no, it's actually not solved completely, though the situation is much better with the extension than without it. How the extension works is it disables undirected fullscreen windows, because desktop vsync gets turned off for them, releasing the vsync control to the application (usually a game). Without the extension the tearing was all over the place, with it it just pops here and there, from time to time, not terrible, but still annoying. I play video in full screen window and it works fine, I run it full screen borderless and there is tearing.

    I wish I could remove the [solved] tag. I'm using Gnome and X11. If you're using Nvidia proprietary drivers, please pay attention for screen tearing in fullscreen apps.

  5. #5
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Screen tearing in Ubuntu 24.04

    Quote Originally Posted by laserburn2 View Post
    I'm using Gnome and X11. If you're using Nvidia proprietary drivers, please pay attention for screen tearing in fullscreen apps.
    I'm on Xubuntu all applications in full screen or not>>>No Tearing seen on my end.
    Code:
     inxi -G | grep -e Display -e Device-1
      Device-1: NVIDIA GA107BM [GeForce RTX 3050 Ti Mobile] driver: nvidia
      Display: x11 server: X.Org v: 21.1.13 driver: X:
    Driver in use:
    Code:
     nvidia-smi | grep NVIDIA-SMI
    | NVIDIA-SMI 550.78                 Driver Version: 550.78         CUDA Version: 12.4     |
    Last edited by 1fallen; 2 Weeks Ago at 08:38 PM.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  6. #6
    Join Date
    Feb 2017
    Beans
    63

    Re: Screen tearing in Ubuntu 24.04

    Ok, I believe I got it this time. I had to check "Force Full Composition Pipeline" in Nvidia drivers. Seems that in Ubuntu 24.04 you can't let composer lose control over a window at any time, otherwise you can get tearing.

  7. #7
    Join Date
    Mar 2007
    Location
    Promiseland
    Beans
    1,566
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Screen tearing in Ubuntu 24.04

    A couple of thoughts come to mind: (1) Try reducing the resolution of your screen. (2) Is your power supply adequate for the load? Sometimes they go flaky.
    Cheers,


    The Linux Command Line at http://linuxcommand.org/

  8. #8
    Join Date
    Feb 2017
    Beans
    63

    Re: Screen tearing in Ubuntu 24.04

    Quote Originally Posted by him610 View Post
    A couple of thoughts come to mind: (1) Try reducing the resolution of your screen. (2) Is your power supply adequate for the load? Sometimes they go flaky.
    Nope, it's not a hardware problem, the solution above works. The only problem is that in order to permanently save changes, you have to click on the button that says save changes to files. But nvidia-settings would than complain that it can't write to /etc/X11/xorg.conf even when I ran it with sudo. Fortunately, it shows preview of the changes it makes, so I just created xorg.conf manually and copied the text into it.

  9. #9
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Screen tearing in Ubuntu 24.04

    Might I give a good suggestion here; write that file .conf to "/etc/X11/xorg.conf.d/" as this example name "20-nvidia-xorg.conf"
    Less chance of it getting overwrote.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags | System-info | Forum Guide lines | Arch Linux, Debian Unstable, FreeBSD

  10. #10
    Join Date
    May 2024
    Beans
    1

    Re: Screen tearing in Ubuntu 24.04

    I have the same issue for many weeks now, but I'm on Ubuntu 23.10. This only happens on my secondary external display. Installing the extension does fix it for me, and a reboot also, but only temporarily. Also, after using wayland for many months and then switching back to X11, I was surprised by how smooth the cursor and animations felt. Something is really up nvidia/wayland integration :/

    Quote Originally Posted by laserburn2 View Post
    Ok, I believe I got it this time. I had to check "Force Full Composition Pipeline" in Nvidia drivers. Seems that in Ubuntu 24.04 you can't let composer lose control over a window at any time, otherwise you can get tearing.
    Where did you enable that setting? `nvidia-settings` does not have it?

    Btw https://forums.developer.nvidia.com/...rate/271853/28 seems related to our issue. Don't remember this happening with an older driver like 535, though I'm not going to downgrade to check that.
    Last edited by hoppingturtles; 1 Week Ago at 11:34 AM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •