Request for Assistance: Unable to Set Custom Resolution (1280x600) on Wayland

Description:
I am currently facing an issue while attempting to set a custom resolution of 1280x600 on my Linux system running Wayland. Below are the details of my setup and the steps I've tried:

  1. System Details:
  • OS/Distribution: (Zorin os Kernel: 6.8.0-51-generic)
  • Session Type: Wayland (confirmed via echo $XDG_SESSION_TYPE)
  • Display Manager: GNOME/KDE/Other (specify which one you're using)
  1. Issue:
  • Using xrandr, I attempted to create and add the resolution:

bash

CopyEdit

xrandr --newmode "1280x600" 49.50 1280 1328 1360 1440 600 603 613 624 -hsync +vsync  
xrandr --addmode XWAYLAND0 1280x600  
xrandr --output XWAYLAND0 --mode 1280x600  
  • However, I encountered the following error:

yaml

CopyEdit

X Error of failed request:  BadMatch (invalid parameter attributes)  
Major opcode of failed request:  139 (RANDR)  
Minor opcode of failed request:  7 (RRSetScreenSize)  
Serial number of failed request:  22  
Current serial number in output stream:  23  
  1. Objective: My primary goal is to either:
  • Set the 1280x600 resolution globally or
  • Configure Minecraft specifically to run at this resolution.
  1. Attempts So Far:
  • Verified my session type (Wayland) and display name (XWAYLAND0).
  • Tried alternative tools like wlr-randr, but the resolution did not apply.
  • Explored setting the resolution directly for Minecraft via Java arguments but would still prefer a system-wide configuration.
  1. Request for Support:
  • Guidance on setting a custom resolution under Wayland.
  • Confirmation if my monitor supports this resolution (or if it's a Wayland limitation).
  • Any alternative methods to achieve my objective.

Attachments:

Thank you for your time and assistance!

Best regards,
_NIGHT_GAMER

Welcome to the Forum!

xrandr works as far as I know not on Wayland. So, You would have to switch to Xorg for this. To do that, go to the Login Screen (not the Lock Screen). Simply reboot for that. On the Login Screen click on Your Profile so that the Password Field appears. It has to be appeared. When it is appeared, You should see in the bottom right Corner a Gear Icon. Click on it and choose the Option ''Zorin Desktop on Xorg'' and then log in and try it.

Another Thing to that: What Graphics Card are You use and depending on that waht Driver?

1 Like

Agreed, please switch to Xorg on your login screen. Also, once your on Xorg, please note, changing to your native resolution, should be as easy as going into the display settings, and adjusting it there.

If your resolution is missing, this usually indicates that you don't have your GPU drivers installed. Also, 1200 * 600 is a low resolution, its like a tablet/phone size.


1 Like

You can try using wlr-randr, which is supposed to be an equivalent version of xrandr but for Wayland.

It seems that @_NIGHT_GAMER already tried that:

1 Like

Oh, sorry, I missed that it was already said. I'm curious though if there were any error messages at all? @_NIGHT_GAMER

1 Like

Topic moved to the correct section.