Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The "mouse integration" feature in Virtualbox is pretty handy in most cases, but I need to have it disabled. Unfortunately, it looks like I have to press Host+I at every boot of the virtual machine.

Is there a way to disable "mouse integration" permanently? It would be good if this could be done on a per-virtual machine basis.

share|improve this question
    
"Unfortunately, it looks like I have to press Host+I" :'( –  John T Nov 24 '10 at 0:52
    
Ok, it sounds whiny, but the point is that I suspect that when mouse integration kicks in, it disrupts my Wacom tablet. But I didn't want to mention that problem because it is irrelevant here, I'll post another question on that :P –  UncleZeiv Nov 24 '10 at 0:55
    
Linux or Windows vm? –  John T Nov 24 '10 at 0:56
    
I'm using Windows 7 64bit as host and Ubuntu 10.10 64bit as guest. I didn't mention it as I expected it to be a feature of Virtualbox itself... if it exists, that is. –  UncleZeiv Nov 24 '10 at 1:12
    
Post your xorg.conf please. –  John T Nov 24 '10 at 23:45

4 Answers 4

up vote 1 down vote accepted

Until now I saw that the auto mouse integration kicks in just on the linux hosts. So disabling it permanently is not possible.

share|improve this answer
1  
If you ever come back, @Darwin's answer does work on linux –  Izkata Jan 9 '13 at 21:27

I have had three problems on a linux host:

If it is not disabled you have to hit Return when VBox asks to go full screen
Mouse de-integration is not automatic (my client nabs the usb mouse directly)
and...
The VBoxControl program in the client savestate command is borked

The following script takes care of all three issues.
It requires you to apt-get wmctrl and xdotool.
Guest additions must be installed.

Change VM_NAME!
Change DISPLAY to whatever monitor you want.
To savestate run "sudo VBoxControl guestproperty set SaveStateNow 1" in a client terminal.

---cut-here---

#!/bin/bash
VM_NAME='My Machine Name'
MAXTRIES=20

export DISPLAY=:0.1
VBoxManage startvm "$VM_NAME" &

i="0"
while [ $i -lt $MAXTRIES ]; do
  echo Fullscreen try $i
  wmctrl -a "VirtualBox - Information"
  if [ $? == 0 ]; then
    sleep 1
    xdotool key "Return"
    break
  fi

  sleep 1
  i=$[$i+1]
done

i="0"
while [ $i -lt $MAXTRIES ]; do
  echo Pointer try $i
  GUEST_ADDITIONS_ACTIVE=`VBoxManage showvminfo "$VM_NAME" | grep "Additions run level" | cut -d : -f 2`
  if [ $GUEST_ADDITIONS_ACTIVE == "1" ]; then
    sleep 1
    xdotool key "Super_R+i"
    break
  fi

  sleep 1
  i=$[$i+1]
done

while true; do
  if [ "`VBoxManage guestproperty get "$VM_NAME" SaveStateNow`" != 'No value set!' ]; then
    echo Saving...
    VBoxManage guestproperty set "$VM_NAME" SaveStateNow
    VBoxManage controlvm "$VM_NAME" savestate
    break
  fi
  sleep 1
done
share|improve this answer

This turns it off permanently.

VBoxManage modifyvm "your-vm-name" --mouse ps2
share|improve this answer
    
Just tested it, does NOT work in the latest VirtualBox on FreeBSD. –  Brandon Thomson Nov 11 '13 at 17:08
    
Maybe one of theas could work on FreeBSD ? Replace ps2 with one of theas (usb|usbtablet|usbmultitouch) –  Darwin Nov 11 '13 at 19:53
    
seems nothing to be working on OS X –  Yrogirg Dec 17 '13 at 16:00

Weird fix for this problem:

  • Click into popup message.

This message expands and show more text and a checkbox field with text Don't show this message again

http://i.stack.imgur.com/z21d8.png

  • Check it and enjoy!
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.