How to limit frame-rate for all games on Linux?Chrome, Linux Mint, Low FPS in gamesLenovo Ideapad 330-15ICH...

Could the Missouri River be running while Lake Michigan was frozen several meters deep?

California: "For quality assurance, this phone call is being recorded"

What are the words for people who cause trouble believing they know better?

Do I include animal companions when calculating difficulty of an encounter?

What does War Machine's "Canopy! Canopy!" line mean in "Avengers: Endgame"?

Chopin: marche funèbre bar 15 impossible place

What is the purpose of building foundations?

Can a magnetic field of an object be stronger than its gravity?

Do adult Russians normally hand-write Cyrillic as cursive or as block letters?

Applicants clearly not having the skills they advertise

How to make thick Asian sauces?

What are they doing to this poor rocket?

Pros and cons of writing a book review?

How bad would a partial hash leak be, realistically?

I wrote a scene that the majority of my readers loved. How do I get back to that place while writing my new book?

How were concentration and extermination camp guards recruited?

Why is the relationship between frequency and pitch exponential?

Opposite of "Squeaky wheel gets the grease"

What are the words for people who cause trouble believing they know better?

The ring of global sections of a regular scheme

PhD student with mental health issues and bad performance

Building a road to escape Earth's gravity by making a pyramid on Antartica

Poisson distribution: why does time between events follow an exponential distribution?

Convert camelCase and PascalCase to Title Case



How to limit frame-rate for all games on Linux?


Chrome, Linux Mint, Low FPS in gamesLenovo Ideapad 330-15ICH overheats in Kubuntu 18.04 only






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







1















System



Linux Mint 19.1 Cinnamon 64-bit, based on Ubuntu 18.04 LTS.





Related Hardware




  • CPU: Intel Core i7-7700HQ (Ark Intel)


  • GPU: NVIDIA GeForce GTX 1060 6GB (Max-Q Design)


  • Screen: 4K laptop 15.6 inch display (UHD 3840 x 2160)





Problem



There are about 200 - 300 FPS while playing any non-GPU-heavy game, so I'm thinking there is a lot of power being wasted, and my hardware is overheating if such a game is in the foreground for many hours straight. Additionally, even if you don't pay the electricity bills, I think my hardware is more prone to fault if playing on a maximum frame-rate, which in ordinary games can be the above stated, hardly believable, 300 FPS.





Question



How can I set an FPS limit for all games on my Nvidia-based hardware? If not possible, such games are for instance Hexcells franchise to name a few.










