Omarchy unusable under VMware Workstation with 3D acceleration enabled
Summary
Omarchy currently appears to be unusable when installed as a guest in VMware Workstation with VMware 3D acceleration enabled.
The system boots and Hyprland starts, but the graphical desktop renders as a black screen with only the mouse cursor visible.
This appears to be related to the Hyprland/Aquamarine interaction with VMware's vmwgfx graphics stack rather than a general failure of VMware 3D acceleration.
Environment
- Omarchy
- Hyprland
- VMware Workstation
- VMware SVGA II virtual GPU
- Linux
vmwgfxkernel driver - Mesa 26.1.7
- Wayland
- Quickshell (Omarchy desktop shell)
GPU:
VMware SVGA II Adapter [15ad:0405]
Kernel driver: vmwgfx
Primary failure
With VMware 3D acceleration enabled, the Omarchy graphical session starts but the desktop is not usable.
The visible result is:
- black screen
- mouse cursor visible
- no functional Omarchy desktop
This occurs even though the VMware GPU and 3D acceleration are detected correctly.
Mesa reports:
OpenGL core profile vendor: VMware, Inc.
OpenGL core profile renderer: SVGA3D; build: RELEASE; LLVM;
OpenGL core profile version: 4.3 (Core Profile) Mesa 26.1.7
The VMware DRM driver also reports 3D capability.
Quickshell / Omarchy shell
Quickshell is running:
quickshell -n -p /usr/share/omarchy/shell
and the Wayland socket exists:
/run/user/1000/wayland-1
However, the Omarchy shell does not render correctly in the accelerated configuration.
A partial workaround is possible by forcing software rendering for Quickshell:
WAYLAND_DISPLAY=wayland-1 \
XDG_RUNTIME_DIR=/run/user/1000 \
QT_QPA_PLATFORM=wayland \
QSG_RHI_BACKEND=software \
quickshell -n -p /usr/share/omarchy/shell
This demonstrates that the accelerated rendering path is implicated, but this is not a practical general solution.
Wayland client failures
Native Wayland applications can also lose their connection to Hyprland.
For example, Ghostty starts with its OpenGL renderer:
info: renderer=renderer.generic.Renderer(renderer.OpenGL)
but subsequently reports:
Gdk: Lost connection to Wayland compositor.
Hyprland reports:
unknown object (61), message attach(?oii)
error in client communication
This does not appear to be Ghostty-specific.
Related issues
There are already VMware-related Omarchy reports:
-
Omarchy #1176 — BUG: Wayland Drivers - Omarchy 2.0 in VMs https://github.com/basecamp/omarchy/issues/1176
-
Omarchy Discussion #572 — Omarchy on VMware Workstation https://github.com/basecamp/omarchy/discussions/572
The underlying issue appears particularly closely related to this Hyprland discussion:
- Hyprland Discussion #12966 https://github.com/hyprwm/Hyprland/discussions/12966
That discussion specifically concerns Hyprland running under VMware with vmwgfx and Wayland clients failing, and references a patch that reportedly addresses the VMware/vmwgfx compatibility problem.
Why this matters
A user attempting to evaluate or use Omarchy inside VMware Workstation is likely to encounter this problem if VMware 3D acceleration is enabled.
The expected sequence is:
- Install Omarchy in VMware Workstation.
- Enable VMware 3D acceleration.
- Boot successfully into the graphical session.
- Hyprland starts.
- Screen remains black except for the mouse cursor.
- Omarchy's Quickshell UI does not render.
- Native Wayland applications may subsequently fail with compositor/client communication errors.
Software rendering can make portions of the environment usable, but this defeats the purpose of VMware 3D acceleration and is not an acceptable general solution.
Requested action
Please investigate whether the Hyprland/Aquamarine fix discussed in Hyprland #12966 has been incorporated into the versions currently shipped by Omarchy.
If it has not yet landed upstream, it would be useful to:
- track this compatibility issue from the Omarchy side;
- determine whether the referenced patch is applicable to the current Hyprland/Aquamarine versions;
- consider incorporating the fix when appropriate; and
- document VMware Workstation compatibility if the issue cannot currently be resolved.
VMware Workstation should otherwise be considered a significant deployment/testing environment for Omarchy, and currently the accelerated configuration does not provide a functional desktop.
This is with Omarchy 4.0.0 and vmware workstation 25.0.0.24995812
I hit this same crash-loop (Omarchy 4.0.1-1, Hyprland 0.56.2, VMware SVGA II / vmwgfx v2.21.0.0, Mesa 1:26.2.1-1) — the Omarchy shell (Quickshell bar/panels) never comes up; omarchy-launch-shell relaunches it 5x in under a minute and gives up. Ran it manually with WAYLAND_DEBUG=1 to get the exact failure:
[Default Queue] -> zwp_linux_buffer_params_v1#34.create_immed(new id wl_buffer#46, 1718, 52, 875713089, 0)
[Default Queue] -> wl_surface#42.attach(wl_buffer#46, 0, 0)
[Default Queue] -> wl_surface#42.commit()
[Display Queue] wl_display#1.error(wl_display#1, 1, "invalid arguments for wl_surface#42.attach")
WARN: The Wayland connection experienced a fatal error: Invalid argument
So it's specifically the dmabuf buffer Mesa hands back for Quickshell's GPU/EGL-rendered surface — vmwgfx reports a modifier that Hyprland/wlroots rejects outright on wl_surface.attach, which is a fatal Wayland protocol error. Qt _exit()s on that with no signal, so Quickshell's own crash handler never even fires — the supervisor just sees a bare exit and retries into the same crash every time. This lines up with the Hyprland/Aquamarine + vmwgfx discussion linked above.
Re: the QSG_RHI_BACKEND=software workaround mentioned as "partial" — in my testing it does not actually fix the crash (still hits the same fatal wl_surface.attach error), since that only changes QtQuick's scene graph renderer, not the underlying Wayland/EGL buffer submission path. Same for QT_WAYLAND_DISABLE_HARDWARE_INTEGRATION=1.
What did fix it for me is forcing Mesa's software rasterizer globally, bypassing the vmwgfx hardware path entirely so no bad-modifier dmabuf ever gets created:
-- ~/.config/hypr/hyprland.lua
hl.env("LIBGL_ALWAYS_SOFTWARE", "1")
With that set, quickshell -n -p /usr/share/omarchy/shell starts and stays up indefinitely (tested standalone with WAYLAND_DEBUG=1, no errors, and running normally in-session since).
Given default/hypr/nvidia.lua already special-cases GPU vendors for env quirks, it seems like detecting vmwgfx (driver bound to a VMware SVGA II device) the same way and defaulting LIBGL_ALWAYS_SOFTWARE=1 would fix this out of the box for VMware Workstation/Fusion guests, until the upstream Hyprland/Aquamarine/vmwgfx modifier bug is actually fixed.
when will this get fixed?
-- ~/.config/hypr/hyprland.lua hl.env("LIBGL_ALWAYS_SOFTWARE", "1") With that set,
quickshell -n -p /usr/share/omarchy/shellstarts and stays up indefinitely (tested standalone withWAYLAND_DEBUG=1, no errors, and running normally in-session since).Given
default/hypr/nvidia.luaalready special-cases GPU vendors for env quirks, it seems like detectingvmwgfx(driver bound to a VMware SVGA II device) the same way and defaultingLIBGL_ALWAYS_SOFTWARE=1would fix this out of the box for VMware Workstation/Fusion guests, until the upstream Hyprland/Aquamarine/vmwgfx modifier bug is actually fixed.
I tried this with a fresh install of 4.0.2 and I cant get a shell after logging in. It looks like it hangs at around 20% on the progress bar.
Was that one change in hyprland.lua the only change required to make this function???
I can reproduce a related failure on Omarchy 4.0.2 when launching Spotify inside VMware. Starting Spotify caused XWayland to terminate immediately, leaving the graphical desktop and X11-dependent services unusable. I did not reproduce it again because the session required a reboot.
Environment:
- Omarchy 4.0.2-1
- Hyprland 0.56.2-1
- XWayland 24.1.13-1
- Spotify 1.2.96.518-2
- Mesa 26.2.1-1
- Linux 7.1.9-arch1-2
- VMware SVGA II Adapter [15ad:0405]
- vmwgfx 2.21.0.0
- open-vm-tools 13.1.0-3
The previous-boot journal shows:
11:49:10.056800 uwsm_app-daemon: received: app -- gtk-launch spotify.desktop
11:49:10.991200 Hyprland: unknown object (36), message attach(?oii)
11:49:10.991200 Hyprland: error in client communication
11:49:10.991545 XWAYLAND: wl_display#1: error 1: invalid arguments for wl_surface#18.attach
11:49:10.991545 XWAYLAND: (EE) failed to dispatch Wayland events: Invalid argument
11:49:11.007458 fcitx5: XCB connection ":0" got error: 1
11:49:11.008264 fcitx5: Disconnected from X11 Display :0
This is consistent with the vmwgfx/dmabuf surface-attachment problem already described in this issue, but demonstrates that an XWayland application such as Spotify can trigger it after the desktop has started successfully. There was no OOM event or core dump.
Filed by GPT-5 via Codex.
Building on @rsuarezc0's diagnosis (same invalid arguments for wl_surface.attach
→ Invalid argument → exit-with-no-signal loop here on 4.0.2): there is a
narrower fix than LIBGL_ALWAYS_SOFTWARE=1, because the compositor itself is
not affected.
QT_QUICK_BACKEND=software fixes it and keeps the compositor on the GPU
-- ~/.config/hypr/hyprland.lua
hl.env("QT_QUICK_BACKEND", "software")
Measured on this guest at 2560x1440:
| setting | shell | desktop compositing | Hyprland idle CPU |
|---|---|---|---|
| none | crash-loops | GPU | — |
QSG_RHI_BACKEND=software |
still crash-loops | GPU | — |
LIBGL_ALWAYS_SOFTWARE=1 |
works | llvmpipe (CPU) | ~12% |
QT_QUICK_BACKEND=software |
works | GPU | ~4% |
Confirming @rsuarezc0 on QSG_RHI_BACKEND=software — it does not help.
QT_QUICK_BACKEND=software is a different switch: it replaces the Qt Quick
scene graph with the raster renderer, so the surface is an shm buffer and no
dmabuf is ever created. QSG_RHI_BACKEND only swaps the RHI backend underneath
a still-GPU-backed surface, which is why it stays broken.
The compositor does not need software rendering
Worth separating, since it's what makes the narrower fix possible. A throwaway
Hyprland on a spare VT with no env overrides at all composites and scans out
fine on vmwgfx:
drm: Starting backend for /dev/dri/card0, with driver vmwgfx
CDRMRenderer(drm): Using device /dev/dri/card0
Backend: drm Panel Virtual-1: 2560x1440
No Can't create renderer, no crash, visually confirmed. aquamarine survives the
missing modifiers on its own —
GBM: Allocating with modifiers failed, falling back to implicit
— which is exactly what a GL-backed Qt Quick client fails to do. For the record,
AQ_NO_MODIFIERS, AQ_NO_ATOMIC and AQ_FORCE_LINEAR_BLIT therefore change
nothing here; they address a step that already works.
The underlying asymmetry: Mesa's svga driver advertises zero dma-buf render
modifiers for the scanout formats, while vmwgfx KMS advertises exactly one
(LINEAR) on all 8 planes:
XR24: 0 render modifier(s) -> []
AR24: 0 render modifier(s) -> []
AB24: 0 render modifier(s) -> []
Minimal reproducer, no Omarchy or quickshell involved
Useful if this goes upstream to Qt or Mesa:
cat > /tmp/t.qml <<'QML'
import QtQuick
import QtQuick.Window
Window { visible: true; width: 320; height: 180; color: "#00aa55"
Timer { interval: 2500; running: true; onTriggered: Qt.quit() } }
QML
qml6 /tmp/t.qml # exit 255
QT_QUICK_BACKEND=software qml6 /tmp/t.qml # exit 0
@cavanaug — re: "was that one change the only change required?"
Here, yes: the shell env change alone is sufficient to get quickshell up. Two things that can still make it look broken afterwards:
- The screen is not actually black. With no shell there is no bar and no
wallpaper, and
disable_hyprland_logo/disable_splash_renderingare on in the defaults, so you get a uniform#111111fill plus a live cursor. Agrimcapture during the failure is 97–99% one colour. Quick check for whether the shell is the problem at all:journalctl -b -t omarchy-shell | grep -c 'exited with status' # 0 healthy, ~5 broken - Wrong resolution can look like a hung session. Separate VMware bug:
Hyprland reads the connector's preferred mode once at startup and caches it,
so
mode = "preferred"latches onto whatevervmwgfxadvertised before the host handshake finished (1280x800 here) and never updates — not even onhyprctl reload. Reading the current preferred mode from/sys/class/drm/card*-Virtual-*/modesat config-parse time fixes it. Happy to file that separately if it's not already known.
Blast radius
Same buffer rejection hits mpv --vo=gpu and --vo=gpu-next
(invalid arguments for wl_surface#7.attach; vo=wlshm works). foot, imv
and Chromium are all fine on hardware GL — consistent with @Kor123's Spotify/
XWayland report being the same root cause reached from a different client.
So if Omarchy wants to special-case vmwgfx the way default/hypr/nvidia.lua
special-cases GPU vendors, QT_QUICK_BACKEND=software looks like the better
default than LIBGL_ALWAYS_SOFTWARE=1 — it fixes the shell without giving up
GPU compositing for the whole desktop.
Versions
Omarchy 4.0.2-1 · kernel 7.2.2-arch1-1 · Hyprland 0.56.2-1 · aquamarine 0.14.0-2
mesa 1:26.2.1-1 · qt6-declarative 6.11.2-1 · open-vm-tools 13.1.0-3
VMware SVGA II Adapter [15ad:0405] · vmwgfx 2.21.0.0 · 3D acceleration enabled
Follow-up to my Spotify/XWayland reproduction: adding XWAYLAND_NO_GLAMOR=1 has stabilized XWayland applications in this VMware guest.
Current configuration:
-- ~/.config/hypr/monitors.lua
hl.env("LIBGL_ALWAYS_SOFTWARE", "1")
hl.env("QSG_RHI_BACKEND", "software")
hl.env("XWAYLAND_NO_GLAMOR", "1")
After a full reboot, the journal confirms that XWayland sees the setting:
Disabling glamor and dri3 support, XWAYLAND_NO_GLAMOR is set
I then tested the following applications:
- Chromium forced through XWayland with
--disable-gpu - Chromium forced through XWayland with its normal GPU configuration
- Obsidian 1.13.7 / Electron 43 forced through XWayland
- Spotify through XWayland with
--disable-gpu - Spotify through XWayland with its normal GPU configuration
- Spotify using its normal user profile and regular launch command
Hyprland reported xwayland: true for every test window. All tests remained stable, and the journal contained no recurrence of:
unknown object, message attach(?oii)
invalid arguments for wl_surface.attach
failed to dispatch Wayland events
XCB connection got error
Before adding XWAYLAND_NO_GLAMOR, Spotify had terminated XWayland despite LIBGL_ALWAYS_SOFTWARE=1 and QSG_RHI_BACKEND=software already being present. This suggests disabling XWayland Glamor/DRI3 is relevant for the Spotify/XWayland variant of the vmwgfx problem.
Caveats:
- I have only tested
XWAYLAND_NO_GLAMORas part of the configuration above, not in complete isolation. - This intentionally sacrifices XWayland GPU acceleration.
- It does not fix the SDDM greeter: logging out still produced no visible login screen and required a reboot, because SDDM uses a separate Hyprland environment.
Filed by GPT-5 via Codex.
Performance follow-up after reboot and runtime testing:
The earlier configuration contained:
hl.env("QSG_RHI_BACKEND", "software")
but the journal shows that this setting has no effect with the installed Qt stack:
Unknown key "software" for QSG_RHI_BACKEND, falling back to default backend.
I therefore replaced the broad/ineffective combination of LIBGL_ALWAYS_SOFTWARE=1 and QSG_RHI_BACKEND=software with:
hl.env("QT_QUICK_BACKEND", "software")
hl.env("XWAYLAND_NO_GLAMOR", "1")
After a full reboot, the journal confirms that both variables are active and that XWayland disables Glamor and DRI3. The global LIBGL_ALWAYS_SOFTWARE variable is no longer present. Omarchy, SDDM login, Spotify, and audio playback remain stable, with no recurrence of the wl_surface.attach failure.
The tradeoff is application performance. During Spotify playback, measured CPU usage was approximately:
Spotify renderer 47%
Spotify main process 6%
Spotify GPU process 6%
Spotify network 3%
Hyprland 4.6%
Quickshell 2.4%
XWayland 1.1%
Spotify therefore uses roughly 60% of one CPU core and becomes noticeably laggy because its XWayland rendering path is software-backed. The narrower configuration restores GPU rendering for the Hyprland compositor and avoids imposing LIBGL_ALWAYS_SOFTWARE=1 on the entire session, but XWayland applications still pay the expected software-rendering cost.
Filed by GPT-5 via Codex.
Omarchy 4.0.2 on VMware Workstation: working workaround
I managed to get Omarchy running under VMware Workstation with 3D acceleration, including functional Wayland applications, responsive terminal rendering, and automatic guest resizing.
Tested environment
- Omarchy 4.0.2
- Hyprland 0.56.2
- Aquamarine 0.14.0
- Mesa 26.2.1
- Linux 7.1.9-arch1-2
vmwgfx2.21.0- VMware SVGA II Adapter, PCI ID
15ad:0405 - open-vm-tools 13.1.0
- VMware Workstation on Windows
Initial symptoms
With VMware 3D acceleration disabled, Hyprland could not initialise its renderer and produced a blank display.
After enabling 3D acceleration, Hyprland started, but GPU-rendered Wayland clients failed with errors resembling:
invalid arguments for wl_surface#N.attach
unknown object
The underlying problem appears to be that vmwgfx imports surface-backed DMA-BUFs as TTM/surface handles rather than ordinary GEM handles. Hyprland calls drmCloseBufferHandle(), which fails with EINVAL for these handles.
This corresponds with:
- [Hyprland discussion #12966](https://github.com/hyprwm/Hyprland/discussions/12966)
- [Aquamarine issue #360](https://github.com/hyprwm/aquamarine/issues/360)
1. Enable VMware 3D acceleration
Power off the VM and enable:
VM Settings → Display → Accelerate 3D graphics
Hyprland requires this. Without it, Mesa reports that VMware 3D is unavailable and renderer initialisation fails.
2. Patch Hyprland’s VMware DMA-BUF handle cleanup
The following patch adds a vmwgfx fallback using DRM_VMW_UNREF_SURFACE when the normal GEM close operation fails.
Create vmwgfx-dmabuf.patch:
diff --git a/src/protocols/LinuxDMABUF.cpp b/src/protocols/LinuxDMABUF.cpp
index 121c91c..f4c3f01 100644
--- a/src/protocols/LinuxDMABUF.cpp
+++ b/src/protocols/LinuxDMABUF.cpp
@@ -2,6 +2,7 @@
#include <algorithm>
#include <set>
#include <tuple>
+#include <cstring>
#include "../helpers/MiscFunctions.hpp"
#include <sys/mman.h>
#include <xf86drm.h>
@@ -260,6 +261,30 @@ void CLinuxDMABUFParamsResource::create(int id) {
m_createdBuffer = buf;
}
+#define DRM_VMW_UNREF_SURFACE 10
+
+struct drmVmwSurfaceArg {
+ int32_t sid;
+ uint32_t handleType;
+};
+
+// vmwgfx prime-imports surface-backed dmabufs as TTM handles, not GEM, so
+// GEM_CLOSE fails with EINVAL; close them via DRM_VMW_UNREF_SURFACE instead.
+static int closeVmwGFXHandle(int fd, uint32_t handle) {
+ bool isVmwgfx;
+ drmVersionPtr version;
+
+ version = drmGetVersion(fd);
+ isVmwgfx = version && version->name &&
+ strncmp(version->name, "vmwgfx", version->name_len) == 0;
+ if (version)
+ drmFreeVersion(version);
+ if (!isVmwgfx)
+ return -1;
+
+ struct drmVmwSurfaceArg arg = {(int32_t)handle, 0};
+ return drmCommandWrite(
+ fd, DRM_VMW_UNREF_SURFACE, &arg, sizeof(arg));
+}
+
bool CLinuxDMABUFParamsResource::commence() {
if (!PROTO::linuxDma->m_mainDeviceFD.isValid())
return true;
@@ -272,7 +297,9 @@ bool CLinuxDMABUFParamsResource::commence() {
return false;
}
- if (drmCloseBufferHandle(PROTO::linuxDma->m_mainDeviceFD.get(), handle)) {
+ if (drmCloseBufferHandle(
+ PROTO::linuxDma->m_mainDeviceFD.get(), handle) != 0 &&
+ closeVmwGFXHandle(
+ PROTO::linuxDma->m_mainDeviceFD.get(), handle) != 0) {
LOGM(Log::ERR, "Failed to close dmabuf handle");
return false;
}
Install the build dependencies:
sudo pacman -S --needed \
base-devel git cmake glaze hyprland-protocols meson ninja
Obtain the Arch Hyprland packaging recipe:
git clone \
https://gitlab.archlinux.org/archlinux/packaging/packages/hyprland.git
cd hyprland
git checkout 0.56.2-1
Place vmwgfx-dmabuf.patch beside the PKGBUILD, then modify the package recipe:
pkgrel=1.1
Add the patch to source:
source=("$_archive.tar.gz::$url/releases/download/v$pkgver/source-v$pkgver.tar.gz"
'vmwgfx-dmabuf.patch')
For this exact patch, its SHA-256 is:
5c559de0041d1838c4fbeb7b2f18d4d4fd8abacfa6a7f651be41d8169e9b3f56
Add this to prepare():
patch -Np1 -i "$srcdir/vmwgfx-dmabuf.patch"
Build and install it:
makepkg -si
The installed package should then report something similar to:
hyprland 0.56.2-1.1
After rebooting or logging back in, Hyprland and GPU-rendered clients worked.
A normal repository upgrade may replace this custom package, so this patch should ideally be incorporated upstream.
3. Fix stale frames and delayed terminal rendering
After Hyprland started, another issue appeared:
- Keyboard input was accepted but not displayed immediately.
- Commands executed, but the following shell prompt did not appear.
- Moving the mouse caused all missing text to appear instantly.
- The same behaviour occurred on TTY3, ruling out the Foot terminal emulator or shell configuration.
This is a frame-presentation/repaint problem in the VMware graphics path. Disabling Hyprland’s variable-frame rendering makes it repaint continuously and fixes the issue.
In ~/.config/hypr/looknfeel.lua, add:
-- vmwgfx can miss damage-driven page flips. Continuous rendering prevents
-- terminal and TTY updates from remaining invisible until the mouse moves.
hl.config({
debug = {
vfr = false,
},
})
Apply it with:
hyprctl reload
Verify it with:
hyprctl getoption debug:vfr
Expected result:
bool: false
This has a small GPU/CPU efficiency cost because Hyprland renders continuously, but it eliminated the delayed and invisible terminal updates.
4. Install and enable open-vm-tools
Install VMware’s guest integration packages:
sudo pacman -S --needed open-vm-tools gtkmm3 libxtst
Enable the system services:
sudo systemctl enable --now \
vmtoolsd.service \
vmware-vmblock-fuse.service
The desktop-side VMware agent did not start automatically under the Omarchy/UWSM session, so add this to ~/.config/hypr/autostart.lua:
o.launch_on_start("vmtoolsd -n vmusr")
After logging in, both processes should be present:
pgrep -a -f vmtoolsd
Expected:
/usr/bin/vmtoolsd
/usr/bin/vmtoolsd -n vmusr --blockFd 3 --uinputFd 4
5. Enable VMware’s KMS resolution plugin
On this Wayland-only installation, xf86-video-vmware was absent. Consequently, open-vm-tools did not enable its resolutionKMS plugin automatically.
Create /etc/vmware-tools/tools.conf:
[resolutionKMS]
enable=true
For example:
sudo install -d /etc/vmware-tools
printf '%s\n' \
'[resolutionKMS]' \
'enable=true' |
sudo tee /etc/vmware-tools/tools.conf
sudo systemctl restart vmtoolsd
After doing this, VMware correctly published the requested window dimensions through:
head -n1 /sys/class/drm/card0-Virtual-1/modes
For example:
1447x915
However, Hyprland/Aquamarine did not react to the vmwgfx hot-plug mode update. hyprctl monitors continued reporting 1280x800, and VMware’s “Autofit Guest” did nothing.
Manually applying the published mode worked:
hyprctl eval \
'hl.monitor({ output = "Virtual-1", mode = "1447x915@60", position = "auto", scale = 1 })'
This suggests the VMware event reaches the kernel correctly, but Aquamarine keeps a stale connector mode list or otherwise misses the update.
6. Automatic resizing workaround
I used a small helper that polls the preferred vmwgfx mode and applies it through Hyprland.
It also accounts for fractional scaling. VMware may request an arbitrary size such as 1447x915, but Hyprland silently falls back to scale 1 if that size cannot be divided cleanly by the requested fractional scale.
For example, scale 1.6 is 8/5, so the physical dimensions must be multiples of eight. The helper rounds 1447x915 down slightly to 1440x912, allowing scale 1.6 to remain active.
Create ~/.local/bin/omarchy-vmware-autofit:
#!/usr/bin/env bash
set -u
runtime_dir="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}"
exec 9>"${runtime_dir}/omarchy-vmware-autofit.lock"
flock -n 9 || exit 0
connector=""
while [[ -z "$connector" ]]; do
for candidate in /sys/class/drm/card*-Virtual-1; do
if [[ -r "$candidate/modes" ]]; then
connector="$candidate"
break
fi
done
[[ -n "$connector" ]] || sleep 1
done
monitor_config="${HOME}/.config/hypr/monitors.lua"
last_request=""
while sleep 0.25; do
mode=$(head -n 1 "$connector/modes" 2>/dev/null || true)
[[ "$mode" =~ ^[0-9]+x[0-9]+$ ]] || continue
scale=$(
sed -n \
's/^local omarchy_monitor_scale = \([0-9][0-9.]*\).*$/\1/p' \
"$monitor_config" 2>/dev/null |
tail -n 1
)
[[ "$scale" =~ ^([0-9]+)(\.([0-9]+))?$ ]] || scale=1
if [[ "$scale" =~ ^([0-9]+)(\.([0-9]+))?$ ]]; then
whole=${BASH_REMATCH[1]}
fraction=${BASH_REMATCH[3]:-}
fi
denominator=1
for ((i = 0; i < ${#fraction}; i++)); do
denominator=$((denominator * 10))
done
numerator=$((10#$whole * denominator))
[[ -n "$fraction" ]] &&
numerator=$((numerator + 10#$fraction))
a=$numerator
b=$denominator
while ((b)); do
remainder=$((a % b))
a=$b
b=$remainder
done
pixel_multiple=$((numerator / a))
width=${mode%x*}
height=${mode#*x}
width=$((width / pixel_multiple * pixel_multiple))
height=$((height / pixel_multiple * pixel_multiple))
fitted_mode="${width}x${height}"
config_mtime=$(
stat -c %Y "$monitor_config" 2>/dev/null || echo 0
)
request="${mode}:${scale}:${config_mtime}"
[[ "$request" == "$last_request" ]] && continue
if hyprctl eval \
"hl.monitor({
output = \"Virtual-1\",
mode = \"${fitted_mode}@60\",
position = \"auto\",
scale = ${scale}
})" >/dev/null 2>&1
then
last_request="$request"
fi
done
Make it executable:
chmod +x ~/.local/bin/omarchy-vmware-autofit
Add it to ~/.config/hypr/autostart.lua:
o.launch_on_start("omarchy-vmware-autofit")
Final autostart.lua:
-- Extra autostart processes.
o.launch_on_start("vmtoolsd -n vmusr")
o.launch_on_start("omarchy-vmware-autofit")
Log out and back in, or start it temporarily with:
uwsm-app -- omarchy-vmware-autofit
Final result
With these changes:
- VMware 3D acceleration is enabled.
- Hyprland starts successfully.
- GPU-rendered Wayland applications work.
- Terminal input and prompts repaint immediately.
- VMware window/fullscreen changes resize the Hyprland output.
- Omarchy’s selected fractional monitor scale is preserved.
- The VMware integration and resizing helper start automatically.
The parts that would ideally be resolved upstream are:
- Hyprland’s incorrect GEM-only cleanup of
vmwgfxDMA-BUF handles. - Missed/stale
vmwgfxconnector mode updates in Hyprland/Aquamarine. - Damage-driven page flips remaining invisible until another event—such as mouse movement—causes a repaint.
Automated duplication check: this issue looks similar to #7835, which covers the same vMware black screen after login. I keep that one open and close this one to keep the discussion in one place.
If you feel this is the wrong decision, please open the issue again with a note on the difference.