Bug 358460 - sax2: assign unique ids to virtualbox/vmware mouse pointers
Summary: sax2: assign unique ids to virtualbox/vmware mouse pointers
Status: RESOLVED FIXED
: 371553 (view as bug list)
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: Installation (show other bugs)
Version: Alpha 2
Hardware: Other Other
: P5 - None : Critical (vote)
Target Milestone: ---
Assignee: Martin Kudlvasr
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-04 10:16 UTC by Magnus Boman
Modified: 2008-05-21 16:39 UTC (History)
7 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
screenshot (40.85 KB, image/png)
2008-02-04 10:59 UTC, Magnus Boman
Details
hwinfo --gfx (672 bytes, text/plain)
2008-02-04 12:09 UTC, Magnus Boman
Details
xorg.conf (2.46 KB, text/plain)
2008-02-04 22:14 UTC, Magnus Boman
Details
VMware xorg.conf (4.23 KB, text/plain)
2008-02-16 22:31 UTC, Magnus Boman
Details
VirualBox xorg.conf (3.65 KB, text/plain)
2008-02-17 00:10 UTC, Magnus Boman
Details
sax2-vboxmouse-vmmouse.diff (711 bytes, patch)
2008-02-17 02:09 UTC, Stefan Dirsch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Boman 2008-02-04 10:16:24 UTC
Some distributions ship with GFX and mouse drivers for virtual products (VMware, VirtualBox etc) by default. This will not only enable us to detect the correct resolution, but also allow the user to freely move the mouse from the virtual OS to the physical OS without special key combinations.
Comment 1 Stefan Dirsch 2008-02-04 10:53:07 UTC
We have vmware/vmmouse (xorg-x11-driver-video/xorg-x11-driver-input) and vboxvideo/vboxmouse (xorg-x11-driver-virtualbox.rpm). What else are you missing?
Comment 2 Magnus Boman 2008-02-04 10:59:27 UTC
Created attachment 193014 [details]
screenshot

Oh cool. I guess the issue then is that they are not activated properly.

For instance, when I installed Mandriva in VirtualBox, I got the attached message from VB. When I install openSUSE, I always have to capture/release the mouse pointer.

I since wiped Mandriva but I can install it again and provide you with the xorg.conf if that would help?
Comment 3 Stefan Dirsch 2008-02-04 11:34:34 UTC
I think we could make sure that xorg-x11-driver-virtualbox will be installed if such a (software-emulated) hardware device exists by adding the appropriate Supplements line to the specfile. So what's the output of "hwinfo --gfxcard" inside of virtualbox?

Adding the video driver support to SaX2 then would be rather easy as well instead of SaX2 using vga/vesa for virtualbox instead. See xorg-x11-driver-video-unichrome for an example.

What's still missing is the integration of the vmmouse/vboxmouse in SaX2. But let's begin with vboxvideo.
Comment 4 Magnus Boman 2008-02-04 12:09:33 UTC
Created attachment 193020 [details]
hwinfo --gfx
Comment 5 Stefan Dirsch 2008-02-04 13:29:22 UTC
So let's add

  Supplements:    modalias(pci:v000080EEd0000BEEFsv*sd*bc*sc*i*)

and all the other sax2/hwinfo metadata files to xorg-x11-driver-virtualbox package.
Comment 6 Stefan Dirsch 2008-02-04 20:46:30 UTC
done. The remaining parst for vmmouse/vboxmouse need to be done in SaX2.
Comment 7 Stefan Dirsch 2008-02-04 20:52:19 UTC
Magnus, could you provide the xorg.conf snippets required for vmmwouse/vboxmouse, please?
Comment 8 Magnus Boman 2008-02-04 22:14:15 UTC
Created attachment 193120 [details]
xorg.conf
Comment 9 Stefan Dirsch 2008-02-04 22:23:23 UTC
Section "InputDevice"
    Identifier "Mouse1"
    Driver "vboxmouse"
    Option "Device" "/dev/mouse"
EndSection

/dev/input/mice works as well, right? Please also attach the snippet for vmmouse.
Comment 10 Marcus Schaefer 2008-02-06 08:01:12 UTC
I need the vendor/device ID's of the mouse to assign a profile
which applies these changes. Could you provide the information
of 

    sysp -s mouse

thanks
Comment 11 Magnus Boman 2008-02-06 08:04:13 UTC
I will add the requested information as soon as I can install from Factory or Alpha2 is available for download.
Comment 12 Stefan Dirsch 2008-02-16 11:18:16 UTC
Dirk, maybe you can provide the requested feedback for virtualbox as well?
Comment 13 Magnus Boman 2008-02-16 22:31:13 UTC
Created attachment 195291 [details]
VMware xorg.conf

I'm attaching an xorg.conf which is configured with VMware tools

mblxws01:~ # sysp -s mouse
Mouse0    =>  Protocol   : explorerps/2
Mouse0    =>  Device     : /dev/input/mice
Mouse0    =>  Buttons    : 5
Mouse0    =>  Wheel      : 1
Mouse0    =>  Emulate    : 0
Mouse0    =>  Name       : ImPS/2 Generic Wheel Mouse
Mouse0    =>  VendorID   : 0x0210
Mouse0    =>  DeviceID   : 0x0013
Mouse0    =>  Profile    : <undefined>
Mouse0    =>  RealDevice : <undefined>
Mouse0    =>  NutShell   : 0
Comment 14 Magnus Boman 2008-02-16 23:38:32 UTC
This is sysp from VirtualBox

