Change refresh rate linux

Variable refresh rate

Variable refresh rate (VRR), also referred to as adaptive sync, allows the monitor to adjust its refresh rate to the output signal. This allows for games to eliminate screen tearing with less of the usual downsides of Vsync (such as stuttering). For a comprehensive look at VRR see PC Gaming Wiki.

Contents

Overview

There are multiple implementations of VRR:

  • FreeSync is AMD’s implementation of VESA’s VRR standard, and the phrases are often used interchangeably. FreeSync branded monitors should be compatible with all VESA compatible drivers.
  • Gsync is NVIDIA’s proprietary hardware and software implementation of VRR.
  • Intel plans on implementing VESA’s standard in their upcoming 11th Gen and dedicated GPUs. [1]

VRR compatibility and implementations

Driver VESA Gsync
AMDGPU FreeSync No
Intel Planned No
Nouveau Not Supported Not Supported
NVIDIA Gsync Compatible Gsync

Xorg configuration

Enable on AMDGPU

If you are using a laptop, you can check if your laptop is compatible with FreeSync.

Using an Xorg conf file

Add the line to your AMDGPU .conf file in the Section «Device» block:

Verify vrr_capable is set to 1 using xrandr:

xrandr will show the properties for all video output ports; make sure to look at the one that’s actually connected to your monitor — the other outputs will report vrr_capable: 0.

Enable on NVIDIA

Using a Xorg conf file

This article or section needs expansion.

Via nvidia-settings

Gsync monitors should automatically be enabled. To enable Gsync compatible monitors do the following:

  • In nvidia-settings go to the «X Server Display Configuration» page, then under the Advanced button is the option to «Allow G-SYNC on monitor not validated as G-SYNC Compatible». Then click apply.
  • Now, under OpenGL settings, check «Allow Gsync/Gsync Compatible.»

Wayland configuration

KDE Wayland should automatically enable VRR for full screen applications [2].

Sway supports variable refresh rate as of version 1.5. To enable it for all of your outputs you can add the following to the sway config, or apply the setting to on a per output basis:

You can verify that your display supports adaptive sync with swaymsg:

Testing

VRRTest is a simple testing tool which should work for FreeSync and G-Sync. Install vrrtest-git AUR or, manually install love package, clone repository, then run $ love /path/to/cloned/repository .

With VRR off, if the application’s FPS is less than the monitor’s native refresh rate then the bars will stutter a lot since frames are being skipped. With VRR active, the bars will always move smoothly across the screen since the screen’s refresh rate will match the application’s refresh rate. Even with VRR functional you may experience tearing in which case you can also enable the TearFree option for AMDGPU; with both enabled there should be neither stuttering nor tearing (what is the nvidia equivalent?).

If you are using a Nvidia GPU, you can test Gsync compatibility with gl-gsync-demo AUR . This program will allow you to test VRR and Vsync so you can observe resulting effects. See project’s Readme for more information.

Читайте также:  Сборка линукс для работы

According to this page: «gl-gsync-demo is made with G-SYNC but that does not matter, it will test AMD adaptive sync just fine». However, it may still not work as expected for FreeSync testing.

Change VRR Range of a FreeSync Monitor

Freesync monitors usually have a limited range for VRR that are much lower than their max refresh rate. It should be possible to overclock the monitor to change the Freesync range.

Editing the EDID File

External Display Identification Data (EDID) stores driver information about your monitor. By default, this file is sent by your monitor and read on connect. You will need to extract this file using something like read-edid or nvidia-settings .

You can edit this file with wxedid AUR

This article or section needs expansion.

You may follow one of the guides of people changing the freesync range on Windows: [3][4]

Process of overclocking on Linux (works only on NVidia GPUs): [5]

Make a Xorg .conf file for your monitor and add a path to the custom EDID file you have edited. See xrandr to find find out the other information about your monitor.

Tips and Tricks

Remove applications from Blacklist

Mesa has a list of blacklisted applications to avoid unexpected behavior, you can edit this blacklist here:

Источник

Delightly Linux

