Mint 19.2 Cinnamon random refresh rate change

I’ve used Mint cinnamon since the 17.x days ( current on mint 19.2), and as far as I can remember in cinnamon, one must use xrandr to set a refresh rate higher than 60hz. If there is an alternative or better method…PLEASE let me know as my googling keeps deadending with xrandr.

Thus my command is xrandr --output DisplayPort-0 --mode 2560x1440 --rate 144 for my particular setup.

Every boot up it works correctly. HOWEVER, more often lately when I’m alt tabbing between chrome and something else or even when I’m not and am just watching a youtube video or just reading text on a web-page, my system will randomly auto-change the stupid refresh rate from 144hz back to 60hz.

Is there a way to tell lightdm ( the default display manager in mint 19.1 and 19.2) a way to prevent this or autocorrect-instantly this problem…perhaps some type of file edit ( such as xorg when using an nvidia video card)? Or is there something else I’m missing? I’ve looked through what I think are all of the lightdm files but nothing talks about a refresh rate.

Also , unlike in Mate and possibly other desktop environments, “Display” gui menu/settings selection does not give an option to change the refresh rate. ( way to go Cinnamon developers!! It’s only been how many years without this option while Mate has had it …how long?? -_- )

This is the kind of crap that pushes me back to windows and I’m trying to stay away from Micro#$t’s data mining.

Also, It doesn’t matter for what amount time I set the delay to for the 144hz mode command or even any at all. Is there something critical I’m missing here? Please help.

Hardware:

Monitor = acer XF270HU 2560x1440p 144hz monitor

Video card = rx 580 8GB sapphire nitro+ \

mesa info = (when using glxinfo | grep “OpenGL version”) OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.2.0-devel (git-9c59751 2019-08-10 bionic-oibaf-ppa)

vulkan info = Vulkan Instance Version: 1.1.101

<---- inxi - Fxz info below ---->
$ inxi -Fxz
System: Host: tpcs-desktop Kernel: 5.2.8-050208-generic x86_64 bits: 64 compiler: gcc v: 9.1.0 Desktop: Cinnamon 4.2.3
Distro: Linux Mint 19.2 Tina base: Ubuntu 18.04 bionic
Machine: Type: Desktop Mobo: ASRock model: Z97M Pro4 serial: UEFI [Legacy]: American Megatrends v: P2.20
date: 03/07/2018
CPU: Topology: Quad Core model: Intel Core i7-4790K bits: 64 type: MT MCP arch: Haswell rev: 3 L2 cache: 8192 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 63997
Speed: 4601 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 4600 2: 4600 3: 4601 4: 4604 5: 4612 6: 4600
7: 4602 8: 4604
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X]
vendor: Sapphire Limited Nitro+ driver: amdgpu v: kernel bus ID: 01:00.0
Display: x11 server: X.Org 1.19.6 driver: amdgpu,ati unloaded: fbdev,modesetting,radeon,vesa tty: N/A
OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.32.0 5.2.8-050208-generic LLVM 9.0.0)
v: 4.5 Mesa 19.2.0-devel (git-914ecc9 2019-08-12 bionic-oibaf-ppa) direct render: Yes
Audio: Device-1: Intel 9 Series Family HD Audio vendor: ASRock driver: snd_hda_intel v: kernel bus ID: 00:1b.0
Device-2: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 580] vendor: Sapphire Limited
driver: snd_hda_intel v: kernel bus ID: 01:00.1
Sound Server: ALSA v: k5.2.8-050208-generic
Network: Device-1: Intel Ethernet I218-V vendor: ASRock driver: e1000e v: 3.2.6-k port: f040 bus ID: 00:19.0
IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac:
Drives: Local Storage: total: 953.87 GiB used: 684.51 GiB (71.8%)
ID-1: /dev/sda vendor: Micron model: 1100 MTFDDAK1T0TBN size: 953.87 GiB
Partition: ID-1: / size: 937.90 GiB used: 684.51 GiB (73.0%) fs: ext4 dev: /dev/sda1
Sensors: System Temperatures: cpu: 43.0 C mobo: 33.0 C gpu: amdgpu temp: 37 C
Fan Speeds (RPM): fan-1: 0 fan-2: 1384 fan-3: 0 fan-4: 705 fan-5: 0 gpu: amdgpu fan: 895
Voltages: 12v: N/A 5v: N/A 3.3v: 3.38 vbat: 3.30
Info: Processes: 276 Uptime: 1h 41m Memory: 15.62 GiB used: 2.45 GiB (15.7%) Init: systemd runlevel: 5 Compilers:
gcc: 7.4.0 Shell: bash v: 4.4.20 inxi: 3.0.32

A search for the thread title brought up a Reddit post saying:

~/.config/monitors.xml

Change the value there an log out and in again.

Edit: Alternatively you could disable the “Cinnamon Settings Daemon - xrandr” (which applies this file on login) and set 144 Hz in the nvidia settings (or using xrandr), don’t know if this method keeps the settings after reboot. I just edited my monitors.xml.

Supposedly if you use the Displays tool in Mint it will generate a monitors.xml in your .config folder. If one already exists and has a different resolution set then that could be the issue. I don’t see any example files and I’m not on Mint to confirm. I also see a mention on the Arch Wiki that says to “Poke around with ~/.config/monitors.xml, or delete the file completely, and then reboot.”

https://wiki.archlinux.org/index.php/Xrandr#Screen_resolution_reverts_back_after_a_blink

Edit - I found an example:

2 Likes

KleerKut, checking the Displays tool generated the file after I clicked Apply Button. :smiley:

I checked out the file, it showed 144 rate…so I File, Saved it, logged out off cinnamon with " cinnamon-session-quit" and selected Log Out, then logged back in. So far today, the refresh rate remains at 144hz.

I’ll reply back if the problem persists. Thanks for the info. Cheers.

4 Likes

Yeap…That seems to have fixed the problem. Every time I log out of cinnamon and back in…OR completely restart the PC, it just works as it should. Thank ya much good man. Cheers!

2 Likes