|
Bugzilla – Full Text Bug Listing |
| Summary: | vboxmouse: Driver is broken | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.1 | Reporter: | macias - <bluedzins> |
| Component: | X.Org | Assignee: | Martin Kudlvasr <mkudlvasr> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <xorg-maintainer-bugs> |
| Severity: | Major | ||
| Priority: | P2 - High | CC: | bitdealer, erik.putrycz, oszwald, ricardo.marques, sndirsch |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Other | ||
| URL: | http://www.virtualbox.org/ticket/3213 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
xorg.conf
Xorg.0.log vboxmouse.diff X logfile for the updated driver X logfile for the old driver Xorg log for Vbox 2.1.2 guest additions Xorg.0.log (xorg.conf with 2 mice, vbox without bug-444747_vboxmouse.diff) |
||
|
Description
macias -
2008-11-13 18:06:25 UTC
Created attachment 252154 [details]
xorg.conf
Created attachment 252155 [details]
Xorg.0.log
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]" 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. 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. (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
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? Thanks for looking into this. This friday morning - Nov 21 I need to know. 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 :-( . done. 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. 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). (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? Luc, could you help here? Maybe it's not that hard to fix the driver for xorg-server 1.5. Created attachment 262531 [details]
vboxmouse.diff
Fix?
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. Packages are already available now. 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. (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. Created attachment 262890 [details]
X logfile for the updated driver
X logfile for the updated driver after a fresh boot
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 [...] 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".
Great. So Florian and you have completely different issues. But let's wait for feedback by Florian first. 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. Ok. So in the end you both have the same issue. 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.
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. 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? 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. 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;
reopen Of course we still need the fix for the driver (patch is attached) and reenable the use of vboxmouse. 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". 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. > Thanks. I will revert my change in SaX2 and submit it for SLE11, 11.1 and
> STABLE.
done.
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. Well, the patch fixes the loading of the driver. See comment #12. Created attachment 270524 [details]
Xorg.0.log (xorg.conf with 2 mice, vbox without bug-444747_vboxmouse.diff)
I looked into the current xorg.0.log and I don't see the error anymore. Well, any error. So you don't trust our customers? Any chance to try with my patch? Sorry, I need to leave now. 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. 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'. 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? 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. 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. 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.
package with patch submitted for SLE11 and 11.1. 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! *** Bug 479628 has been marked as a duplicate of this bug. *** 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. (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. |