How to Set the Default Monitor Refresh Rate

📅 September 15, 2017
“How can I make Linux Mint default to 100Hz for my fancy ultrawide monitor?”

If you are using a high-end monitor with Linux, such as the Acer Predator X34, that supports refresh rates higher than 60Hz, then you have probably noticed that Linux Mint defaults to a high refresh rate (100Hz if overclocked) at the login screen, but returns to a lower refresh rate (50Hz or 60Hz) after showing the desktop.

Sure, you can change the refresh rate to 100Hz manually using the Nvidia control panel, but this is a minor inconvenience that must be performed upon each boot.

“Is there a way to make the change persistent across reboots so I can always startup with, say, 80Hz?”

Yes. This article shows how to set a default refresh rate in Linux Mint 18.2 with the proprietary Nvidia drivers installed. The change is persistent across reboots. While this article uses the Acer Predator X34 overclocked to 100Hz, the same method should apply to any other monitor if using Nvidia drivers.

The Beginning

This article is based around an Nvidia-based graphics card with the Nvidia proprietary driver installed (version 384.69 as of the time of this writing). nvidia-settings is also installed.

For the Predator X34, it has been overclocked to 100Hz from the monitor’s menu, so it will support any refresh rate up to 100Hz. The monitor is connected to an Nvidia graphics card via the DisplayPort.

Step 1. Open nvidia-settings as root

This opens the NVIDIA X Server Settings.

Select X Server Display Configuration from the left menu so the Layout panel appears as shown.

X Server Display Configuration allows you to change the resolution and refresh rate.

Look at the Resolution field. It will probably be set to Auto. We need to change this to a manual resolution. Change the resolution here at your desired resolution. In this case, it is 3440×1440 for the Predator X34.

To the right of the resolution setting is the refresh rate. Change this rate to the refresh rate you want. In this case, 80Hz was chosen because that rate removes the dreaded scanline effect that the X34 exhibits at lower resolutions. Higher rates, such as 100Hz will also work. The setting you choose will be the refresh rate used after you log in to the desktop.

Читайте также:  Билл гейтс один создал windows

You can click Apply now to test and change the rate.

Step 2. Save to xorg.conf

While still at the same panel, click Save to X Configuration File. We need to save the changes made here to xorg.conf located at /etc/X11/xorg.conf. Since this is a system-level file, we need root permission to access it, which is why we opened nvidia-settings as root earlier. If not, you will be prompted for the root password.

Go ahead an overwrite xorg.conf. If there is anything you need to preserve or if you are concerned that you might make errors leading to a terminal boot, then make a backup copy of xorg.conf first.

After xorg.conf is updated, you might need to make further edits for other hardware in xorg.conf. For example, if you are using an M.M.O.7 mouse, then you must add the proper InputClass to avoid the unresponsive button issue that still plagues this mouse when used with Linux. Be sure to remove the default mouse entries from xorg.conf.

xorg.conf

If you look at xorg.conf, the line that changes the default resolution is located within Section “Screen”

The 3440x1440_80 sets the refresh rate to 80Hz. You could change this to other rates, such as 3440x1440_100 for 100Hz. If you only need to change the refresh rate, you could edit this line manually in order to avoid making additional changes to xorg.conf for custom hardware like the M.M.O.7. Otherwise, it is probably best to use nvidia-settings to alter xorg.conf.

Step 2. Change the Display Settings

Open the Linux Mint System Settings and select Display. The Display dialog appears.

Display dialog in Linux Mint System Settings.

Check that the resolution is set to match the xorg.conf/nvidia-settings resolution made in step 1. In this case, it is 3440×1440. Click Apply.

For some unknown reason, the refresh rate would not persistent between reboots until applied from the Display dialog. This seems to affect another display setting elsewhere. For my system, editing xorg.conf was not enough. I also had to apply the resolution from Display as described.

Now, Linux Mint 18.2 should automatically set the refresh rate to 80Hz (or whatever refresh rate was chosen) between reboots. There is no longer any need to manually change the refresh rate upon each boot.