mblxws01:/home/mboman # sysp -s mouse
Mouse0    =>  Protocol   : explorerps/2
Mouse0    =>  Device     : /dev/input/mice
Mouse0    =>  Buttons    : 9
Mouse0    =>  Wheel      : 2rpm 
Mouse0    =>  Emulate    : 0
Mouse0    =>  Name       : ImExPS/2 Generic Explorer Mouse
Mouse0    =>  VendorID   : 0x0210
Mouse0    =>  DeviceID   : 0x0025
Mouse0    =>  Profile    : <undefined>
Mouse0    =>  RealDevice : <undefined>
Mouse0    =>  NutShell   : 0

Perhaps note worthy is that xorg-x11-driver-virtualbox was not installed (I'm guessing that it should be install for this to work properly). There are problems with this package at the moment (See Bug#362564)
Comment 15 Magnus Boman 2008-02-17 00:10:17 UTC
Created attachment 195295 [details]
VirualBox xorg.conf

Here's an xorg.conf configured by VirtualBox
Comment 16 Stefan Dirsch 2008-02-17 01:51:02 UTC
Unfortunately in both cases a generic standard mouse is provided by the emulators and therefore detected by SaX2. Maybe we can at least make them selectable in SaX2, so we need entries for /usr/share/sax/api/data/cdb/Pointers?

>Perhaps note worthy is that xorg-x11-driver-virtualbox was not installed (I'm
>guessing that it should be install for this to work properly). There are
>problems with this package at the moment (See Bug#362564)

Looks like nearly all virtualbox package are currently missing on Alpha2. :-(

Comment 17 Stefan Dirsch 2008-02-17 02:09:14 UTC
Created attachment 195296 [details]
sax2-vboxmouse-vmmouse.diff
Comment 18 Marcus Schaefer 2008-02-17 16:18:48 UTC
I have added the suggested data for manual selection.
I will reassign this bug to Steffen Winterfeldt maybe he has a method
to assign unique id's for the devices in the future
Comment 19 Steffen Winterfeldt 2008-03-03 16:56:41 UTC
I gave the mouse the id 0x80ee/0x0100 and added virtualbox video & mouse
drivers to the installation system.
Comment 20 Steffen Winterfeldt 2008-03-03 17:04:35 UTC
BTW, Marcus: I've changed hwinfo in sl 11.0 to report the kernel input
device ids now.
Comment 21 Stefan Dirsch 2008-03-03 17:28:14 UTC
Thanks, so we have at least unique ids for virtualbox mouse now. Any plans to to assign also unique ids for the vmware mouse?
Comment 22 Marcus Schaefer 2008-03-04 08:42:59 UTC
I have added a vbox-mouse profile, assigned to Steffen because of virtualbox
question
Comment 23 Stefan Dirsch 2008-03-04 08:49:50 UTC
Thanks, Marcus. Should be "vmware mouse" question I think.
Comment 24 Steffen Winterfeldt 2008-03-04 09:56:57 UTC
What's the driver for vmware? vmmouse_drv?
Comment 25 Stefan Dirsch 2008-03-04 10:04:02 UTC
(In reply to comment #24 from Steffen Winterfeldt)
> What's the driver for vmware? vmmouse_drv?
Exactly.

# rpm -ql xorg-x11-driver-input|grep vm
/usr/lib64/xorg/modules/input/vmmouse_drv.so
Comment 26 Steffen Winterfeldt 2008-03-04 10:23:59 UTC
Ok, mouse id is 0x15ad/0x0100.
Comment 27 Marcus Schaefer 2008-03-04 10:41:02 UTC
done
Comment 28 Steffen Winterfeldt 2008-03-04 11:20:30 UTC
It would, if we do this, be helpful if the vbox mouse driver actually
works. Which it currently does not.
Comment 29 Wade Berrier 2008-03-04 18:11:47 UTC
(In reply to comment #28 from Steffen Winterfeldt)
> It would, if we do this, be helpful if the vbox mouse driver actually
> works. Which it currently does not.
> 

See Bug #365374 .
Comment 30 Stefan Dirsch 2008-03-04 20:18:42 UTC
Ok. So the issue is already tracked. Closing as fixed again.
Comment 31 Martin Kudlvasr 2008-03-06 14:43:21 UTC
*** Bug 365374 has been marked as a duplicate of this bug. ***
Comment 32 Stephan Kulow 2008-03-17 12:17:05 UTC
I think this change is the reason factory crashes in virtualbox - and only in virtualbox
Comment 33 Stefan Dirsch 2008-03-17 13:26:18 UTC
(In reply to comment #32 from Stephan Kulow)
> I think this change is the reason factory crashes in virtualbox - and only in
> virtualbox

See Bug #365374.

Comment 34 Marcus Schaefer 2008-03-17 19:49:38 UTC
*** Bug 371553 has been marked as a duplicate of this bug. ***
Comment 35 Dominique Leuenberger 2008-05-21 15:43:49 UTC
How's it about the vmmouse part?
Is that supposed to be 'autodetected' in a VMware installation?

The sad thing about this bug here is that it's two problems tackled in one... and after the issue with the vbox driver, it was considered as closed.

the vmware part seems to remain open though. I can see on a Beta3 installation that the mouse has the correct IDs, but it was not auto-selected by sax... which would be very nice.
Comment 36 Stefan Dirsch 2008-05-21 16:16:55 UTC
The vmmouse driver does not work. See Bug #372189.
Comment 37 Dominique Leuenberger 2008-05-21 16:21:00 UTC
partially right Stefan,

comment #9 in bug #372189 states clearly that vmmouse works in beta 3 and that's also what I have in my installation here.

Comment 38 Stefan Dirsch 2008-05-21 16:39:27 UTC
User did some manual adjustment to get it work. Our configuration didn't work, so we won't enable it. We're not interested into breaking the vmware installation at that time.