VirtualBox

Opened 9 years ago

Last modified 5 years ago

#14366 reopened defect

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 (38)

comment:1 by dax, 9 years ago

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

comment:2 by Radhe, 9 years ago

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 by s4y, 9 years ago

Same here, this is annoying.

comment:4 by tk111, 9 years ago

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

comment:5 by 32bits, 9 years ago

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

comment:6 by hardingt, 9 years ago

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 9 years ago by hardingt (previous) (diff)

comment:7 by Grillbrick, 9 years ago

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

comment:8 by Frank Mehnert, 8 years ago

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

comment:9 by Frank Mehnert, 8 years ago

Resolution: fixed
Status: newclosed

comment:10 by Andrew Daugherity, 8 years ago

Resolution: fixed
Status: closedreopened

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 by Jorrit, 8 years ago

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 by hardingt, 8 years ago

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 8 years ago by hardingt (previous) (diff)

comment:13 by rokopt, 6 years ago

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 by ThetaPhi, 6 years ago

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 by papayo29, 6 years ago

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 6 years ago by papayo29 (previous) (diff)

comment:16 by Thorarin, 6 years ago

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 by annaparker, 6 years ago

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 6 years ago by annaparker (previous) (diff)

comment:18 by 57696C6C69616D, 6 years ago

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.

comment:19 by i39dn6, 6 years ago

This is happening for me as well with 6.0.4, Windows 10 host and Windows 10 guest. Host and guest are set to 150% scaling on a ThinkPad T470p. It is very distracting and at times almost unusable to have such a comically large mouse pointer, and turning off mouse integration results in a poor experience (jumpy/delayed cursor, having to hit host key to get out of VM).

comment:20 by Georg, 6 years ago

Same problem here windows 10 host, windows 10 guest, 2 display both 4k resolution on Dell laptop. Had to downgrade to Vbox 5 because this defect is a blocker for using any version 6.

Please take car of this issue soon.

In case you need more information feel free contact me.

comment:21 by Andrew Daugherity, 6 years ago

Perhaps this would get more attention if someone with access modified the host type for this ticket to All. It was originally reported against Mac hosts but many recent comments refer to Windows hosts.

comment:22 by iljau, 6 years ago

Experiencing issue with version 6.0.4 on Windows 10 host (display scaling is set to 150%) and Ubuntu guest.

Version 5.2.26 didn't have the issue - mouse cursor was normal size.

in reply to:  21 ; comment:23 by Georg, 6 years ago

Replying to adaugherity:

Perhaps this would get more attention if someone with access modified the host type for this ticket to All. It was originally reported against Mac hosts but many recent comments refer to Windows hosts.

You are right. As no one seems to take care, created a new ticket. Maybe this gets more attention.

https://www.virtualbox.org/ticket/18521

in reply to:  23 comment:24 by Socratis, 6 years ago

Replying to Georg:

Maybe this gets more attention.

No, actually it won't. What you did manage to accomplish however, is to create a duplicate and take away those precious 3' from a developer that needs to close the other ticket.

This is not a way to draw attention. And attention isn't needed actually, they know. Keep in mind that psychological pressure, the sort that you tried to apply, actually makes the developers less keen to look at an issue.

You're not talking about an earth shuttering bug with loss of data on the host. You're talking about a cosmetic bug with a known workaround.

comment:25 by MClark, 6 years ago

I'm experiencing this in version 6.0.6. Win7 host, Ubuntu guest.

The mouse pointer not only appears large in the guest, the guest does not register clicks.

This problem manifests when Windows text (on the host) is set to "Larger - 150%". The workaround is to either disable mouse integration, or to change text in Windows to "Medium - 125%" or "Smaller - 100%".

comment:27 by ViSan, 5 years ago

Hi, on Windows 10 host, this is only happening after installing the virtualbox extension pack. I use Crystal Reports so this is getting in the way for the design.

Version 0, edited 5 years ago by ViSan (next)

comment:28 by dvp, 5 years ago

I'm also seeing this on a Windows 10 host, with Windows 10 clients.

in reply to:  13 ; comment:29 by rokopt, 5 years ago

I tried again on 6.0.10 and the problem still exists.

Replying to 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.

in reply to:  29 comment:30 by DanglerackChowderpants, 5 years ago

My position is exactly the same as rokopt.

Another possible workaround is to change your guest's mouse pointer to the smallest one available. For me, this reduces the effect of the misaligned clicking.

Last edited 5 years ago by DanglerackChowderpants (previous) (diff)

comment:31 by deckard, 5 years ago

My position is also exactly the same as rokopt.

comment:32 by EricV, 5 years ago

Just tried VirtualBox 6.0.12 and the Cursor misscaled in HiDPI problem still exists. I successfully downgraded to VirtualBox 5.2.32 again where the problem does not exist. Will this problem be solved in VirtualBox 6.X or do I need to be looking for another virtualization product?

comment:33 by Scimmiaparlante, 5 years ago

I have the same issue. Virtualbox 6.0.14 on Windows 10. Guest OS: Debian 8

comment:34 by osteng, 5 years ago

This issue basically affects all users running Windows 10 or Mac OS X with a HiDPI display and it's 4 years since it was first reported. This should really be fixed by now.

I run Virtualbox 6.0.14 on Windows 10 with Arch Linux as guest OS, and I have the same problem.

comment:35 by jdhackn, 5 years ago

I have the same issue with a Windows 10 host and the Manjaro OS as my guest. I was wondering if there has been any traction at all on getting this issue resolved? It has been an issue with a varying degree of impact for a long time now. VirtualBox has typically been my "go-to" VM product but this issue, in particular, has become a bit glaring for obvious reasons. Until this issue is resolved I'm going to have to move over to Hyper-V or VMWare I think so that I can work in peace.

comment:36 by dnmast, 5 years ago

I have a Win XP guest on a Win 10 host with a high DPI monitor and have not had this problem in VirtualBox 6.0.14, but instead have had a normal small cursor. After a Win 10 update and reboot this morning, it is showing the unusably large and misplaced cursor, which makes editing dialogs in Visual Studio very difficult. I've gone back to 5.2.34. I hope this gets fixed.

comment:37 by rokopt, 5 years ago

I think that 6.1.0 has fixed this problem for me on both my Linux and my Windows guests. Thanks!

comment:38 by DanglerackChowderpants, 5 years ago

Yes, here is a snip from the 6.1 changelog

Changelog for VirtualBox 6.1

GUI: Fixed/improved mouse pointer scaling GUI: Some issues related to mouse integration cursor scaling were addressed (bug #14366), more to go

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette