-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start sway on Arch Linux running in VMWare Fusion #5834
Comments
Can you obtain DRM debug logs? See https://github.com/swaywm/wlroots/wiki/DRM-Debugging |
|
I've scoured the package manager for every permutation of Also, I don't know if this is relevant/helpful, but I can start sway from an already running Gnome session (i.e. running |
|
It sounds like this check fails in the driver: if (surface && !surface->snooper.image) {
DRM_ERROR("surface not suitable for cursor\n");
ret = -EINVAL;
} The snooper image is created in these conditions: if (metadata->scanout &&
metadata->num_sizes == 1 &&
metadata->sizes[0].width == 64 &&
metadata->sizes[0].height == 64 &&
metadata->format == SVGA3D_A8R8G8B8) {
srf->snooper.image = kzalloc(64 * 64 * 4, GFP_KERNEL);
if (!srf->snooper.image) {
DRM_ERROR("Failed to allocate cursor_image\n");
ret = -ENOMEM;
goto out_no_copy;
}
} else {
srf->snooper.image = NULL;
} We need to figure out which one of these conditions fail. Can you provide a |
drm_info, in windowed mode: https://gist.github.com/hedgepigdaniel/63c37724779f70a5415efe8237f61bca |
The "preferred" mode changes in However, the modes seen by sway according to Also when guest use of multiple screens is enabled, the cursor is sometimes not able to travel across the entire area of all the screens. LMK if any of these deserve separate issues - just posting here in case it's related. |
The symptom is different when VMware is set to full screen mode - sway starts and works, but the cursor is not visible as in #3814 drm_info: https://gist.github.com/hedgepigdaniel/bf4a121cace8d9eb0e0e83393dd71a82 |
I see many messages like this in my kernel log:
|
Thanks @hedgepigdaniel, setting |
Preliminary findings to be confirmed: None of this code runs at all. I put a DRM_ERROR in the else block and didn't see any log messages. Next step is to put more of them at all the early returns earlier in that function and see of one of them is the culprit. |
To save me a bunch of confusion - what code in wlroots would you expect to be calling |
This function is hooked up to the ioctl |
Well, it turns out that mesa doesn't call The choice between the two ioctls is made here on the basis that |
OK. Can you report a Mesa bug about this? |
WLR_NO_HARDWARE_CURSORS=1 doesn't help in VMWare Fusion 12.1.0 (17195230) (macOS Big Sur host, fresh Arch Linux guest). I get the following error when starting from tty1: 00:00:00.004 [sway/main.c:349] Unable to retrieve socket path Same issue when starting from GDM. If started from gnome-terminal sway successfully runs in a separate window. |
@IvoMajic Please redirect the output of Sway to a file to get full logs: |
@emersion full log: https://gist.github.com/IvoMajic/e09a49d12510e1efa61d1c67dfa3c90b The result is just a black screen, which can only be exited by switching to other tty or shutdown. |
You're also getting this:
|
Is there anything I can do to help? I'm successfully running Sway 1.5.1 on a Macbook Pro 2019 with Big Sur 11.2.2 in VMware Fusion Pro 12.1.0 in a window (not fullscreen). I am setting Debug log from my VM: https://gist.github.com/lvets/944d9d351f814567d472000583822b40 |
Having the same issue. My dmesg log shows no errors, and the redirected output from This is using VMWare Workstation Player 16 and a fresh install of Arch. Using Running |
You need to redirect stderr. |
@emersion I did. I ran |
Just popping in with a +1 - I am experiencing the same issue when running sway (albeit in a Void Linux VMware VM).
|
Sway works perfectly for me when setting If the former is not set you will get a black screen. If the latter is not set you will get a |
Something fishy is definitely going on with wlroots and virtualised drm drivers (such as virtio-gpu, vmwgfx, etc.). On all virtual machines (tried Parallels Desktop, VMware Fusion, but above there are reports re: Virtualbox too) any wlroots-based compositor can't produce a hardware cursor (either it is not visible or results in a console lockup). At the same time, Weston happily works with all these drm drivers and enables hardware cursor. JFYI. |
I am having the same issue on a fresh install of ubuntu in vmware. Same symptoms (black screen, starting from already running gnome session opens sway correctly in window).
Works for me too. I have to disable the graphical login manager with |
hey bros doesnt anybody know how to make WLR_NO_HARDWARE_CURSORS=1 sway this work with sddm? because if i try to input it into the .desktop file it doenst work pls halp. |
I am having the same issue with arch as a guest in qemu, arch kernel vesions:
|
+1 black screen after sway launched from terminal after switching between TTYs, graphical output is updated, but again hangs until another TTY switch back and forward. all env.var. SWAYSOCK etc. appear to be empty by default. Manually setting SWAYSOCK has no effect. Anything to provide or help? |
Please fill out the following:
Sway Version: 1.5.1
Debug Log: https://paste.sr.ht/~gpanders/64de4204fcd197701c1750ffcd02cf2397b37e37
Configuration File: Default sway config file
Description: This is a fresh install of Arch Linux on VMWare Fusion. I'm running
sway
from the command line and then the screen goes black and unresponsive. The only way for me to kill it is to switch to another tty using Ctrl+Alt+F3 and runningkillall sway
.These are the errors I see in the log file:
I've tried with and without VMWare's "Accelerate 3D Graphics" option. It doesn't seem to make a difference.
The text was updated successfully, but these errors were encountered: