Linux custom refresh rate

Arch Linux

You are not logged in.

#1 2016-03-23 13:31:43

[SOLVED] Setting refresh rate

Yesterday I’ve installed Arch on my machine. The installation went well and I understood what was happening. A big change from Ubuntu!

Anyway, I installed all my drivers and everything seems to work. I do have an issue with setting the refresh rate of my monitor. The system defaults to 60Hz at 1080p, but my monitor is a 144Hz monitor.

I know the refresh rate works, because if I execute ‘arandr -r 144’ the screen switches to 144Hz. However, after a reboot it’s back at 60Hz.

I created a /etc/X11/xorg.conf.d/10-monitor.conf file with the following contents:

Section «Monitor»
Identifier «Monitor0»
EndSection

Section «Device»
Identifier «Device0»
Driver «amdgpu» #Choose the driver used for this monitor
EndSection

Section «Screen»
Identifier «Screen0» #Collapse Monitor and Device section to Screen section
Device «Device0»
Monitor «Monitor0»
DefaultDepth 24 #Choose the depth (16||24)
SubSection «Display»
Depth 24
Modes «1920x1800_144.00» #Choose the resolution
EndSubSection
EndSection

After this, I can’t login. After entering my password, the screen becomes black and then reverts to the login screen.

Any ideas how I can handle this issue? Thanks!

Specs:
AMD Radeon R9 380 with AMDGPU drivers
iiyama GB2488HSU-B2 monitor

Last edited by G-Force (2016-03-25 17:18:49)

Источник

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.»
Читайте также:  Oracle java jdk windows downloads

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.

Читайте также:  No amd graphics driver is installed windows 10 что делать

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.

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.

Читайте также:  Как снести все с ноутбука кроме windows

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

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

Custom refresh rates using xrandr

Custom refresh rates using xrandr

Post by Kvasir » Sat Oct 10, 2015 7:03 am

I’d like to run mint because getting the AMD proprietary drivers to work in arch is kind of a hassle. I cannot switch back to the open source drivers to test if that might be the problem(Cinnamon falls back into software rendering). If anyone has a great idea how to go further with this it would be greatly appreciated!

Re: Custom refresh rates using xrandr

Post by roblm » Sat Oct 10, 2015 8:44 am

Re: Custom refresh rates using xrandr

Post by Kvasir » Sat Oct 10, 2015 11:19 am

Re: Custom refresh rates using xrandr

Post by roblm » Sat Oct 10, 2015 12:12 pm

From reading that, I thought you might want to first correct the problem of not being able to restore the radeon driver:

Sometimes adding the correct Horizontal and Vertical frequency range values to the xorg.conf file will allow the xrandr commands to work in creating a new mode.
Use this command to create the xorg.conf file:

Log out and back in. Then use the xrandr commands again to try creating the 2560x1440_96.00 mode.

If there is a startup problem and you can’t get to the desktop, then reboot and select Recovery Mode at the GRUB boot menu. If no menu shows, then hold down the
Shift key while starting, or keep tapping the key. In the menu, select “ root — drop to root shell prompt”. When asked for the root password, just type your user
password. Then change the file permissions to read and write by typing:

Then type: reboot
You’ll go back to the Recovery Mode menu. Don’t click anything, just wait about 7 seconds for the reboot.

Источник

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