Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Discussions related to using VirtualBox on Windows hosts.

Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Postby lylemelende » 12. Sep 2021, 12:20

Hi, I'm facing a problem with the mouse cursor in Ubuntu virtual machines. I am not using Virtualbox's integrated mouse mode as it is buggy on Linux machines. When my cursor is on the primary monitor, the cursor is mirrored to the second monitor. When I move my mouse to the second monitor, the mouse cursor disappears visually but is still able to interact with the machine as if it had not disappeared.

This is my first post so I am not allowed to post urls, see this screen recording for a demonstration: www streamable com/z8vwg0

I have tested this with xubuntu 20.10 and a fresh install of Linux Mint 20.2, both machines have the same issue.

My computer specs:

Virtualbox 6.1.26
Windows 10 64 bit
Intel i5-9400F
32GB Ram
GTX 750 Ti
lylemelende
 
Posts: 7
Joined: 12. Sep 2021, 12:07

Re: Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Postby mpack » 12. Sep 2021, 13:38

Please provide a VM log file. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.
mpack
Site Moderator
 
Posts: 34716
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Postby lylemelende » 12. Sep 2021, 14:32

Here is the log file:
Attachments
Mint-2021-09-12-13-30-24.zip
(35.82 KiB) Downloaded 5 times
lylemelende
 
Posts: 7
Joined: 12. Sep 2021, 12:07

Re: Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Postby scottgus1 » 26. Sep 2021, 14:09

I don't see anything wrong as such in the log. But there are a few things that can be tried, which might also fix the apparently "buggy" Mouse Integration too.

Host CPU status:
00:00:03.682627 CPUM: Logical host processors: 6 present, 6 max, 6 online, online mask: 000000000000003f
00:00:03.682628 CPUM: Physical host cores: 6
00:00:03.682846 Full Name: "Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz"

Guest CPU settings:
00:00:02.982129 NumCPUs <integer> = 0x0000000000000006 (6)

This may not be the cause of the double mouse cursor, but it's not usually a good idea to throw lots of processors at a VM, unless there is heavily-multi-threaded 3rd-party software, like video transcoding, code-compiling, etc., installed in the VM. Host code has to schedule the VM's threads, and this scheduling is extra time the VM can't do anything. If this is a plain-vanilla Linux OS, try reducing processor count to 2.

RAM settings:
00:00:02.852550 Host RAM: 32706MB (31.9GB) total, 24238MB (23.6GB) available
00:00:02.982132 RamSize <integer> = 0x0000000400000000 (17 179 869 184, 16 384 MB, 16.0 GB)
00:00:02.982331 VRamSize <integer> = 0x0000000003200000 (52 428 800, 50 MB)

Video settings:
00:00:02.982325 3DEnabled <integer> = 0x0000000000000000 (0)
00:00:02.982329 VMSVGA3dEnabled <integer> = 0x0000000000000000 (0)
00:00:02.982330 VMSVGAEnabled <integer> = 0x0000000000000001 (1)
00:00:02.982330 VMSVGAPciBarLayout <integer> = 0x0000000000000001 (1)
00:00:02.982330 VMSVGAPciId <integer> = 0x0000000000000001 (1)

00:00:02.816528 VirtualBox VM 6.1.26 r145957 win.amd64 (Jul 28 2021 17:15:09) release log
00:00:26.389551 VMMDev: Guest Additions information report: Version 6.1.26 r145957 '6.1.26'

Up-to-date Guest Additions are installed. So 3D acceleration can be enabled, and video RAM maxed out. The host has room for the extra bit of video RAM.

Please then turn on Mouse Integration, and let us know what happens.
scottgus1
Site Moderator
 
Posts: 13279
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Postby lylemelende » 26. Sep 2021, 19:11

I enabled 3D acceleration and turned down the number of cores to 2. The desktop environment becomes bugged and most items are displayed as a solid white color. See this screen capture: https://streamable.com/nb7kem

I don't want to use mouse integration because scrolling does not work properly, see this thread: viewtopic.php?f=6&t=103879&p=506255

With mouse integration disabled, the issue still persists and I see duplicate cursors.

I have attached the log file to this post.
Attachments
Mint-2021-09-26-18-05-35.zip
(33.39 KiB) Downloaded 1 time
lylemelende
 
Posts: 7
Joined: 12. Sep 2021, 12:07

Re: Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Postby scottgus1 » 26. Sep 2021, 19:16

I've seen that white-block issue recently in the forum, can't locate the link. It's been in the last few weeks though.

scottgus1 wrote:Please then turn on Mouse Integration, and let us know what happens.
lylemelende wrote:I don't want to use mouse integration because scrolling does not work properly,

While scrolling does not work, what did the mouse cursor do when you followed my directions to test MI?
scottgus1
Site Moderator
 
Posts: 13279
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Postby fth0 » 26. Sep 2021, 19:31

scottgus1 wrote:I've seen that white-block issue recently in the forum, can't locate the link.

You'll find my concise summary in the last paragraph of Cinnamon + Mesa 21.0.3 white screen.
fth0
Volunteer
 
Posts: 2462
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...

Re: Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Postby lylemelende » 26. Sep 2021, 19:32

scottgus1 wrote:While scrolling does not work, what did the mouse cursor do when you followed my directions to test MI?

The mouse does not appear duplicated and behaves normally, the only issue is the ability to scroll. This can be seen in the video above before I disabled mouse integration at about 0:12.
lylemelende
 
Posts: 7
Joined: 12. Sep 2021, 12:07

Re: Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Postby scottgus1 » 26. Sep 2021, 19:33

Awesome! Thanks, fth0, that was what I was remembering.
scottgus1
Site Moderator
 
Posts: 13279
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Mouse cursor is duplicated and hidden on second screen on Ubuntu virtual machines

Postby scottgus1 » 26. Sep 2021, 19:34

lylemelende wrote:The mouse does not appear duplicated and behaves normally

Good. The double mouse cursor might be coming from the double mouse driver interpretation that is discussed in your other post. How to fix that, I have absolutely no idea. :D
scottgus1
Site Moderator
 
Posts: 13279
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: No registered users and 50 guests