Gentoo Guest - Mouse Buttons

Discussions about using Linux guests in VirtualBox.
Post Reply
igkins
Posts: 4
Joined: 23. Oct 2008, 00:21

Gentoo Guest - Mouse Buttons

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
igkins
Posts: 4
Joined: 23. Oct 2008, 00:21

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
igkins
Posts: 4
Joined: 23. Oct 2008, 00:21

Post 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.
igkins
Posts: 4
Joined: 23. Oct 2008, 00:21

Post by igkins »

Turns out that hal was not started, which I guess the additions need. T
arentweallhorses
Posts: 1
Joined: 27. Sep 2009, 14:12
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Gentoo, Debian

Re: Gentoo Guest - Mouse Buttons

Post 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.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Gentoo Guest - Mouse Buttons

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
lCine7ic
Posts: 5
Joined: 16. Jul 2008, 19:11

Re: Gentoo Guest - Mouse Buttons

Post 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?
Euge444
Posts: 1
Joined: 17. Nov 2009, 23:16
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: Gentoo Linux, Windows 7
Location: Norwich

Re: Gentoo Guest - Mouse Buttons

Post 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
sor
Posts: 1
Joined: 8. May 2010, 22:10
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: gentoo

Re: Gentoo Guest - Mouse Buttons

Post 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
Post Reply