changing mouse, detection problem

Glen Barber gjb at FreeBSD.org
Tue Oct 15 22:39:28 UTC 2013


On Wed, Oct 16, 2013 at 12:32:11AM +0000, Florent Peterschmitt wrote:
> Hello there,
> 
> I saw a very strange problem while using different mouses, one is HP
> with only mouse and the other is a Razer Naga with mouse and keyboard
> (numpad).
> 
> Then:
> 
> 1. Connect and disconnect HP mouse
> 
> Oct 16 00:29:17 yoda kernel: ums0: <vendor 0x0461 HP Laser Mobile Mouse,
> class 0/0, rev 2.00/1.13, addr 2> on usbus5
> Oct 16 00:29:17 yoda kernel: ums0: 3 buttons and [XYZT] coordinates ID=1
> Oct 16 00:29:17 yoda devd: Executing '/etc/rc.d/moused quietstart ums0'
> Oct 16 00:29:20 yoda kernel: ugen5.2: <vendor 0x0461> at usbus5
> (disconnected)
> Oct 16 00:29:20 yoda kernel: ums0: at uhub4, port 1, addr 2 (disconnected)
> Oct 16 00:29:20 yoda devd: Executing '/etc/rc.d/moused stop ums0'
> 
> 2. Connect Razer mouse
> 
> Oct 16 00:29:24 yoda kernel: ugen5.2: <Razer> at usbus5
> Oct 16 00:29:24 yoda kernel: ums0: <Razer Razer Naga, class 0/0, rev
> 2.00/2.00, addr 2> on usbus5
> Oct 16 00:29:24 yoda kernel: ums0: error reading report description
> Oct 16 00:29:24 yoda kernel: device_attach: ums0 attach returned 12
> Oct 16 00:29:24 yoda kernel: ukbd1: <Razer Razer Naga, class 0/0, rev
> 2.00/2.00, addr 2> on usbus5
> Oct 16 00:29:24 yoda kernel: kbd3 at ukbd1
> 
> Mouse is'n usable.
> 
> 3. Disconnect Razer mouse
> 
> Oct 16 00:29:27 yoda kernel: ugen5.2: <Razer> at usbus5 (disconnected)
> Oct 16 00:29:27 yoda kernel: ukbd1: at uhub4, port 1, addr 2 (disconnected)
> 
> 4. Reconnect it
> 
> Oct 16 00:29:32 yoda kernel: ugen5.2: <Razer> at usbus5
> Oct 16 00:29:32 yoda kernel: ums0: <Razer Razer Naga, class 0/0, rev
> 2.00/2.00, addr 2> on usbus5
> Oct 16 00:29:32 yoda kernel: ums0: 5 buttons and [XYZ] coordinates ID=0
> Oct 16 00:29:32 yoda devd: Executing '/etc/rc.d/moused quietstart ums0'
> Oct 16 00:29:32 yoda kernel: ukbd1: <Razer Razer Naga, class 0/0, rev
> 2.00/2.00, addr 2> on usbus5
> Oct 16 00:29:32 yoda kernel: kbd3 at ukbd1
> 
> Razer mouse is now usable.
> 
> 
> Huh? I think I should try with another mouse than the Razer one to see
> if something changes. For the moment I can't :)
> 

Can you see if this patch works?  Apply to /etc/devd.conf.

Glen

-------------- next part --------------
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
-------------- 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/932b92ef/attachment.sig>


More information about the freebsd-stable mailing list