VirtualBox

Ticket #14366 (reopened defect)

Opened 4 years ago

Last modified 4 days ago

Cursor misscaled in HiDPI mode when using mouse integration

Reported by: nitrous Owned by:
Component: GUI Version: VirtualBox 5.0.0
Keywords: HiDPI, retina, mouse integration, cursor Cc:
Guest type: Linux Host type: Mac OS X

Description

I am using an OS X 10.10.4 host on a Macbook Pro retina with an archlinux guest, exposing unscaled hidpi output to the guest. When mouse integration is enabled, the cursor is comically oversized -- multiplied by a factor of 2 from the hidpi bug because of my retina display, and another 1.5x from the guest's dpi, giving a 3x size cursor.  This forum post suggests it affects other guests too, though I'm not sure about other hosts.

I think the problem is probably that the mouse integration code which implements the hardware cursor is hidpi-unaware and so writes the cursor pixels naively instead of to the underlying device pixels. As a result, the cursor is obviously pixellated and out-of-place with the rest of the guest. Presumably the solution is to simply test whether unscaled mode is on and to then remap the cursor to device pixels.

Change History

comment:1 Changed 3 years ago by dax

Just to confirm: same problem affects Windows 8.1 Guest and HiDPI activated. Temporary workaround: disabling Mouse Integration.

comment:2 Changed 3 years ago by Radhe

I have a Windows 10 guest on Mac OS 10.10.5 (Yosemite) host using VirtualBox 5.0.4. Same problem.

Workaround is not a good one for me, personally. Rather deactivate Unscaled HiDPI mode.

comment:3 Changed 3 years ago by s4y

Same here, this is annoying.

comment:4 Changed 3 years ago by tk111

Same story on OS X as host, and Linux & Windows (guest), cursor is huge when hidpi & scaling is On.

comment:5 Changed 3 years ago by 32bits

Same here. OS X host, Windows 10 guest. Disabling mouse integration is the only work around.

comment:6 Changed 3 years ago by hardingt

Also having the same issue, this issue is now 9 months old, more and more HiDPI devices are being released, this is going to show up more and more often. OSX Host, Windows 10 client

Last edited 3 years ago by hardingt (previous) (diff)

comment:7 Changed 3 years ago by Grillbrick

Also having the same issue. Mac OS 10.11.4 (Host) and Windows 10 (Guest).

comment:8 Changed 3 years ago by frank

Should be fixed in 5.1. Please try the most recent available Beta (currently 5.1 Beta 3).

comment:9 Changed 3 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

comment:10 Changed 3 years ago by adaugherity

  • Status changed from closed to reopened
  • Resolution fixed deleted

This does not appear to be fixed in 5.1.2 -- I still have the giant mouse cursors in a Windows 10 guest.

(I currently have much bigger problems with Unscaled HiDPI, like #15707, but noting for the record that the mouse cursor bug is still present.)

comment:11 Changed 2 years ago by Jorrit

A similar issue is the following:

I have 4K display but I want to run my Win10 and Ubuntu machines on lodpi so I set scaling to 200%. Everything works fine, much better than VMware, except for the cursor: it is displayed at half the expected size.

comment:12 Changed 2 years ago by hardingt

Still not fixed, 10.11.5 Host, Windows 10 Enterprise Guest, 5.0.26 r108824. Giant mouse cursor in HiDPI mode. If you turn off mouse integration it is back to the size it should be, but choppy as hell, which is probably why mouse integration exists.

Last edited 2 years ago by hardingt (previous) (diff)

comment:13 Changed 2 months ago by rokopt

I upgraded to VirtualBox 6.0 (from the latest 5.x) today, and immediately this issue appeared on all my VMs (which include both Linux and Windows 10 guests). My host is running Windows 10 at 4K resolution. The mouse pointer is so large as to make it difficult to tell what I'm clicking on. As others have observed, turning off mouse pointer integration restores it to the proper size, but makes moving it choppy and requires clicks or keypresses to capture and release the pointer.

comment:14 Changed 4 weeks ago by ThetaPhi

The issue now also appeared in my Virtualbox 6.0.2 installation on Windows. I also have a Higher DPI display which is normally scaled by Windows to 150%. The VM is running Windows 10 with native solution and the client VM therefore also zooms by 150%. It looks like the mouse cursor seems to be scaled 2 times, by the Host and the Guest (150%*150% = 225%).

comment:15 Changed 2 weeks ago by papayo29

Same here. VirtualBox 6.0.4 on Windows 10 host connected to a 4K monitor. At 4K resolution the mouse cursor is misscaled and is very large on both Windows and Linux guests. Using the Windows host default zoom setting at 150% gives an insanely large cursor. Reducing the Windows host zoom setting to 100% has some effect ont VMs' cursor size, but cursor is still larger than should be. When the host monitor resolution is lowered (i.e to 2560x1440) the VMs' mouse cursor is displayed at a normal size

Last edited 2 weeks ago by papayo29 (previous) (diff)

comment:16 Changed 11 days ago by Thorarin

It gets really silly when you have a 4k laptop and both Windows host and guest are set to 250% scaling.

VirtualBox 6.0.4, Windows 10 host, Windows 10 guest.

comment:17 Changed 9 days ago by annaparker

Same here, just switched from well working VBOX5 to VBOX 6 and experiencing the same problem. The guest OS Windows, same problem from XP to 8.1.

EDIT: Downgrade successful.

Last edited 9 days ago by annaparker (previous) (diff)

comment:18 Changed 4 days ago by 57696C6C69616D

Yeah, I have this as well on Vbox 6. The large cursor in Windows 10/10 ltsb. Also the cursor doesn't quite line up with what I am clicking on, so I have to guess a little. Turning off Windows scaling does fix the issue.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use