If you need to adjust the refresh rate to something else, follow these steps again.

Источник

Changing refresh rate for specific monitor

I have 3 monitors, one of which is a CRT, and I need to bump up it’s refresh rate to 75/80 to get rid of the flicker, I’ve used it with my Raspberry Pi and it fully supports up to 100Hz. When I use xrandr it tries to change my 1st monitor, I want my 2nd one changed.

xrandr confirms that I can do this,

I have Intel HD Graphics 4400. Ubuntu 16.04.

2 Answers 2

Method 1

With the following command

Where the string after —output is the name of the monitor and the number after —rate is the new refresh rate

Or, if you want to make sure the resolution is correct too in the same command

See man xrandr and the following link to learn more

Method 2

You should have a file monitors.xml (

Edit the file with your favorite text editor

You will see monitors available, and you should recognize them by name.

Here’s some example information you will see about a monitor

There’s the line

Replace the current refresh rate with a new one. For example

Save the file and reboot, and the new refresh rate will take place.

NOTE: Make sure that monitor’s resolution supports the refresh rate you are going to change

Читайте также:  Современный линукс для 32 разрядной системы

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

How to change refresh rate in cinnamon?

How to change refresh rate in cinnamon?

Post by dcibel » Wed Dec 09, 2015 12:13 am

Hi all,
I am trying to set the refresh rate in cinnamon. I found the display section of the settings, however the only options available here are resolution and rotation. I think its a bit silly not to find refresh rate here.

I have to manually open the AMD control panel to set my monitor to 144Hz, however it doesn’t stick. When I log off and on again, the refresh rate is back at 60Hz. Does anyone know how to make it stick in Cinnamon? I have been using XFCE for years and had not any issue here with the refresh rate. I thought I’d give cinnamon a shot, and I rather like it so far however with some quirks, this is a big one for me.

Re: How to change refresh rate in cinnamon?

Post by Pjotr » Wed Dec 09, 2015 5:44 am

Re: How to change refresh rate in cinnamon?

Post by dcibel » Wed Dec 09, 2015 2:03 pm

Thanks for your reply.

I have run «sudo amdcccle», in fact the amd control panel needs to be run under root in order to change the refresh and resolution, otherwise they are greyed out. Weird, I know.

However, this does not survive a log out and log in. The log in screen does operate at 144Hz, however once I log in it is set back to 60Hz, I have to change it manually every time. There is some underlying setting within cinnamon causing this, I am certain.

Re: How to change refresh rate in cinnamon?

Post by texbrew » Wed Dec 09, 2015 3:26 pm

dcibel wrote: Thanks for your reply.

I have run «sudo amdcccle», in fact the amd control panel needs to be run under root in order to change the refresh and resolution, otherwise they are greyed out. Weird, I know.

However, this does not survive a log out and log in. The log in screen does operate at 144Hz, however once I log in it is set back to 60Hz, I have to change it manually every time. There is some underlying setting within cinnamon causing this, I am certain.

While I am not at all familiar with the issue of changing refresh rate, it reminds me of an irritating problem I had with a laptop being unable to remember screen brightness settings after a reboot. After scouring the web (well, 5 minutes of searching) I found a tip for adding a line to the file /etc/rc.local which by default, does nothing.

Before you change rc.local I recommend copying the original file. I just give the new copy an extension like «rc.local.bak» for «backup». This way, if I break something, it’s easy to recover the original file.

So here’s a look at my edited rc.local for that screen brightness setting:

That single line, echo 7 > /sys/class/backlight/acpi_video0/brightness fixed the screen brightness thing for me. And it was only needed on a particular machine. Another laptop running the same OS had no problem remembering brightness settings.

A little tinkering with rc.local and refresh rate settings — on your part — may be the way to make your Mint machine behave the way you want it to.

It may be helpful to include the link to the page where I found the tip for screen brightness. Though at first glance, it doesn’t appear to have anything to with screen brightness, it’s there. «StartPage» was my friend.

scroll down the page to find how to change default screen brightness on a laptop.

Источник

Оцените статью