Sway: No mouse cursor visible on VirtualBox (or VMware)

Created on 4 Mar 2019  路  13Comments  路  Source: swaywm/sway

As requested, I'm reporting here something I originally reported on the Alpine
Linux mailing list (https://lists.alpinelinux.org/alpine-devel/6462.html).

Upgrading to 1.0-rc4 in the Alpine testing repository
(https://pkgs.alpinelinux.org/package/edge/testing/x86_64/sway) results in
having no mouse cursor visible. The mouse still functions, but is of course
pretty unusable.

This is running on Virtualbox, which as far as I can tell only recently (v6.0
onwards) gained the ability to run Sway (and probably other Wayland stuff), via
the VMSVGA graphics controller.

Hopefully what I've provided here is helpful, but please let me know if you
need anything else.

bug

Most helpful comment

Looks like adding WLR_NO_HARDWARE_CURSORS=1 fixes the issue.

So it looks like this problem is being caused due to a Rendering issue with Wayland and the Driver.

All 13 comments

Im also experiencing this issue using Vmware and Open-vm-tools. The mouse works, but no cursor wants to appear.

I've tried basic troubleshooting and nothing is working. Including possible solutions for Wayland, Xwayland, and Xorg (that have/had this issue as well).

Can you run drm_info on your host?

This is probably due to https://github.com/swaywm/wlroots/pull/1526

EDIT: Let me link it for you...
EDIT 2: @emersion https://github.com/IComplainInComments/Output

Looks like adding WLR_NO_HARDWARE_CURSORS=1 fixes the issue.

So it looks like this problem is being caused due to a Rendering issue with Wayland and the Driver.

Also, I can confirm that using WLR_NO_HARDWARE_CURSORS=1 fixes the issue, albeit with a slightly laggy mouse, which is expected I guess.

There's a related discussion at https://www.virtualbox.org/ticket/18239#comment:14 . According to the latest post, vmsvga doesn't support hardware cursor planes yet.

An update - Virtualbox are saying things are fixed on their end (https://www.virtualbox.org/ticket/18239#comment:17).

I'm still seeing this problem with sway 1.0 on Alpine I'm afraid. Let me know if you need any more information or if I can help in any way.

I'm also seeing this issue in VirtualBox 6.0.8. They say they fixed it with 6.0.4. Did they really fix it and there's an additional issue in sway?

EDIT:
I've installed GNOME, knowing it uses Wayland, just to see whether it shows a mouse pointer. And yes, it does. I also talked to someone on Fedora who also doesn't have this issue with VirtualBox.
So I guess it's really fixed on VirtualBox' side.

I'm on Arch Linux, btw.

I've got the same issue with Ubuntu 19.04 and VirtualBox 6.0.8, using VMSVGA as graphics controller in VirtualBox.

Sorry for the "me too", I don't know if it's any useful to you but... vmware fusion 11.1.0, ubuntu 19.04 fresh install, sway 1.1.rc2. Gnome manages to display the cursor (both with X11 and wayland gnome), sway unfortunately does not

Very closely related to https://github.com/swaywm/sway/issues/3617.

One workaround is to add this to your ~/.profile:

export WLR_NO_HARDWARE_CURSORS=1

This was suggested here:

Same here with Qemu

Was this page helpful?
0 / 5 - 0 ratings

Related issues

J0nnyMak0 picture J0nnyMak0  路  3Comments

jakubn551 picture jakubn551  路  4Comments

Alphare picture Alphare  路  3Comments

emersion picture emersion  路  4Comments

DpoBoceka picture DpoBoceka  路  4Comments