How to stop screen tearing by enabling Vertical Retrace Synchronization (vsync)





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















I am using Ubuntu 18.04.2 LTS amd64, with an AMD Radeon 590 graphics card.



By default, there appears to be massive tearing in just about everything you do. Moving windows, watching a movie, watching Youtube, everything!



Besides being annoyed, I am surprised! How is it possible that in 2019, by default with modern hardware and software, users get to see screen tearing? How is that possible? Why is the default not to avoid screen tearing by waiting for vertical retrace (vsync) ?



Many search results go back to 2010 and stuff, which appear to be outdated. One source for 18.04 and AMD graphics cards suggested the following, which i tried:



sudo nano /usr/share/X11/xorg.conf.d/20-radeon.conf


And enter:



Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "TearFree" "on"
Option "DRI" "3"
Option "AccelMethod" "glamor"
EndSection


Sadly, it did not work. Also not after sudo service gdm restart and a full reboot.



Even worse, before i rebooted, it appeared that the gnome panel was broken, because launching certain applications such as the file manager (nautilus) and the text editor (gedit) did not work; clicking the icon did nothing except showing a 'loading' mouse cursor. When launching 'gedit' from the gnome-terminal, it worked again. After rebooting, the issue appears to be gone.



I so much hope one day there will be an open-source operating system where 'things just work' like virtually all users want to! Until then, can you people be so kind as to direct me to instructions on how to fix the screen tearing issue on my system?



Many thanks in advance for your efforts and time!



Requested additional information:



$ sudo lshw -c video
*-display
description: VGA compatible controller
product: Ellesmere [Radeon RX 470/480/570/570X/580/580X]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:26:00.0
version: e7
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: irq:65 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:fe900000-fe93ffff memory:c0000-dffff


and:



$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
1920x1080 60.00*+
1680x1050 60.00
1280x1024 75.02 60.02
1440x900 60.00
1280x800 60.00
1152x864 75.00
1280x720 60.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
720x400 70.08









share|improve this question









New contributor




Steiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Can you please give us the output of lshw -c video and of xrandr (run both in a terminal)?

    – ejjl
    yesterday











  • Done! Thanks for asking. :)

    – Steiner
    yesterday


















2















I am using Ubuntu 18.04.2 LTS amd64, with an AMD Radeon 590 graphics card.



By default, there appears to be massive tearing in just about everything you do. Moving windows, watching a movie, watching Youtube, everything!



Besides being annoyed, I am surprised! How is it possible that in 2019, by default with modern hardware and software, users get to see screen tearing? How is that possible? Why is the default not to avoid screen tearing by waiting for vertical retrace (vsync) ?



Many search results go back to 2010 and stuff, which appear to be outdated. One source for 18.04 and AMD graphics cards suggested the following, which i tried:



sudo nano /usr/share/X11/xorg.conf.d/20-radeon.conf


And enter:



Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "TearFree" "on"
Option "DRI" "3"
Option "AccelMethod" "glamor"
EndSection


Sadly, it did not work. Also not after sudo service gdm restart and a full reboot.



Even worse, before i rebooted, it appeared that the gnome panel was broken, because launching certain applications such as the file manager (nautilus) and the text editor (gedit) did not work; clicking the icon did nothing except showing a 'loading' mouse cursor. When launching 'gedit' from the gnome-terminal, it worked again. After rebooting, the issue appears to be gone.



I so much hope one day there will be an open-source operating system where 'things just work' like virtually all users want to! Until then, can you people be so kind as to direct me to instructions on how to fix the screen tearing issue on my system?



Many thanks in advance for your efforts and time!



Requested additional information:



$ sudo lshw -c video
*-display
description: VGA compatible controller
product: Ellesmere [Radeon RX 470/480/570/570X/580/580X]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:26:00.0
version: e7
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: irq:65 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:fe900000-fe93ffff memory:c0000-dffff


and:



$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
1920x1080 60.00*+
1680x1050 60.00
1280x1024 75.02 60.02
1440x900 60.00
1280x800 60.00
1152x864 75.00
1280x720 60.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
720x400 70.08









share|improve this question









New contributor




Steiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Can you please give us the output of lshw -c video and of xrandr (run both in a terminal)?

    – ejjl
    yesterday











  • Done! Thanks for asking. :)

    – Steiner
    yesterday














2












2








2


1






I am using Ubuntu 18.04.2 LTS amd64, with an AMD Radeon 590 graphics card.



By default, there appears to be massive tearing in just about everything you do. Moving windows, watching a movie, watching Youtube, everything!



Besides being annoyed, I am surprised! How is it possible that in 2019, by default with modern hardware and software, users get to see screen tearing? How is that possible? Why is the default not to avoid screen tearing by waiting for vertical retrace (vsync) ?



Many search results go back to 2010 and stuff, which appear to be outdated. One source for 18.04 and AMD graphics cards suggested the following, which i tried:



sudo nano /usr/share/X11/xorg.conf.d/20-radeon.conf


And enter:



Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "TearFree" "on"
Option "DRI" "3"
Option "AccelMethod" "glamor"
EndSection


Sadly, it did not work. Also not after sudo service gdm restart and a full reboot.



Even worse, before i rebooted, it appeared that the gnome panel was broken, because launching certain applications such as the file manager (nautilus) and the text editor (gedit) did not work; clicking the icon did nothing except showing a 'loading' mouse cursor. When launching 'gedit' from the gnome-terminal, it worked again. After rebooting, the issue appears to be gone.



I so much hope one day there will be an open-source operating system where 'things just work' like virtually all users want to! Until then, can you people be so kind as to direct me to instructions on how to fix the screen tearing issue on my system?



Many thanks in advance for your efforts and time!



Requested additional information:



