Invalid monitor order for mouse on ubuntu 22.04

Discussions about using Linux guests in VirtualBox.
Post Reply
CrogST
Posts: 3
Joined: 29. Aug 2022, 10:51

Invalid monitor order for mouse on ubuntu 22.04

Post by CrogST »

Host:
Windows 10 Pro 21H1
Build info: 19043.1889
Windows Feature Experience Pack 120.2212.4180.0
Guest: ubuntu 22.04.1 LTS
VirtualBox 6.1.36 r152435 (Qt5.6.2)

I have two monitors. The second monitor is located on the left.
Windows 10 settings:
monitors order.png
monitors order.png (2.21 KiB) Viewed 2764 times
When I turn on the second monitor for Linux, it, by default, becomes to the right of the first. Although the mouse runs as it should (like the second monitor on the left).
Through Desktop Settings, I change their places like this:
monitors order linux.png
monitors order linux.png (13.12 KiB) Viewed 2764 times
and then something strange begins.
After confirming the changes, the mouse still runs the same way (2nd monitor on the left), but the pointer clicks work as if the second monitor on the right. This can be seen by highlighting the menu items. Therefore, the displayed pointer and its actual location are different.
The problem appeared after upgrading from ubuntu 20.04.
And, in general, it is obvious that the problem is with ubuntu.

P.S. Found the "use host monitor" setting and swapped monitors. Now the mouse works correctly. But I'll leave this problem anyway, because the behavior is incorrect.
Attachments
Ubuntu-2022-08-29-11-56-17.7z
(35.08 KiB) Downloaded 4 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Invalid monitor order for mouse on ubuntu 22.04

Post by mpack »

The arrangement of your physical monitors is not relevant to the VM, which is a different PC. The virtual PC will have a number of virtual monitors which can be arranged and grouped per the norms for the guest OS.
CrogST
Posts: 3
Joined: 29. Aug 2022, 10:51

Re: Invalid monitor order for mouse on ubuntu 22.04

Post by CrogST »

Turned off mouse integration and saw two pointers. Both move synchronously, each in its own monitor, but only one of them responds to clicks. It turns out there is confusion between them. And even within Ubuntu, they behave strangely. The current pointer sometimes disappears, but continues to work.
Apparently VM sometimes takes another (invalid pointer).
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Invalid monitor order for mouse on ubuntu 22.04

Post by scottgus1 »

Pointer issues in a Linux OS may be due to using Wayland instead of X. Virtualbox has issues working with Wayland.
CrogST
Posts: 3
Joined: 29. Aug 2022, 10:51

Re: Invalid monitor order for mouse on ubuntu 22.04

Post by CrogST »

You are right!
I switched to X11 and everything works fine.
Thanks.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Invalid monitor order for mouse on ubuntu 22.04

Post by scottgus1 »

Great! Glad you're up and running.
Post Reply