-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for VirtualBox guests #23
base: master
Are you sure you want to change the base?
Conversation
This adds support for the 'USB Tablet' absolute pointing device emulated by VirtualBox. This enables Linux guests to seamlessly integrate, i.e. the pointer doesn't have to be captured by the guest anymore. Pointer movement, all five buttons (two of them being mapped to 'middle') and both vertical and horizontal wheels are supported. Vertical mouse wheel functionality could be verified using links in framebuffer mode. Horizontal wheel is untested due to the lack of a device with that feature.
Tested on Arch x64 inside VBox 5.1.30 works well with 1 minor quirk: |
@fonic, thank you for this! I was about to write a PR for supporting a QEMU USB Tablet, but after looking at yours and trying it, it works as-is for QEMU on Arch. I think this would be great to get merged. It might be worth naming it something different than It also might be a good idea to put the last part of the patch in alphabetical order, whether it stays as |
Does this patch implement general USB tablet support? How is it specific to virtualbox? What about qemu? The real issue here seems to be that gpm seems to lack support for tablet devices (which by definition send absolute coordinates, AFAIK). So what's missing to have general tablet support? |
This has been developed for and tested with VirtualBox, that's what makes it specific. @jamespharvey20 has tested it successfully on QEMU. I don't use QEMU and thus haven't verified. I could, but then there seems to be little interest in merging this PR (it's been open for almost 6 years now), so why invest precious time. Does this implement general USB tablet support? Who knows. It might, it might not. I don't own any USB tablets and thus can't verify.
Well, feel free to put in some work and investigate how [USB] tablets of different vendors work. The question is whether tablets in general present themselves like VirtualBox's USB tablet or not (quote from my own commit):
|
Please add this because the other mouse drivers aren't usable in the virt-manager console. |
If you are using Arch Linux or some derivative, you can use |
This adds support for the 'USB Tablet' absolute pointing device emulated by VirtualBox. This enables Linux guests to seamlessly integrate, i.e. the pointer doesn't have to be captured by the guest anymore.
Pointer movement, all five buttons (two of them being mapped to 'middle') and both vertical and horizontal wheels are supported.
Vertical mouse wheel functionality could be verified using links in framebuffer mode. Horizontal wheel is untested due to the lack of a device with that feature.
Tested with:
Please note:
/dev/input/mice
will not work