Opened 22 months ago
Last modified 18 months ago
#21780 new defect
Mouse stucking in Guest (usually Linux) in Gnome Wayland Host
Reported by: | hamidpeywasti | Owned by: | |
---|---|---|---|
Component: | GUI/seamless | Version: | VirtualBox-7.0.10 |
Keywords: | mouse | Cc: | hamidpeywasti |
Guest type: | all | Host type: | Linux |
Description
Hi,
Mouse doesn't work on Linux guests. After a lot of debuging, I find out what a the problem and the solution.
The problem is "Mini Toolbar" and disabling it is the solution.
I have to mention that it doesn't happen in Gnome with X11 window system and only in Wayland.
I hope that you figure it out.
Thanks
Change History (5)
comment:2 by , 20 months ago
I have the same issue using VirtualBox 7.0.10 r158379 (Qt5.15.3) on an Ubuntu 22.04 LTS Host with Gnome 42.9 under Wayland and with a Windows 10 Guest running VirtualBox Guest Additions. If the Mini ToolBar is set to "Show in Full-screen/Seamless" (which is the default), then the mouse will become unresponsive when the VM is switched to full-screen mode. (It works fine before it is switched into full-screen mode.) Disabling the Mini ToolBar and rebooting the VM restores mouse control, even when in full screen mode.
comment:3 by , 19 months ago
I can confirm the problem as well as the workaround on Debian 11 with GNOME 3.38 an Qt 5.15.2, using VirtualBox 7.0.10
Time when mouse is lost is apparently completely random, from within seconds after starting the guest to more than 30 minutes. Keyboard still works within the guest; I can close all apps and shutdown gracefully using Alt+Tab and Alt+F4.
I can add that when this happens and the VirtualBox main window is open at the time, it also becomes unresponsive until the guest is shut down.
I would be happy to provide logs etc. as the workaround is really ugly for me. I need to switch often between guest and host, and without the mini toolbar this is getting annoying quickly.
comment:4 by , 19 months ago
I forgot to mention that this happens on Windows guests, too.
I examined a possible relation with bug #18679 - setting QT_QPA_PLATFORM=xcb does not help in this case.
VirtualBox 7.0.12 is affected as well.
comment:5 by , 18 months ago
This and similar issues were already in Virtualbox 5, I think Wayland is not really a priority. Here see one of the old tickets: https://www.215389.xyz/ticket/19043
I have been having same issue on Linux guests (host also Linux). Host is OpenSUSE Tumbleweed (version 20230819). VirtualBox version: 7.0.10_SUSE r158379 (installed from OpenSUSE repository. Desktop is Gnome 44.3 (Wayland). Guests are various Debian versions.
Linux guests suddenly lose mouse integration (unresponsive to mouse clicks) and also the VirtualBox GUI becomes unresponsive to mouse clicks. Issue is both with guest in windowed and fullscreen modes.
To gracefully shutdown the guest OS'es I can exit fullscreen and click guest window corner-"X" (close) to bring up the guest OS exit menu. Then, via keyboard, I can select "shut down" or "reboot".
I have disabled the "mini toolbar" as per hamidpeywasti's suggestion and will report back if the issue repeats. Selecting "stop" -> "ACPI shutdown" on guests from VirtualBox GUI does nothing once this issue has happened.
Please let me know which info's, logs etc. you need to debug this issue.
Thanks for an awesome product!