Ubuntu 18.04 after installing NVIDIA graphics drivers still getting lag

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
5
down vote

favorite
2












I have a GTX 750 ti and I'm using Ubuntu 18.04. I have never had problems before with graphics drivers not working well. So before I installed drivers, I was getting massive amounts of screen tearing and lag. Afterwards, I still notice a lot of lag in animations (clicking "Show Applications", maximizing windows, minimizing windows, etc.) and sometimes when moving windows around or resizing them. When scrolling through web pages on browsers it will lag and I notice screen tearing. I have tried installing many different drivers, including the nvidia-375 and nvidia-384 drivers that are in the default Ubuntu repository. I also tried using drivers from the Graphics Drivers repo (https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa). No matter what I do, it never gets rid of lag in the animations or screen tearing within browsers.







share|improve this question




















  • Have you removed all 3rd party repositories that deal with video drivers and just tried installing the nvidia-drivers-390 from the Ubuntu repositories instead? I could not get the graphics-drivers ppa to work properly. The only ones were from Ubuntu themselves.
    – Terrance
    Apr 30 at 4:56











  • For me sudo ubuntu-drivers autoinstall did the job. Check this link for more options.
    – Cleb
    Jun 16 at 22:39










  • Removing all 3rd party repos and reinstalling nvidia-drivers-390 does not solve the issue.
    – Alexandre Verri
    Jul 23 at 20:22














up vote
5
down vote

favorite
2












I have a GTX 750 ti and I'm using Ubuntu 18.04. I have never had problems before with graphics drivers not working well. So before I installed drivers, I was getting massive amounts of screen tearing and lag. Afterwards, I still notice a lot of lag in animations (clicking "Show Applications", maximizing windows, minimizing windows, etc.) and sometimes when moving windows around or resizing them. When scrolling through web pages on browsers it will lag and I notice screen tearing. I have tried installing many different drivers, including the nvidia-375 and nvidia-384 drivers that are in the default Ubuntu repository. I also tried using drivers from the Graphics Drivers repo (https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa). No matter what I do, it never gets rid of lag in the animations or screen tearing within browsers.







share|improve this question




















  • Have you removed all 3rd party repositories that deal with video drivers and just tried installing the nvidia-drivers-390 from the Ubuntu repositories instead? I could not get the graphics-drivers ppa to work properly. The only ones were from Ubuntu themselves.
    – Terrance
    Apr 30 at 4:56











  • For me sudo ubuntu-drivers autoinstall did the job. Check this link for more options.
    – Cleb
    Jun 16 at 22:39










  • Removing all 3rd party repos and reinstalling nvidia-drivers-390 does not solve the issue.
    – Alexandre Verri
    Jul 23 at 20:22












up vote
5
down vote

favorite
2









up vote
5
down vote

favorite
2






2





I have a GTX 750 ti and I'm using Ubuntu 18.04. I have never had problems before with graphics drivers not working well. So before I installed drivers, I was getting massive amounts of screen tearing and lag. Afterwards, I still notice a lot of lag in animations (clicking "Show Applications", maximizing windows, minimizing windows, etc.) and sometimes when moving windows around or resizing them. When scrolling through web pages on browsers it will lag and I notice screen tearing. I have tried installing many different drivers, including the nvidia-375 and nvidia-384 drivers that are in the default Ubuntu repository. I also tried using drivers from the Graphics Drivers repo (https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa). No matter what I do, it never gets rid of lag in the animations or screen tearing within browsers.







share|improve this question












I have a GTX 750 ti and I'm using Ubuntu 18.04. I have never had problems before with graphics drivers not working well. So before I installed drivers, I was getting massive amounts of screen tearing and lag. Afterwards, I still notice a lot of lag in animations (clicking "Show Applications", maximizing windows, minimizing windows, etc.) and sometimes when moving windows around or resizing them. When scrolling through web pages on browsers it will lag and I notice screen tearing. I have tried installing many different drivers, including the nvidia-375 and nvidia-384 drivers that are in the default Ubuntu repository. I also tried using drivers from the Graphics Drivers repo (https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa). No matter what I do, it never gets rid of lag in the animations or screen tearing within browsers.









share|improve this question











share|improve this question




share|improve this question










asked Apr 30 at 2:13









yeah_oh_yeah

4116




4116











  • Have you removed all 3rd party repositories that deal with video drivers and just tried installing the nvidia-drivers-390 from the Ubuntu repositories instead? I could not get the graphics-drivers ppa to work properly. The only ones were from Ubuntu themselves.
    – Terrance
    Apr 30 at 4:56











  • For me sudo ubuntu-drivers autoinstall did the job. Check this link for more options.
    – Cleb
    Jun 16 at 22:39










  • Removing all 3rd party repos and reinstalling nvidia-drivers-390 does not solve the issue.
    – Alexandre Verri
    Jul 23 at 20:22
















  • Have you removed all 3rd party repositories that deal with video drivers and just tried installing the nvidia-drivers-390 from the Ubuntu repositories instead? I could not get the graphics-drivers ppa to work properly. The only ones were from Ubuntu themselves.
    – Terrance
    Apr 30 at 4:56











  • For me sudo ubuntu-drivers autoinstall did the job. Check this link for more options.
    – Cleb
    Jun 16 at 22:39










  • Removing all 3rd party repos and reinstalling nvidia-drivers-390 does not solve the issue.
    – Alexandre Verri
    Jul 23 at 20:22















Have you removed all 3rd party repositories that deal with video drivers and just tried installing the nvidia-drivers-390 from the Ubuntu repositories instead? I could not get the graphics-drivers ppa to work properly. The only ones were from Ubuntu themselves.
– Terrance
Apr 30 at 4:56





Have you removed all 3rd party repositories that deal with video drivers and just tried installing the nvidia-drivers-390 from the Ubuntu repositories instead? I could not get the graphics-drivers ppa to work properly. The only ones were from Ubuntu themselves.
– Terrance
Apr 30 at 4:56













For me sudo ubuntu-drivers autoinstall did the job. Check this link for more options.
– Cleb
Jun 16 at 22:39




For me sudo ubuntu-drivers autoinstall did the job. Check this link for more options.
– Cleb
Jun 16 at 22:39












Removing all 3rd party repos and reinstalling nvidia-drivers-390 does not solve the issue.
– Alexandre Verri
Jul 23 at 20:22




Removing all 3rd party repos and reinstalling nvidia-drivers-390 does not solve the issue.
– Alexandre Verri
Jul 23 at 20:22










1 Answer
1






active

oldest

votes

















up vote
0
down vote













OK now i can say this is 95% solved,



∘ 1/ The real problem comes down to Refresh Rate and Sync Rate of the Nvidia card and the screen(s)



‣ With nvidia-prime then there is no possibility of vsync yet - arghhhh



With Nvidia's drivers for linux and"Optimus" cards they left out the simple code to do this to save resources for the masses - STUPID!!!!!



‣ Get PRIME Synchronization on Optimus



Solution (now for none specific Nvidia Drivers - AWESOME!)



To check if it (Synchronization) is set or not set use this command:



sudo cat /sys/module/nvidia_drm/parameters/modeset



∘ It should say "y" for modeset=1, which means it is synchronized at 60 fps (I believe) for your Monitor. ... ex. HDMI-1-1, or eDP-1-1

∘ If Not - Create a new file in /etc/modprobe.d/nvidia-drm-nomodeset.conf


sudo gedit /etc/modprobe.d/nvidia-drm-nomodeset.conf



∘ and make sure the following line is present;




options nvidia-drm modeset=1
∘ after Update Intramfs and Reboot




sudo update-initramfs -u
• reboot



ALSO reducing Swappiness may help
to lower swappiness also (if you have lots of RAM)...



∘ To check the swappiness value (default=60)




$ cat /proc/sys/vm/swappiness




sudo gedit /etc/sysctl.conf



‣ Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:




# sharply reduce Swappiness inclination



