Almalinux 9: Vmware keeps resetting the screen resolution to 800x600

@jmr thanks, your findings helped to find the fix.

Here it is (tested on AlmaLinux 9.1):

  1. download gnome-randr.py from
    https://gitlab.com/Oschowa/gnome-randr/-/blob/master/gnome-randr.py

and place it for example in ~/.local/bin/

  1. run it
    python ~/.local/bin/gnome-randr.py

I got the output

max-screen-size: 0x0
layout-mode: logical
global-scale-required: no
supports-mirroring: yes
supports-changing-layout-mode: no

logical monitor 0:
x: 0 y: 0, scale: 1.0, rotation: normal, primary: yes
associated physical monitors:
	Virtual-1 unknown

Virtual-1 unknown unknown unknown
    3840x2400   59.97       [x1.0+, x2.0, x3.0, x4.0]
    3840x2160   59.97       [x1.0+, x2.0, x3.0, x4.0]
    2880x1800   59.95       [x1.0+, x2.0, x3.0]
    2560x1600   59.99       [x1.0+, x2.0, x3.0]
    2560x1440   59.95       [x1.0+, x2.0, x3.0]
    1920x1440   60.00       [x1.0+, x2.0]
    1920x1200   59.88       [x1.0+, x2.0]
    1920x1080   59.96       [x1.0+, x2.0]
    1856x1392   60.00       [x1.0+, x2.0]
    1807x1575   60.00*+     [x1.0+]
    1792x1344   60.00       [x1.0+, x2.0]
    1680x1050   59.95       [x1.0+, x2.0]
    1600x1200   60.00       [x1.0+, x2.0]
     1440x900   59.89       [x1.0+]
    1400x1050   59.98       [x1.0+]
     1360x768   60.02       [x1.0+]
    1280x1024   60.02       [x1.0+]
     1280x960   60.00       [x1.0+]
     1280x800   59.81       [x1.0+]
     1280x768   59.87       [x1.0+]
     1280x720   59.86       [x1.0+]
     1152x864   75.00       [x1.0+]
     1024x768   60.00       [x1.0+]
      800x600   60.32       [x1.0+]
  1. test setting of your desired resolution from command line by
    python ~/.local/bin/gnome-randr.py --output Virtual-1 --mode 2880x1800

  2. wrap this command into simple two-line shell script ~/.local/bin/resolution.sh

#!/bin/sh
python ~/.local/bin/gnome-randr.py --output Virtual-1 --mode 2880x1800
  1. make it executable
    chmod +x ~/.local/bin/resolution.sh

  2. we want this command to be run each time gnome starts
    create (with root privileges) file /etc/xdg/autostart/resolution.desktop with the following content (replace your_username with your login)

[Desktop Entry]
Encoding=UTF-8
Exec=/home/your_username/.local/bin/resolution.sh
Name=resolution
Terminal=false
OnlyShowIn=GNOME
Type=Application
StartupNotify=false
X-GNOME-Autostart-Phase=Application