I have a laptop running a Windows 7 host and have Windows XP and Ubuntu 9.04 guest OSes under VBox 3.0.6. I need to exclusively use XP for some work so it is often running at least in the background. I also often need move from desk to desk around the office, but i really despise the touchpad so I carry a wireless mouse with me. Since I need XP for work I have a USB filter to automatically redirect ALL usb devices (ie usb flash drives) to the guest (XP) and bypass the host (USB filter set to "YES"). Guest additions are installed.
This issue I am having is when I need to move more than just a few feet. In this case I unplug my mouse so the computer fill fit in the briefcase - the USB receiver sticks out too far to leave it plugged in. Regardless of if I suspend my computer or leave it running, when I plug the mouse back in the mouse does not behave correctly. When I plug it in the cursor can only be moved by the touchpad, which still works seemlessly between the guest and host. However, the USB mouse only works in the guest OS and it is a second INVISIBLE CURSOR. I can tell the mouse still works because i can left and right click and the appropriate actions occur when the cursor should be. However, the visible cursor only moves when you use use touchpad yet both will interact with the guest simultaneously.
So, I tried setting changing the USB filter to "ANY" but it acts exactly the same. I changed it to "NO" but it also behaves the same way - but setting it to "NO" defeats my purpose of rerouting the USB devices so I changed it back to "YES". If I disable the filter then it behaves as it should and both the mouse and touchpad will control the cursor when I remove and reattach the mouse.
I do not know if this would be a bug since it obviously is a USB mouse and I have USB devices directed to the guest. Regardless, it seems that a mouse should be a special case since it works as it should with the filter enabled as long as I either shutdown or save and close the guest before reattaching the mouse. The only time I have any issues with the mouse, even with the filter enabled, is when I unplug it and reattach it with the guest running.
Generally I use an XP Guest and that is where I discovered this issue, however it is repeatable in Ubuntu as well so it is not a Windows issue. Any advice or suggestions would be appreciated.
USB Mouse Bug?
-
kwchristensen
- Posts: 2
- Joined: 5. Oct 2009, 01:13
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: Windows XP, Ubuntu
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: USB Mouse Bug?
You really should not have the mouse or the keyboard set in a filter on the guest.
They are a shared resource and will cause weird things to happen if you filter them.
They are a shared resource and will cause weird things to happen if you filter them.
-
kwchristensen
- Posts: 2
- Joined: 5. Oct 2009, 01:13
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: Windows XP, Ubuntu
Re: USB Mouse Bug?
Thanks for reminding me of something else to add. My goal was to route all USB devices to the guest as I stated before, except the mouse. So I also tried in addition to a USB filter for all to add a second filter as an exception for the mouse. When I set the filter for the mouse - "No" seemed the logical choice; my understanding is that setting should give control to the host always and everything would work as expected in theory. However when I set this filter it disabled the mouse completely in the guest AND in the host (although the touchpad still worked). I changed the settings to "Any" and "Yes" just to see what would happen and the mouse was completely disabled under those settings as well. As soon as the guest was closed the mouse started working again.