vm.swappiness=1







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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1029926%2fubuntu-18-04-after-installing-nvidia-graphics-drivers-still-getting-lag%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    OK now i can say this is 95% solved,



    ∘ 1/ The real problem comes down to Refresh Rate and Sync Rate of the Nvidia card and the screen(s)



    ‣ With nvidia-prime then there is no possibility of vsync yet - arghhhh



    With Nvidia's drivers for linux and"Optimus" cards they left out the simple code to do this to save resources for the masses - STUPID!!!!!



    ‣ Get PRIME Synchronization on Optimus



    Solution (now for none specific Nvidia Drivers - AWESOME!)



    To check if it (Synchronization) is set or not set use this command:



    sudo cat /sys/module/nvidia_drm/parameters/modeset



    ∘ It should say "y" for modeset=1, which means it is synchronized at 60 fps (I believe) for your Monitor. ... ex. HDMI-1-1, or eDP-1-1

    ∘ If Not - Create a new file in /etc/modprobe.d/nvidia-drm-nomodeset.conf


    sudo gedit /etc/modprobe.d/nvidia-drm-nomodeset.conf



    ∘ and make sure the following line is present;




    options nvidia-drm modeset=1
    ∘ after Update Intramfs and Reboot




    sudo update-initramfs -u
    • reboot



    ALSO reducing Swappiness may help
    to lower swappiness also (if you have lots of RAM)...



    ∘ To check the swappiness value (default=60)




    $ cat /proc/sys/vm/swappiness




    sudo gedit /etc/sysctl.conf



    ‣ Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:




    # sharply reduce Swappiness inclination



    vm.swappiness=1







    share|improve this answer
























      up vote
      0
      down vote













      OK now i can say this is 95% solved,



      ∘ 1/ The real problem comes down to Refresh Rate and Sync Rate of the Nvidia card and the screen(s)



      ‣ With nvidia-prime then there is no possibility of vsync yet - arghhhh



      With Nvidia's drivers for linux and"Optimus" cards they left out the simple code to do this to save resources for the masses - STUPID!!!!!



      ‣ Get PRIME Synchronization on Optimus



      Solution (now for none specific Nvidia Drivers - AWESOME!)



      To check if it (Synchronization) is set or not set use this command:



      sudo cat /sys/module/nvidia_drm/parameters/modeset



      ∘ It should say "y" for modeset=1, which means it is synchronized at 60 fps (I believe) for your Monitor. ... ex. HDMI-1-1, or eDP-1-1

      ∘ If Not - Create a new file in /etc/modprobe.d/nvidia-drm-nomodeset.conf


      sudo gedit /etc/modprobe.d/nvidia-drm-nomodeset.conf



      ∘ and make sure the following line is present;




      options nvidia-drm modeset=1
      ∘ after Update Intramfs and Reboot




      sudo update-initramfs -u
      • reboot



      ALSO reducing Swappiness may help
      to lower swappiness also (if you have lots of RAM)...



      ∘ To check the swappiness value (default=60)




      $ cat /proc/sys/vm/swappiness




      sudo gedit /etc/sysctl.conf



      ‣ Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:




      # sharply reduce Swappiness inclination



      vm.swappiness=1







      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        OK now i can say this is 95% solved,



        ∘ 1/ The real problem comes down to Refresh Rate and Sync Rate of the Nvidia card and the screen(s)



        ‣ With nvidia-prime then there is no possibility of vsync yet - arghhhh



        With Nvidia's drivers for linux and"Optimus" cards they left out the simple code to do this to save resources for the masses - STUPID!!!!!



        ‣ Get PRIME Synchronization on Optimus



        Solution (now for none specific Nvidia Drivers - AWESOME!)



        To check if it (Synchronization) is set or not set use this command:



        sudo cat /sys/module/nvidia_drm/parameters/modeset



        ∘ It should say "y" for modeset=1, which means it is synchronized at 60 fps (I believe) for your Monitor. ... ex. HDMI-1-1, or eDP-1-1

        ∘ If Not - Create a new file in /etc/modprobe.d/nvidia-drm-nomodeset.conf


        sudo gedit /etc/modprobe.d/nvidia-drm-nomodeset.conf



        ∘ and make sure the following line is present;




        options nvidia-drm modeset=1
        ∘ after Update Intramfs and Reboot




        sudo update-initramfs -u
        • reboot



        ALSO reducing Swappiness may help
        to lower swappiness also (if you have lots of RAM)...



        ∘ To check the swappiness value (default=60)




        $ cat /proc/sys/vm/swappiness




        sudo gedit /etc/sysctl.conf



        ‣ Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:




        # sharply reduce Swappiness inclination



        vm.swappiness=1







        share|improve this answer












        OK now i can say this is 95% solved,



        ∘ 1/ The real problem comes down to Refresh Rate and Sync Rate of the Nvidia card and the screen(s)



        ‣ With nvidia-prime then there is no possibility of vsync yet - arghhhh



        With Nvidia's drivers for linux and"Optimus" cards they left out the simple code to do this to save resources for the masses - STUPID!!!!!



        ‣ Get PRIME Synchronization on Optimus



        Solution (now for none specific Nvidia Drivers - AWESOME!)



        To check if it (Synchronization) is set or not set use this command:



        sudo cat /sys/module/nvidia_drm/parameters/modeset



        ∘ It should say "y" for modeset=1, which means it is synchronized at 60 fps (I believe) for your Monitor. ... ex. HDMI-1-1, or eDP-1-1

        ∘ If Not - Create a new file in /etc/modprobe.d/nvidia-drm-nomodeset.conf


        sudo gedit /etc/modprobe.d/nvidia-drm-nomodeset.conf



        ∘ and make sure the following line is present;




        options nvidia-drm modeset=1
        ∘ after Update Intramfs and Reboot




        sudo update-initramfs -u
        • reboot



        ALSO reducing Swappiness may help
        to lower swappiness also (if you have lots of RAM)...



        ∘ To check the swappiness value (default=60)




        $ cat /proc/sys/vm/swappiness




        sudo gedit /etc/sysctl.conf



        ‣ Search for vm.swappiness and change its value as desired. If vm.swappiness does not exist, add it to the end of the file like so:




        # sharply reduce Swappiness inclination



        vm.swappiness=1








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 7 at 15:35









        markackerman8-gmail.com

        503510




        503510



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1029926%2fubuntu-18-04-after-installing-nvidia-graphics-drivers-still-getting-lag%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491