Wayland and custom refresh rate

I just switched to Wayland which works great however on Xorg I had a custom script that set a custom refreshrate for my monitor (77hz instead of 60)

is there a noob-friendly way I can make this work on Wayland?
Thank you!

#!/bin/bash
xrandr --newmode "1920x1080_77.00" 227.00  1920 2064 2264 2608  1080 1083 1088 1131 -hsync +vsync
xrandr --addmode HDMI-A-0 1920x1080_77.00

Found this guide to add custom resolution and refresh rate when using Wayland/Gnome and this should work on KDE too:

In short you have to add a video value to GRUB_CMDLINE_LINUX_DEFAULT parameter in /etc/default/grub as root:

video=<port-name>:<resolution-w>x<resolution-h>@<refresh-rate> #format

After editing you have to update the grub entry and reboot:

sudo update-grub

wow, I’ve used the exact same guide but I didn’t really understood that you have to add this to /etc/default/grub and update with sudo update-grub afterwards.
thank you my monitor is now displaying 77hz again!

P.s.: small note for noobs like me: the default filemanager (Dolphin) can’t open folders as root.
Easiest way is to install nautilus and right click inside /etc/default/grub to open as root/admin.
Directly editing didn’t work for me, but you can edit the file somewhere else (just copy to desktop) and then replace the grub file by drag and drop from the desktop into the opened root nautilus /etc/default/grub.

Actually that’s good because using GUI applications as root is not recommended.

If you need to edit a system file as root from KDE Plasma you can do it like this.

  1. Find the file via Dolphin.
  2. Open the file with Kate.
  3. Make the edits you want.
  4. Then save the file. Kate will then ask you for your sudo password. Type that in and it saves your file.

Also see this:

https://wiki.archlinux.org/title/Running_GUI_applications_as_root

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.