changing mouse, detection problem

Glen Barber gjb at FreeBSD.org
Tue Oct 15 22:55:52 UTC 2013


On Wed, Oct 16, 2013 at 12:49:31AM +0000, Florent Peterschmitt wrote:
> Le 15/10/2013 22:39, Glen Barber a écrit :
> > Can you see if this patch works?  Apply to /etc/devd.conf.
> > 
> > Glen
> > Index: etc/devd.conf
> > ===================================================================
> > --- etc/devd.conf	(revision 256563)
> > +++ etc/devd.conf	(working copy)
> > @@ -130,7 +130,7 @@
> >  	match "type" "DESTROY";
> >  	match "cdev" "ums[0-9]+";
> >  
> > -	action "/etc/rc.d/moused stop $cdev";
> > +	action "/etc/rc.d/moused quietrestart $cdev";
> >  };
> >  
> >  # Firmware download into the ActiveWire board. After the firmware download is
> 
> I have the opposit now.
> 
> Connecting the Razer after disconnecting the HP makes the Razer working.
> But once I disconnect the Razer and reconnect it, no way:
> 

That was unexpected, actually.

Can you try this, which reverts r240891 where this section of devd.conf
was updated?

Glen

-------------- next part --------------
Index: etc/devd.conf
===================================================================
--- etc/devd.conf	(revision 240891)
+++ etc/devd.conf	(revision 240890)
@@ -115,22 +115,14 @@
 	action "/etc/rc.d/syscons setkeyboard /dev/kbd0";
 };
 
-notify 100 {
-	match "system" "DEVFS";
-	match "subsystem" "CDEV";
-	match "type" "CREATE";
-	match "cdev" "ums[0-9]+";
-
-	action "/etc/rc.d/moused quietstart $cdev";
+attach 100 {
+	device-name "ums[0-9]+";
+	action "/etc/rc.d/moused quietstart $device-name";
 };
 
-notify 100 {
-	match "system" "DEVFS";
-	match "subsystem" "CDEV";
-	match "type" "DESTROY";
-	match "cdev" "ums[0-9]+";
-
-	action "/etc/rc.d/moused stop $cdev";
+detach 100 {
+        device-name "ums[0-9]+";
+        action "/etc/rc.d/moused stop $device-name";
 };
 
 # Firmware download into the ActiveWire board. After the firmware download is
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20131015/abd60ad4/attachment.sig>


More information about the freebsd-stable mailing list