Bug 444747 - vboxmouse: Driver is broken
Summary: vboxmouse: Driver is broken
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.1
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Final
Hardware: i586 Other
: P2 - High : Major with 7 votes (vote)
Target Milestone: ---
Assignee: Martin Kudlvasr
QA Contact: E-mail List
URL: http://www.virtualbox.org/ticket/3213
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-13 18:06 UTC by macias -
Modified: 2009-03-09 04:04 UTC (History)
5 users (show)

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


Attachments
xorg.conf (3.58 KB, text/plain)
2008-11-14 09:07 UTC, macias -
Details
Xorg.0.log (12.47 KB, text/x-log)
2008-11-14 09:07 UTC, macias -
Details
vboxmouse.diff (2.62 KB, patch)
2008-12-27 22:46 UTC, Stefan Dirsch
Details | Diff
X logfile for the updated driver (14.03 KB, text/plain)
2008-12-31 15:49 UTC, Stephan Kleine
Details
X logfile for the old driver (14.03 KB, text/plain)
2008-12-31 17:16 UTC, Stephan Kleine
Details
Xorg log for Vbox 2.1.2 guest additions (14.02 KB, text/plain)
2009-01-23 17:50 UTC, Stephan Kleine
Details
Xorg.0.log (xorg.conf with 2 mice, vbox without bug-444747_vboxmouse.diff) (33.38 KB, text/plain)
2009-02-05 17:57 UTC, Martin Kudlvasr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description macias - 2008-11-13 18:06:25 UTC
kde4 live cd: mouse is not working

Previous betas -- fine.

Beta5, I start the disc, when the KDM shows up and later mouse is already dead. It does not matter if I use mouse, trackpoint or touchpad, it is stuck (cursor is shown but I cannot move it). System is operational, because I can login, and later using keyboard I can close the "welcome/info" dialog.

I am not sure if it shouldn't be a major issue, since mouse is pretty basic hardware (and important one, nowadays).

Dell D610, (host) opensuse 10.3, virtualbox 2.0.4.
Comment 2 macias - 2008-11-14 09:07:20 UTC
Created attachment 252154 [details]
xorg.conf
Comment 3 macias - 2008-11-14 09:07:48 UTC
Created attachment 252155 [details]
Xorg.0.log
Comment 4 Stefan Dirsch 2008-11-14 09:18:51 UTC
Section "InputDevice"
  Driver       "vboxmouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "9"
  Option       "Device" "/dev/input/mice"
  Option       "InputFashion" "Mouse"
  Option       "Name" "Virtual Box Pointer"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

(**) Option "CorePointer"
(**) Mouse[1]: always reports core events
(**) Mouse[1]: Device: "/dev/input/mice"
(EE) Mouse[1]: Failed to open the VirtualBox device (error -102)
(II) UnloadModule: "vboxmouse"
(EE) PreInit returned NULL for "Mouse[1]"
Comment 5 Ricardo Marques 2008-11-15 21:28:17 UTC
I'm having the same problem that the reporter has.

My setup:
- Host: VirtualBox 2.0.4 running in Windows XP Professional with SP3 (Service Pack 3) 
- Guest: openSUSE 11.1. Beta 5 (GNOME setup, installed from DVD) 

The workaround mentioned in 

http://en.opensuse.org/Bugs:Most_Annoying_Bugs_11.1_dev

... specifically:

" Bug #444747: Mouse doesn't work in VirtualBox, Workaround: sed "s/vboxmouse/mouse/" -i /etc/X11/xorg.conf "

... did SOLVE the issue for me.
Comment 6 Stefan Dirsch 2008-11-16 11:48:07 UTC
Martin, please let me know, in case you don't plan to work on this issue, so SaX2 won't use vboxmouse driver for configuration any longer by default. In the update case this workaround won't work though.
Comment 7 Stefan Dirsch 2008-11-16 12:03:32 UTC
(II) Loading /usr/lib/xorg/modules//input/vboxmouse_drv.so
(II) Module vboxmouse: vendor="Sun Microsystems Inc."
	compiled for 0.0.0, module version = 1.0.0