$ sudo lshw -c video
*-display
description: VGA compatible controller
product: Ellesmere [Radeon RX 470/480/570/570X/580/580X]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:26:00.0
version: e7
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: irq:65 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:fe900000-fe93ffff memory:c0000-dffff


and:



$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
1920x1080 60.00*+
1680x1050 60.00
1280x1024 75.02 60.02
1440x900 60.00
1280x800 60.00
1152x864 75.00
1280x720 60.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
720x400 70.08









share|improve this question









New contributor




Steiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I am using Ubuntu 18.04.2 LTS amd64, with an AMD Radeon 590 graphics card.



By default, there appears to be massive tearing in just about everything you do. Moving windows, watching a movie, watching Youtube, everything!



Besides being annoyed, I am surprised! How is it possible that in 2019, by default with modern hardware and software, users get to see screen tearing? How is that possible? Why is the default not to avoid screen tearing by waiting for vertical retrace (vsync) ?



Many search results go back to 2010 and stuff, which appear to be outdated. One source for 18.04 and AMD graphics cards suggested the following, which i tried:



sudo nano /usr/share/X11/xorg.conf.d/20-radeon.conf


And enter:



Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "TearFree" "on"
Option "DRI" "3"
Option "AccelMethod" "glamor"
EndSection


Sadly, it did not work. Also not after sudo service gdm restart and a full reboot.



Even worse, before i rebooted, it appeared that the gnome panel was broken, because launching certain applications such as the file manager (nautilus) and the text editor (gedit) did not work; clicking the icon did nothing except showing a 'loading' mouse cursor. When launching 'gedit' from the gnome-terminal, it worked again. After rebooting, the issue appears to be gone.



I so much hope one day there will be an open-source operating system where 'things just work' like virtually all users want to! Until then, can you people be so kind as to direct me to instructions on how to fix the screen tearing issue on my system?



Many thanks in advance for your efforts and time!



Requested additional information:



$ sudo lshw -c video
*-display
description: VGA compatible controller
product: Ellesmere [Radeon RX 470/480/570/570X/580/580X]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:26:00.0
version: e7
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: irq:65 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:fe900000-fe93ffff memory:c0000-dffff


and:



$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)
DisplayPort-2 disconnected (normal left inverted right x axis y axis)
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm
1920x1080 60.00*+
1680x1050 60.00
1280x1024 75.02 60.02
1440x900 60.00
1280x800 60.00
1152x864 75.00
1280x720 60.00
1024x768 75.03 60.00
800x600 75.00 60.32
640x480 75.00 59.94
720x400 70.08






tearing






share|improve this question









New contributor




Steiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Steiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday







Steiner













New contributor




Steiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









SteinerSteiner

112




112




New contributor




Steiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Steiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Steiner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Can you please give us the output of lshw -c video and of xrandr (run both in a terminal)?

    – ejjl
    yesterday











  • Done! Thanks for asking. :)

    – Steiner
    yesterday



















  • Can you please give us the output of lshw -c video and of xrandr (run both in a terminal)?

    – ejjl
    yesterday











  • Done! Thanks for asking. :)

    – Steiner
    yesterday

















Can you please give us the output of lshw -c video and of xrandr (run both in a terminal)?

– ejjl
yesterday





Can you please give us the output of lshw -c video and of xrandr (run both in a terminal)?

– ejjl
yesterday













Done! Thanks for asking. :)

– Steiner
yesterday





Done! Thanks for asking. :)

– Steiner
yesterday










1 Answer
1






active

oldest

votes


















0














You are using the amdgpu driver, which is correct for your video card. In the config file that you added, you are referring to a driver you are not using (radeon).



What happens if you change the respective settings to the following:



Section "Device"
Identifier "AMD"
Driver "amdgpu"
Option "TearFree" "true"
Option "DRI" "3"
EndSection


?






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Steiner is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131535%2fhow-to-stop-screen-tearing-by-enabling-vertical-retrace-synchronization-vsync%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    You are using the amdgpu driver, which is correct for your video card. In the config file that you added, you are referring to a driver you are not using (radeon).



    What happens if you change the respective settings to the following:



    Section "Device"
    Identifier "AMD"
    Driver "amdgpu"
    Option "TearFree" "true"
    Option "DRI" "3"
    EndSection


    ?






    share|improve this answer




























      0














      You are using the amdgpu driver, which is correct for your video card. In the config file that you added, you are referring to a driver you are not using (radeon).



      What happens if you change the respective settings to the following:



      Section "Device"
      Identifier "AMD"
      Driver "amdgpu"
      Option "TearFree" "true"
      Option "DRI" "3"
      EndSection


      ?






      share|improve this answer


























        0












        0








        0







        You are using the amdgpu driver, which is correct for your video card. In the config file that you added, you are referring to a driver you are not using (radeon).



        What happens if you change the respective settings to the following:



        Section "Device"
        Identifier "AMD"
        Driver "amdgpu"
        Option "TearFree" "true"
        Option "DRI" "3"
        EndSection


        ?






        share|improve this answer













        You are using the amdgpu driver, which is correct for your video card. In the config file that you added, you are referring to a driver you are not using (radeon).



        What happens if you change the respective settings to the following:



        Section "Device"
        Identifier "AMD"
        Driver "amdgpu"
        Option "TearFree" "true"
        Option "DRI" "3"
        EndSection


        ?







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        ejjlejjl

        323110




        323110






















            Steiner is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Steiner is a new contributor. Be nice, and check out our Code of Conduct.













            Steiner is a new contributor. Be nice, and check out our Code of Conduct.












            Steiner is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131535%2fhow-to-stop-screen-tearing-by-enabling-vertical-retrace-synchronization-vsync%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            日野市

            GameSpot

            Tu-95轟炸機