Page 1 of 1

Gentoo Guest - Mouse Buttons

Posted: 23. Oct 2008, 00:31
by igkins
Hello,

For the life of me, I can't get the guest-additions to work properly on a base gentoo install. The mouse integration looks likes its working in that the mouse moves correctly over the virtualbox window and the window resizes correctly. However, none of the mouse buttons do anything (or at least the right one, using openbox as my WM). If I change my mouse driver from vboxmouse to just mouse, then mouse integration stops working, but I can at least capture mouse clicks. Here is my mouse sections from my x11:

Code: Select all

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "vboxmouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection
I've tried specifying Buttons "3" and that doesn't work either. I'm using X server 1.5.2 with the portage version of guest-additions 2.0.2. Windows server 2k3 is the host. It looks like vboxvideo is working as the window resizes. However, seamless doesn't work either, though i'm not so concerned about that. My kernel is 2.6.25-r8.

Posted: 23. Oct 2008, 19:46
by Sasquatch
VB will only pass 3 buttons to the VM. Even if your mouse would have 15 buttons, you will only be able to use 3 of them in the VM. Unless you connect the mouse to the Guests USB port, but you will lose that mouse in the Host.

Posted: 23. Oct 2008, 19:52
by igkins
I have a mouse that has 3 buttons and a scroll. I don't care about using the other buttons, I only care about the main 3. They work, without mouse integration, when using driver "mouse". They fail to work, at all, when using the vboxmouse driver, so I don't think its an issue of connecting it directly to guest usb. It also works just fine using the ubunti vdi.

Posted: 23. Oct 2008, 20:10
by Sasquatch
I advise you to remove the z-axis and device config from your xorg.conf, it it looks like this:

Code: Select all

Section "InputDevice" 
        Identifier  "Mouse0" 
        Driver      "vboxmouse" 
        Option      "Protocol" "auto" 
EndSection

Posted: 23. Oct 2008, 23:07
by igkins
Still having the same problem. No buttons work. I tried it with both the binaries from the CD as well as the one's in portage.

Posted: 25. Oct 2008, 22:02
by igkins
Turns out that hal was not started, which I guess the additions need. T

Re: Gentoo Guest - Mouse Buttons

Posted: 27. Sep 2009, 14:29
by arentweallhorses
I'm having the same issue. For me it's a Gentoo guest in VirtualBox 3.0.6, where with guest additions installed (also 3.0.6), I'd be able to move my mouse around in an X environment (Xfce4) with interface responding properly and pointer changing accordingly, but none of the mouse buttons working. Keyboard/graphics are working just fine. Tried both xorg.conf examples suggested here. My hal is running (hald, as it's a daemon). My current xorg.conf section pertaining to mouse is as follows:

Code: Select all

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "vboxmouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection
Would be grateful for any assistance.

Re: Gentoo Guest - Mouse Buttons

Posted: 28. Sep 2009, 10:19
by Sasquatch
Some users reported the need of both vboxmouse and mouse driver configuration in their xorg.conf file. This was with OpenSuSE as Guest. The vboxmouse makes seamless integration possible, while the mouse driver provides the clicks.

Re: Gentoo Guest - Mouse Buttons

Posted: 22. Oct 2009, 21:21
by lCine7ic
arentweallhorses wrote:I'm having the same issue. For me it's a Gentoo guest in VirtualBox 3.0.6, where with guest additions installed (also 3.0.6), I'd be able to move my mouse around in an X environment (Xfce4) with interface responding properly and pointer changing accordingly, but none of the mouse buttons working. Keyboard/graphics are working just fine. Tried both xorg.conf examples suggested here. My hal is running (hald, as it's a daemon). My current xorg.conf section pertaining to mouse is as follows:

Code: Select all

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "vboxmouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection
Would be grateful for any assistance.
I'm having the same problem -- did you manage to fix it?

Re: Gentoo Guest - Mouse Buttons

Posted: 17. Nov 2009, 23:46
by Euge444
I've had the issue with the mouse buttons not working in the guest OS and haven't been able to find a solution on the web. After much trial and error I believe I've hit on a resolution to the issue.

I'm running Gentoo X86 guest on Windows 7 Home Premium using VirtualBox V3.0.10r54097

I fixed the issue by doing the following:

1. Re-compiled kernel (2.6.30-r8) with the mouse and event interfaces as modules:

Code: Select all

Device Driver  --->
  Input device support  --->
    <M> Mouse interface
    <M> Event interface
    <M> Event debugging
    <*> Mice
      <M>   PS/2 mouse
2. Adjusted /etc/make.conf from:

Code: Select all

INPUT_DEVICES="keyboard virtualbox evdev"
VIDEO_CARDS="virtualbox"
to:

Code: Select all

INPUT_DEVICES="keyboard virtualbox evdev mouse"
VIDEO_CARDS="virtualbox"
3. Adjusted relevant sections of /etc/X11/xorg.xonf to:

Code: Select all

Section "ServerLayout"
        Identifier     "Layout0"
        Screen         "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier     "Keyboard0"
        Driver         "kbd"
EndSection

Section "InputDevice"
        Identifier     "Mouse0"
        Driver         "vboxmouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/input/mice"
        Option         "ZAxisMapping" "4 5 6 7"
EndSection
4. Updated world:

Code: Select all

emerge --sync
emerge -DuNav world
The last step seemed to do the trick - it picked up the extra 'mouse' reference in my INPUT_DEVICES section of /etc/make.conf and pulled in a re-emerge of xorg-server and the mouse driver among other packages. I notice that 'psmouse' is now showing up when I run:

Code: Select all

lsmod
All I've got to get working now is seamless mode and dynamic re-sizing of the guest OS screen. I hope the above helps someone out!

Regards,

Euge

Re: Gentoo Guest - Mouse Buttons

Posted: 8. May 2010, 22:18
by sor
hi, vbox forum!

i had this problem too in a gentoo guest, for me the problem occured when installing x11 version 7.4.
i solved the problem by rebuilding:
x11-drivers/xf86-input-virtualbox
x11-drivers/xf86-video-virtualbox
app-emulation/virtualbox-guest-additions
x11-drivers/xf86-input-evdev

the last package was crucial, it didnt work with just compiling the 3 vbox packages

hope this helps
Jan