Bug 592193 - udev support/xorg.conf.d snippet missing for vmmouse driver
Summary: udev support/xorg.conf.d snippet missing for vmmouse driver
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Milestone 3
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on: 574857
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-30 09:01 UTC by Stefan Dirsch
Modified: 2017-08-15 13:54 UTC (History)
10 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Dirsch 2010-03-30 09:01:43 UTC
+++ This bug was initially created as a clone of Bug #574857 +++

udev support/xorg.conf.d snippet is still missing for vmmouse driver.
Comment 1 Stefan Dirsch 2010-03-31 13:45:01 UTC
Possible solution:

Check for entries in 'udevadm info -e' with 'ID_INPUT_MOUSE=1' and and use
_VENDOR/_PRODUCT for matching to MatchVendor/MatchProduct in 
/etc/X11/xorg.conf.d/11-mouse.conf, i.e. add a new snippet.
Comment 3 Stefan Dirsch 2010-03-31 14:00:09 UTC
Yes, this looks good. :-)
Comment 4 Stefan Dirsch 2010-04-01 01:59:46 UTC
I've implemented it that way now in our xorg-x11-driver-input package. It will be available shortly in

  http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_Factory/

Make sure that you have the following entry in RPM changelog:

-------------------------------------------------------------------
Wed Mar 31 17:14:41 CEST 2010 - sndirsch@suse.de

- added udev support for vmmouse driver (bnc #592193)

Build date should be 2010-03-31 or later.

Rastislav, Johan, Robin, Isis, Vadim, please test ASAP. Thanks.
Comment 5 Rastislav Krupansky 2010-04-01 06:02:39 UTC
Yes, i´ll test it, but i´d appreciate, if coolo created factory liveCD iso with included patch.
Comment 6 Stefan Dirsch 2010-04-01 06:37:57 UTC
I do not understand. You're not capable of updating a single RPM of your installation and restart X? Since I didn't submit the package to factory yet (it hasn't been tested at all) it doesn't make sense to create a LiveCD for this.

Hopefully Johan, Robin, Isis, Vadim can help here.
Comment 7 Rastislav Krupansky 2010-04-01 08:05:58 UTC
(In reply to comment #6)
> I do not understand. You're not capable of updating a single RPM of your
> installation and restart X? Since I didn't submit the package to factory yet
> (it hasn't been tested at all) it doesn't make sense to create a LiveCD for
> this.

No, i can´t. I haven´t been able to install and start LiveCD since Milestone1. I reported bug 574857 against M1 the first time and don´t remember who changed version to M3.
Comment 8 Robin Knapp 2010-04-01 08:09:10 UTC
For the live CD, there's a workround:

- In boot menu select text mode
- select installation 

You will land in Runlevel 3.

then:
1.
zypper ar http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_Factory/ XOrg

2.
zypper dup -r XOrg

3.
init 5

(But it's has not appeared yet in the repo)
Comment 9 Stefan Dirsch 2010-04-01 08:55:32 UTC
Thanks for your hint, Robin! Could you provide feedback instead?
Comment 10 Robin Knapp 2010-04-01 09:31:00 UTC
Works!

Note: You need a "udevadm trigger" after updating the packages.

"udevadm info -e" shows "ID_INPUT.tags=vmmouse" for the mouse and event device and the xserver will be using it.
Comment 11 Stefan Dirsch 2010-04-01 11:52:36 UTC
Thanks for testing, Robin! Submitted now for openSUSE:Factory.

 36546  State:new     By:sndirsch     When:2010-04-01T13:50:51
        submit:       X11:XOrg/xorg-x11-driver-input  ->  openSUSE:Factory       
        Descr: 'added udev support for vmmouse driver (bnc #592193); added udev support for vmmouse driver (bnc #592193)'

-------------------------------------------------------------------
Thu Apr  1 13:48:46 CEST 2010 - sndirsch@suse.de

- re-plug the input devices via 'udevadm trigger' in %post(un)

-------------------------------------------------------------------
Wed Mar 31 17:14:41 CEST 2010 - sndirsch@suse.de

- added udev support for vmmouse driver (bnc #592193)
Comment 12 Robin Knapp 2010-04-01 13:28:09 UTC
Great, hope to see these fixes in M5.

I'm not sure if the udevadm trigger makes sense in package %post or is even potentially dangerous or will cause errors if udev is not running during package installation.
I haven't seen other packages doing this yet.

They might just assume that the user will reboot sometime after installation.
Comment 13 Robin Knapp 2010-04-01 13:36:29 UTC
Found these:
http://lists.mandriva.com/cooker/2009-03/msg00835.php
https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/320200

So let's better not call udevadm trigger...
Comment 14 Robin Knapp 2010-04-01 13:59:25 UTC
Sorry for the spam, but looking further it seems that

udevadm trigger --subsystem-match=input --action=change

seems to be a save solution (default is --action=add which may theretically cause problems)

Tested -> works!
Comment 15 Stefan Dirsch 2010-04-01 14:02:33 UTC
Well, I'm running 

  udevadm trigger --subsystem-match=input

in %post(un), but if Kay tells me that this is a stupid idea, I'm going to remove
it again.
Comment 16 Stefan Dirsch 2010-04-01 14:08:25 UTC
Ok. I've changed it now to

  udevadm trigger --subsystem-match=input --action=change
Comment 17 Kay Sievers 2010-04-01 14:17:43 UTC
(In reply to comment #16)
>   udevadm trigger --subsystem-match=input --action=change

That should be fine. Stuff is usually expected to handle such synthetic events.
Comment 18 Rastislav Krupansky 2010-04-10 19:07:54 UTC
Guys, i´m testing factory LiveCD build 0552 and i´m finally able to start LiveCD, but installation still doesn´t work. Still hangs :-(
How are your experiences? Can we reopen this bug, or create another new one?
Comment 19 Stefan Dirsch 2010-04-10 19:44:40 UTC
I suggest to open a seperate bugreport. Maybe the udev rule and the xorg.conf.d snippet are simply missing on the LiveCD.
Comment 20 Michel Dänzer 2010-04-19 10:09:44 UTC
(In reply to comment #19)
> I suggest to open a seperate bugreport.

Is there one yet?

(In reply to comment #18)
> Guys, i´m testing factory LiveCD build 0552 and i´m finally able to start
> LiveCD, but installation still doesn´t work. Still hangs :-(

Starting the installation from build 0556 results in a black screen here, however the X server is clearly running with the vmmouse driver - the VM takes/drops focus automatically when entering/leaving the VM window, and I can switch to other VTs. Any ideas why the X server is only displaying black? Is there any way I can get a shell at that point?
Comment 21 Rastislav Krupansky 2010-04-19 10:20:55 UTC
(In reply to comment #20)
> (In reply to comment #19)
> > I suggest to open a seperate bugreport.
> 
> Is there one yet?
> 

Yes, bug 595674, which was resolved as duplicate of bug 585432.
Comment 22 Stefan Dirsch 2010-04-19 10:46:32 UTC
Michel, the blank screen issue has been fixed in M5. It has been unrelated to X/vmware drivers. YaST2 was waiting for a script to appear before running it, which was simply missing on LiveCD of M4.
Comment 23 Stefan Dirsch 2017-08-15 13:54:40 UTC
(In reply to Kay Sievers from comment #17)
> (In reply to comment #16)
> >   udevadm trigger --subsystem-match=input --action=change
> 
> That should be fine. Stuff is usually expected to handle such synthetic
> events.

Seems this was a wrong assumption. See boo#1006779.