-->                  ^^^^^
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 2.0

This should be 1.5(.x) instead.

virtualbox-ose.spec
[...]
%if %suse_version >= 1110
  %__install -m 755 vboxmouse_drv_15.so %{buildroot}%{_libdir}/xorg/modules/input/vboxmouse_drv.so
  %__install -m 755 vboxvideo_drv_15.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
%else
Comment 8 Martin Kudlvasr 2008-11-18 15:44:53 UTC
Stefan, I do plan to fix this. But in case I won't make it, what is the last time I can let you know?
Comment 9 Stefan Dirsch 2008-11-18 16:06:22 UTC
Thanks for looking into this. This friday morning - Nov 21 I need to know.
Comment 10 Martin Kudlvasr 2008-11-20 20:58:43 UTC
Too bad, I have given this task a big part of today, but no success.
Setting the "compiled for" to XORG_VERSION_CURRENT is possible, but doesn't change the behaviour. Looks like the driver is still being adapted for xorg 1.5.
So please Stefan use the regular mouse in SaX2 :-( .
Comment 11 Stefan Dirsch 2008-11-21 06:01:26 UTC
done.
Comment 12 Florian Oszwald 2008-12-19 08:56:45 UTC
Hi all,
I updated from opensuse 11.0 to 11.1 (final candidate) yesterday
After installing the guest additions, I get this:

(II) LoadModule: "vboxmouse"                                                                      
(II) Loading /usr/lib/xorg/modules//input/vboxmouse_drv.so                                        
dlopen: /usr/lib/xorg/modules//input/vboxmouse_drv.so: undefined symbol: miPointerGetMotionEvents 
(EE) Failed to load /usr/lib/xorg/modules//input/vboxmouse_drv.so                                 
(II) UnloadModule: "vboxmouse"                                                                    
(EE) Failed to load module "vboxmouse" (loader failed, 7) 

mouse shows up, but no click is possible.

The trick with sed "s/virtualbox/mouse/ -i /etc/X11/xorg.conf did the trick.
Comment 13 Stephan Kleine 2008-12-20 17:08:47 UTC
This not only affects the live cds but also an installation from dvd.

First the driver is set to "mouse" which doesn't activate the seamless mouse integration and manually setting it to "vboxmouse" activates seamless mousing but disables mouse clicks, so the suggested workaround doesn't work.

The strange thing is that I had it working just fine in an installation that went from late alpha or early beta through betas & rc till 11.2 alpha0. Only after reinstalling from 11.1 GM I wasn't able to get it working again.

I tried with VirtualBox 2.0.6 & 2.1 (binary editions).
Comment 14 Stefan Dirsch 2008-12-20 21:03:34 UTC
(In reply to comment #13 from Stephan Kleine)
> This not only affects the live cds but also an installation from dvd.

Sure.

> First the driver is set to "mouse" which doesn't activate the seamless mouse
> integration

Of course. Because vboxmouse is broken we cannot make it the default any longer.

> and manually setting it to "vboxmouse" activates seamless mousing
> but disables mouse clicks, so the suggested workaround doesn't work.

Obviously you didn't understand the workaround, which exchanges vboxmouse with
mouse and not the other way round!

> The strange thing is that I had it working just fine in an installation that
> went from late alpha or early beta through betas & rc till 11.2 alpha0. 

You would have been the only one, for whom this driver ever worked on openSUSE 11.1 Alpha/Beta.

> Only after reinstalling from 11.1 GM I wasn't able to get it working again.
> 
> I tried with VirtualBox 2.0.6 & 2.1 (binary editions).

I suggest to provide an update for the virtualbox package, which applies the
workaround in it's %post. Only update are affected here. No new installations.
Even better would be to finally fix the vboxmouse driver. Do we have any developer contacts to virtualbox?
Comment 15 Stefan Dirsch 2008-12-23 10:14:01 UTC
Luc, could you help here? Maybe it's not that hard to fix the driver for xorg-server 1.5.
Comment 16 Stefan Dirsch 2008-12-27 22:46:02 UTC
Created attachment 262531 [details]
vboxmouse.diff

Fix?
Comment 17 Stefan Dirsch 2008-12-29 16:18:00 UTC
Packages for testing (i586, x86_64) with the above patch applied will be available shortly via

  http://beta.suse.com/private/sndirsch/bug444747

Please give them a try.
Comment 18 Stefan Dirsch 2008-12-29 16:18:49 UTC
Packages are already available now.
Comment 19 Stephan Kleine 2008-12-30 18:17:53 UTC
Those change nothing for me - I'm still unable to click on anything.

I'm running VirtualBox 2.1.0 on 10.3 and tried with a new 11.1 installation.
Comment 20 Stefan Dirsch 2008-12-30 19:15:10 UTC
(In reply to comment #19 from Stephan Kleine)
> Those change nothing for me - I'm still unable to click on anything.

It would be interesting to see the X logfile for the updated driver.
Comment 21 Stephan Kleine 2008-12-31 15:49:17 UTC
Created attachment 262890 [details]
X logfile for the updated driver

X logfile for the updated driver after a fresh boot
Comment 22 Stefan Dirsch 2008-12-31 15:55:02 UTC
But this time the driver loads fine!

[...]
(II) LoadModule: "vboxmouse"

(II) Loading /usr/lib/xorg/modules//input/vboxmouse_drv.so
(II) Module vboxmouse: vendor="Sun Microsystems Inc."
	compiled for 0.0.0, module version = 1.0.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 2.0
[...]
Comment 23 Stephan Kleine 2008-12-31 17:16:09 UTC
Created attachment 262896 [details]
X logfile for the old driver

The old one loaded just fine for me as well (attached is the X logfile after doing a clean 11.1 installation & enabling vboxmouse & vboxvideo in xorg.conf).

The seamless mousing works just fine (so something has to be loaded) but one simply isn't able to "click".
Comment 24 Stefan Dirsch 2009-01-01 19:51:10 UTC
Great. So Florian and you have completely different issues.
Comment 25 Stefan Dirsch 2009-01-02 12:38:00 UTC
But let's wait for feedback by Florian first.
Comment 26 Florian Oszwald 2009-01-02 17:22:37 UTC
The first one which did not load was directly from the guest additions.

I installed the new one provided under the link above. Loads fine now.
But still same issue. I can move the mouse, also catching works, but no clicking is possible.

Do you need further informations?
Please let me know.
Comment 27 Stefan Dirsch 2009-01-02 17:36:43 UTC
Ok. So in the end you both have the same issue.
Comment 28 Stephan Kleine 2009-01-23 17:50:38 UTC
Created attachment 267351 [details]
Xorg log for Vbox 2.1.2 guest additions

FYI: I just tried with VirtualBox 2.1.2 (binary edition) and it still doesn't work  (exact same problem as before).

The logfile is attached.
Comment 29 Martin Kudlvasr 2009-01-29 10:25:39 UTC
I tested the newest PUEL 2.1.2 and the issue is still the same as in 2.0.6 - mouse integration works, but no clicks.
I filed a new bug on this issue on vbox bugtracker (http://www.virtualbox.org/ticket/3213). Previously, there (in vbox bugtracker) was a bug about mouse integration not working at all, which somehow got resolved ...
I think we have to wait until it is solved in the upstream.
Comment 30 Erik Putrycz 2009-01-30 06:30:46 UTC
I see that this bug is marked resolved but there are no details about the resolution.
Should we wait for a newer vbox or will this be fixed only in factory?
Comment 31 Stefan Dirsch 2009-01-30 07:51:44 UTC
This is no the first time the question arises about resolution upstream. Looks like we need a FAQ for resolutions in Novell's Bugzilla. Probably some place
on opensuse.org.
Comment 33 Stefan Dirsch 2009-01-31 09:04:52 UTC
We just got new information by VirtualBox/SUN. 

Martin, could you give the proposal by Michael Thayer, i.e. mouse and vboxmouse driver both in place a try?

If it works this would have been the wrong approach and I would just need to
revert it in SaX2.

sax2.changes:
------------------------------------------------------------------------
r1757 | sndirsch | 2008-11-06 11:49:15 +0100 (Do, 06 Nov 2008) | 4 lines

- accept vboxmouse as standard mouse, i.e. no longer add default
  mouse if vboxmouse detected

Index: sysp/sysp.c
===================================================================
--- sysp/sysp.c (revision 1756)
+++ sysp/sysp.c (revision 1757)
@@ -581,6 +581,9 @@
                if (strcmp(data.profile,"vmware-mouse") == 0) {
                        haveStandardMouse = true;
                }
+               if (strcmp(data.profile,"vbox-mouse") == 0) {
+                       haveStandardMouse = true;
+               }
                bool deviceIsANutShell = false;
                if (devices[i] != 1) {
                        deviceIsANutShell = true;
Comment 34 Stefan Dirsch 2009-01-31 09:05:46 UTC
reopen
Comment 35 Stefan Dirsch 2009-01-31 09:07:26 UTC
Of course we still need the fix for the driver (patch is attached) and reenable
the use of vboxmouse.
Comment 39 Martin Kudlvasr 2009-02-05 17:08:01 UTC
Tested with following configuration (default explorerps2 from sax + vboxmouse from sax). Everything works.

Section "InputDevice"
  Driver       "vboxmouse"
  Identifier   "Mouse[1]"
  Option       "Buttons" "7"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "vboxmouse"
  Option       "Protocol" "ExplorerPS/2"
  Option       "Vendor" "VirtualBox"
EndSection

Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[2]"
  Option       "Buttons" "9"
  Option       "Device" "/dev/input/mice"
  Option       "Name" "VirtualBox Mouse"
  Option       "Protocol" "explorerps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

...

  InputDevice  "Mouse[1]" "CorePointer"
  InputDevice  "Mouse[2]" "SendCoreEvents"



The result is the same with or without "SendCoreEvents".
Comment 40 Stefan Dirsch 2009-02-05 17:12:36 UTC
Thanks. I will revert my change in SaX2 and submit it for SLE11, 11.1 and STABLE. Please add my patch for vboxmouse driver to our virtualbox package and submit it for SLE11, 11.1 and STABLE as well.
Comment 41 Stefan Dirsch 2009-02-05 17:29:47 UTC
> Thanks. I will revert my change in SaX2 and submit it for SLE11, 11.1 and
> STABLE.

done.
Comment 42 Martin Kudlvasr 2009-02-05 17:33:02 UTC
well, for the patch I have to say, that all the test I did, were without using your patch. Sorry for not mentioning it before. I do not fully understand, what does the patch fix.
Comment 43 Stefan Dirsch 2009-02-05 17:40:32 UTC
Well, the patch fixes the loading of the driver. See comment #12.
Comment 44 Martin Kudlvasr 2009-02-05 17:57:30 UTC
Created attachment 270524 [details]
Xorg.0.log (xorg.conf with 2 mice, vbox without bug-444747_vboxmouse.diff)
Comment 45 Martin Kudlvasr 2009-02-05 17:58:36 UTC
I looked into the current xorg.0.log and I don't see the error anymore. Well, any error.
Comment 46 Stefan Dirsch 2009-02-05 18:01:38 UTC
So you don't trust our customers? Any chance to try with my patch? Sorry, I need to leave now.
Comment 47 Martin Kudlvasr 2009-02-05 19:03:03 UTC
I do trust our customers. 
On #12 Florian said that:
> I updated from opensuse 11.0 to 11.1 (final candidate) yesterday
> After installing the guest additions, I get this:

On #26 Florian said that: 
> The first one which did not load was directly from the guest additions.

From these 2 I understand, that his first log with error came from the PUEL guest additions.

On #23 Stephan Kleine said that:
> The old one loaded just fine for me as well (attached is the X logfile after

I also tested os11.1 kde live and changed xorg.conf to vboxmouse to be sure ... still no error in xorg log. 

So which customer had problem with loading the vboxmouse driver from os11.1? The customers verified, that with your patch the vboxmouse loads fine. But they only had problem with the click not with errors while loading vboxmouse. Please tell me which error does your patch fix and I'll add it in a heartbeat.
Comment 48 Stefan Dirsch 2009-02-06 00:09:13 UTC
My patch fixes this error from comment #12. See Florian's comment #26.

(II) LoadModule: "vboxmouse"                                                    
(II) Loading /usr/lib/xorg/modules//input/vboxmouse_drv.so                      
dlopen: /usr/lib/xorg/modules//input/vboxmouse_drv.so: undefined symbol:
miPointerGetMotionEvents 
(EE) Failed to load /usr/lib/xorg/modules//input/vboxmouse_drv.so               
(II) UnloadModule: "vboxmouse"                                                  
(EE) Failed to load module "vboxmouse" (loader failed, 7) 

Unfortunately I have no idea what you mean with 'PUEL guest additions'.
Comment 49 Martin Kudlvasr 2009-02-06 09:14:22 UTC
by PUEL i mean binary guest additions directly from virtualbox.org.
While you were fixing this, were you getting the same error as he did?
Comment 50 Stefan Dirsch 2009-02-06 09:19:40 UTC
So he replaced parts of our virtualbox package with this stuff. No, I never saw this error. Last time I tried virtualbox is about 1-2 years ago.
Comment 51 Martin Kudlvasr 2009-02-06 09:30:02 UTC
I cannot be sure it just seems to me from his comments. You never install guest additions in os11.1. The driver is already there.
Comment 52 Stefan Dirsch 2009-02-06 11:16:19 UTC
I looked again at my patch. For our xorg-server release on SLE11/11.1 GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 2, i.e. the change

  miPointerGetMotionEvents --> GetMotionHistory
  miPointerGetMotionBufferSize() --> GetMotionHistorySize(), 2

is active. Not sure why this driver also works without my patch. Decleration of
InitPointerDeviceStruct():

/usr/include/xorg/input.h
[...]
include/input.h
extern Bool InitPointerDeviceStruct(
    DevicePtr /*device*/,
    CARD8* /*map*/,
    int /*numButtons*/,
    ValuatorMotionProcPtr /*motionProc*/,
    PtrCtrlProcPtr /*controlProc*/,
    int /*numMotionEvents*/,
    int /*numAxes*/);

I suggest to apply my patch. At least you should give it a try. Thanks.
Comment 54 Stefan Dirsch 2009-02-10 14:05:25 UTC
package with patch submitted for SLE11 and 11.1.
Comment 55 Stephan Kleine 2009-02-19 14:32:33 UTC
Is there any news on this? As in when will that update be available / does it finally work? I happily test it if it is available from some OBS repo or build myself my own package, just be so kind to post an explicit pointer to the patch & the package it should (not) be applied.

Also note that upstream claims that it is fixed with 2.1.4 but it is still the same mess.

So, any updates would be appreciated!
Comment 56 Stefan Dirsch 2009-02-26 17:03:42 UTC
*** Bug 479628 has been marked as a duplicate of this bug. ***
Comment 57 Stefan Dirsch 2009-03-09 04:02:23 UTC
Martin, please let me know, when you add a .fdi file for vboxmouse (example: http://www.virtualbox.org/changeset/12283?format=diff&new=12283; usually installed
to /usr/share/hal/fdi/policy/10osvendor/), so I can finally get rid of vboxmouse profile in sax2. Thanks.
Comment 58 Stefan Dirsch 2009-03-09 04:04:11 UTC
(In reply to comment #57)
> Martin, please let me know, when you add a .fdi file for vboxmouse (example:
> http://www.virtualbox.org/changeset/12283?format=diff&new=12283; usually
> installed
> to /usr/share/hal/fdi/policy/10osvendor/), so I can finally get rid of
> vboxmouse profile in sax2. Thanks.

... since I've added HAL support to our Xserver now.