share|improve this question































    1















    System



    Linux Mint 19.1 Cinnamon 64-bit, based on Ubuntu 18.04 LTS.





    Related Hardware




    • CPU: Intel Core i7-7700HQ (Ark Intel)


    • GPU: NVIDIA GeForce GTX 1060 6GB (Max-Q Design)


    • Screen: 4K laptop 15.6 inch display (UHD 3840 x 2160)





    Problem



    There are about 200 - 300 FPS while playing any non-GPU-heavy game, so I'm thinking there is a lot of power being wasted, and my hardware is overheating if such a game is in the foreground for many hours straight. Additionally, even if you don't pay the electricity bills, I think my hardware is more prone to fault if playing on a maximum frame-rate, which in ordinary games can be the above stated, hardly believable, 300 FPS.





    Question



    How can I set an FPS limit for all games on my Nvidia-based hardware? If not possible, such games are for instance Hexcells franchise to name a few.










    share|improve this question



























      1












      1








      1


      1






      System



      Linux Mint 19.1 Cinnamon 64-bit, based on Ubuntu 18.04 LTS.





      Related Hardware




      • CPU: Intel Core i7-7700HQ (Ark Intel)


      • GPU: NVIDIA GeForce GTX 1060 6GB (Max-Q Design)


      • Screen: 4K laptop 15.6 inch display (UHD 3840 x 2160)





      Problem



      There are about 200 - 300 FPS while playing any non-GPU-heavy game, so I'm thinking there is a lot of power being wasted, and my hardware is overheating if such a game is in the foreground for many hours straight. Additionally, even if you don't pay the electricity bills, I think my hardware is more prone to fault if playing on a maximum frame-rate, which in ordinary games can be the above stated, hardly believable, 300 FPS.





      Question



      How can I set an FPS limit for all games on my Nvidia-based hardware? If not possible, such games are for instance Hexcells franchise to name a few.










      share|improve this question
















      System



      Linux Mint 19.1 Cinnamon 64-bit, based on Ubuntu 18.04 LTS.





      Related Hardware




      • CPU: Intel Core i7-7700HQ (Ark Intel)


      • GPU: NVIDIA GeForce GTX 1060 6GB (Max-Q Design)


      • Screen: 4K laptop 15.6 inch display (UHD 3840 x 2160)





      Problem



      There are about 200 - 300 FPS while playing any non-GPU-heavy game, so I'm thinking there is a lot of power being wasted, and my hardware is overheating if such a game is in the foreground for many hours straight. Additionally, even if you don't pay the electricity bills, I think my hardware is more prone to fault if playing on a maximum frame-rate, which in ordinary games can be the above stated, hardly believable, 300 FPS.





      Question



      How can I set an FPS limit for all games on my Nvidia-based hardware? If not possible, such games are for instance Hexcells franchise to name a few.







      linux-mint nvidia performance graphics






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 6 mins ago







      Vlastimil

















      asked 16 hours ago









      VlastimilVlastimil

      8,7841769155




      8,7841769155






















          1 Answer
          1






          active

          oldest

          votes


















          1
















          Important Notice



          Disclaimer: This solution has been verified and tested only on one Ubuntu 18.04 based system. If you have an older one, DO NOT FOLLOW; use caution on newer versions too.





          Solution for Ubuntu 18.04 based systems



          This solution utilizes V-Sync (Vertical Synchronization). If you don't like using it, this solution is not for you.



          Thank you, Xander, for the comment on enabling V-Sync. With this hint, I was able to find out, that I only need to do the following steps.





          1. Create the following new (if not yet existing) file in your favorite text editor:



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



          2. Put this single line in there, save and close the file; in case the file exists already, then ensure this line is there:



            options nvidia-drm modeset=1



          3. Update all of your initramfs images with:



            sudo update-initramfs -u -k all


            or if you only want to test it, you can update just the latest image with:



            sudo update-initramfs -u


          4. Reboot your system.



          5. The V-Sync shall be on now, verify with:



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


            It will say:





            • Y


              if V-Sync is On




            • N


              if V-Sync is Off








          You should be done now, capped to your monitor refresh rate (usually 60).



          In spite, I am satisfied with this solution, feel free to add your own (AMD-specific, Intel-specific, whatever...)






          share|improve this answer


























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f522143%2fhow-to-limit-frame-rate-for-all-games-on-linux%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









            1
















            Important Notice



            Disclaimer: This solution has been verified and tested only on one Ubuntu 18.04 based system. If you have an older one, DO NOT FOLLOW; use caution on newer versions too.





            Solution for Ubuntu 18.04 based systems



            This solution utilizes V-Sync (Vertical Synchronization). If you don't like using it, this solution is not for you.



            Thank you, Xander, for the comment on enabling V-Sync. With this hint, I was able to find out, that I only need to do the following steps.





            1. Create the following new (if not yet existing) file in your favorite text editor:



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



            2. Put this single line in there, save and close the file; in case the file exists already, then ensure this line is there:



              options nvidia-drm modeset=1



            3. Update all of your initramfs images with:



              sudo update-initramfs -u -k all


              or if you only want to test it, you can update just the latest image with:



              sudo update-initramfs -u


            4. Reboot your system.



            5. The V-Sync shall be on now, verify with:



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


              It will say:





              • Y


                if V-Sync is On




              • N


                if V-Sync is Off








            You should be done now, capped to your monitor refresh rate (usually 60).



            In spite, I am satisfied with this solution, feel free to add your own (AMD-specific, Intel-specific, whatever...)






            share|improve this answer






























              1
















              Important Notice



              Disclaimer: This solution has been verified and tested only on one Ubuntu 18.04 based system. If you have an older one, DO NOT FOLLOW; use caution on newer versions too.





              Solution for Ubuntu 18.04 based systems



              This solution utilizes V-Sync (Vertical Synchronization). If you don't like using it, this solution is not for you.



              Thank you, Xander, for the comment on enabling V-Sync. With this hint, I was able to find out, that I only need to do the following steps.





              1. Create the following new (if not yet existing) file in your favorite text editor:



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



              2. Put this single line in there, save and close the file; in case the file exists already, then ensure this line is there:



                options nvidia-drm modeset=1



              3. Update all of your initramfs images with:



                sudo update-initramfs -u -k all


                or if you only want to test it, you can update just the latest image with:



                sudo update-initramfs -u


              4. Reboot your system.



              5. The V-Sync shall be on now, verify with:



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


                It will say:





                • Y


                  if V-Sync is On




                • N


                  if V-Sync is Off








              You should be done now, capped to your monitor refresh rate (usually 60).



              In spite, I am satisfied with this solution, feel free to add your own (AMD-specific, Intel-specific, whatever...)






              share|improve this answer




























                1












                1








                1









                Important Notice



                Disclaimer: This solution has been verified and tested only on one Ubuntu 18.04 based system. If you have an older one, DO NOT FOLLOW; use caution on newer versions too.





                Solution for Ubuntu 18.04 based systems



                This solution utilizes V-Sync (Vertical Synchronization). If you don't like using it, this solution is not for you.



                Thank you, Xander, for the comment on enabling V-Sync. With this hint, I was able to find out, that I only need to do the following steps.





                1. Create the following new (if not yet existing) file in your favorite text editor:



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



                2. Put this single line in there, save and close the file; in case the file exists already, then ensure this line is there:



                  options nvidia-drm modeset=1



                3. Update all of your initramfs images with:



                  sudo update-initramfs -u -k all


                  or if you only want to test it, you can update just the latest image with:



                  sudo update-initramfs -u


                4. Reboot your system.



                5. The V-Sync shall be on now, verify with:



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


                  It will say:





                  • Y


                    if V-Sync is On




                  • N


                    if V-Sync is Off








                You should be done now, capped to your monitor refresh rate (usually 60).



                In spite, I am satisfied with this solution, feel free to add your own (AMD-specific, Intel-specific, whatever...)






                share|improve this answer

















                Important Notice



                Disclaimer: This solution has been verified and tested only on one Ubuntu 18.04 based system. If you have an older one, DO NOT FOLLOW; use caution on newer versions too.





                Solution for Ubuntu 18.04 based systems



                This solution utilizes V-Sync (Vertical Synchronization). If you don't like using it, this solution is not for you.



                Thank you, Xander, for the comment on enabling V-Sync. With this hint, I was able to find out, that I only need to do the following steps.





                1. Create the following new (if not yet existing) file in your favorite text editor:



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



                2. Put this single line in there, save and close the file; in case the file exists already, then ensure this line is there:



                  options nvidia-drm modeset=1



                3. Update all of your initramfs images with:



                  sudo update-initramfs -u -k all


                  or if you only want to test it, you can update just the latest image with:



                  sudo update-initramfs -u


                4. Reboot your system.



                5. The V-Sync shall be on now, verify with:



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


                  It will say:





                  • Y


                    if V-Sync is On




                  • N


                    if V-Sync is Off








                You should be done now, capped to your monitor refresh rate (usually 60).



                In spite, I am satisfied with this solution, feel free to add your own (AMD-specific, Intel-specific, whatever...)







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 3 hours ago

























                answered 16 hours ago









                VlastimilVlastimil

                8,7841769155




                8,7841769155






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f522143%2fhow-to-limit-frame-rate-for-all-games-on-linux%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

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...