VM resolution not applied after switch from X11 to Wayland in VMware

Hello, this is not a support request, but -for my first time- a topic that might help others.

After the last update round yesterday, my VM size was not 1680 x 974 anymore, but 1280 x 800.
It pointed out that Manjaro switched from X11 to Wayland.
As X11 support is going to end in near future anyway, I decided to investigate new options to set a custom resolution.
For anyone with a Manjaro VM in VMware having the same issue and not being a linux expert, here is what I found.

There seems to be no configuration file where resolutions can be added. The xrandr procedure is just for X11.
With the right combination of search words I found a topic on askubuntu that inspired me.

  • Copy your VM first, just because you can, and you are going to edit a boot file, so…
  • Find the name of your display in case you don’t know:
    inxi -v8
  • In the Graphics section of the output, after "active: " the name of your device is show, in my case that was Virtual-1, that was unchanged.
  • Then add a line to /etc/default/grub, in my case:
    GRUB_CMDLINE_LINUX_DEFAULT=“video=Virtual-1:1680x974@60”
    Replace Virtual-1 with your display name and 1680x974 with the resolution you want.
  • Activate the change with:
    sudo update-grub
  • After a reboot the VM is still 1280 x 800, but you can select your desired size:
    Richt-click the desktop, select Display configuration, in the Resolution list the added resolution 1680 x 974 can be selected, then press Apply.

After that I had to redefine all my Window rules for desired windows sizes and positions of frequently used programs since they didn’t work anymore.

Happy Xmas

2 Likes

Nice tip - thank you :+1:

The new kscreen-doctor can be used with Wayland on KDE.

Fair warning: In a VMware VM, use kscreen-doctor from a TTY after logging out from Plasma, as the VM will need to be restarted after applying a new resolution.

Quick tip: While most resolutions are supported in a VM, on a real system, one must make sure that resolution is actually supported by the GPU, otherwise it will fail.

kscreen-doctor -h
kscreen-doctor -o

With VMWare Workstation (the only one that ever has touched my desktop), but even Player I think even does it too; you should have dynamically resizable desktops; Linux or Windows. Why lock it to one resolution? (Unless you GPU passthrough.) Or am I missing something?

What ever you drag the window to to be, is the resolution. If you want fullscreen, then it’s that (w/ guest vm tools of course).

And it’s fast! Nothing can beat them in that respect.

(Or are you talking about ESXi? :cold_face: )

Much happier with qemu if I can’t have Workstation!