2009/08/17

Troubleshooting VirtualBox mouse integration (Ubuntu 9.04 guest)

Since many people have had issues getting the Guest Additions mouse integration to work, I decided to post a quick fix for this. Please refer to my previous post Troubleshooting VirtualBox 2.1.4 Guest Additions for help installing Guest Additions (then come back here if you are experiencing mouse integration problems).
All you have to do is add the following lines to /etc/X11/xorg.conf
Section "InputDevice"   
        Identifier  "vboxmouse"   
        Driver          "vboxmouse"   
        Option          "CorePointer"   
        Option          "Device"        "/dev/input/mice"   
EndSection
Then simply restart X by pressing Host+Backspace and your mouse integration should be working.



2 comments:

David Karnok said...

Thats nice, but why is this not automatically added to xorg.conf when I install the additions?

ch3mical fusi0n said...

Good question. I think it's because Xorg is trying to deprecate xorg.conf in favor of the HAL (Hardware Abstraction Layer) method that most modern operating systems use.

It's not always fail-proof.