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.

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:


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...)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.