I recently updated from Ubuntu 20.04 Groovy Gorilla to Ubuntu 21.04 hirsute. With 20.04 I was able to set the custom resolution of my LG ULTRAWIDE monitor to 2560x1080 using xrandr because my session type was Xorg. The 21.04 update was not successful but that is a seperate case. Once I fixed the botched update issue, I logged in and certain things were missing and uninstalled but most importantly the resolution problem.
Using echo $XDG_SESSION_TYPE
I was able to see that my session type had changed to wayland.
And the connected displays were the following using xrandr -q | grep connected
Essentially XWAYLAND1 is my ULTRAWIDE Display
I used for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done
as an alternative way to getting the display types for the attempts below
https://wiki.archlinux.org/title/Kernel_mode_setting
Attempts made:
- Update resolution using
sudo gedit /etc/default/grub
and change the GRUB_CMDLINE_LINUX_DEFAULT to the following.
Original was: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor". Then commit to that change with sudo update-grub
- Using Grub Customizer instead as an alternative method.
- Using a script created in
/usr/share/X11/xorg.conf.d
Reasons behind attempts
Method 1 and 2 was: custom-screen-resolution-ubuntu-wayland
Method 3 was: How do I configure Ubuntu for a 21:9 screen?
What failed
- Apparently using grub.
You can’t set custom resolution higher than the maximum one in
Display settings
- The script was intended to add those settings upon boot from my understanding, but nothing is happening.
References
Lastly logging out does not present the option to change settings from wayland to xorg