From nobody@FreeBSD.org  Wed Mar 20 19:45:51 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 63EAE37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 20 Mar 2002 19:45:51 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2L3jpq85986;
	Wed, 20 Mar 2002 19:45:51 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203210345.g2L3jpq85986@freefall.freebsd.org>
Date: Wed, 20 Mar 2002 19:45:51 -0800 (PST)
From: Ryan Kassel <ryankassel@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Getting USB mouse to work: usbd and moused conflict
X-Send-Pr-Version: www-1.0

>Number:         36154
>Category:       docs
>Synopsis:       [usb] Getting USB mouse to work: usbd and moused conflict
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    simon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 20 19:50:00 PST 2002
>Closed-Date:    Sat Feb 26 22:36:08 GMT 2005
>Last-Modified:  Sat Feb 26 22:36:08 GMT 2005
>Originator:     Ryan Kassel
>Release:        4.2
>Organization:
>Environment:
FreeBSD villa.local.lan 4.2-RELEASE FreeBSD 4.2-RELEASE #11: Wed Mar 20 14:50:42 PST 2002     root@villa.local.lan:/usr/src/sys/i386/compile/ALLAKERN  i386
>Description:
      Upon adding a PCI USB card to my computer and connecting a USB mouse (and making all the necessary additions to the kernel and rc.conf and /dev) I found that I got the error at bootup in the rc.i386 initialization section:

moused: unable to open /dev/ums0: device busy

This is caused from moused being ran twice for the same device (ums0).
>How-To-Repeat:
      Install a USB mouse and follow the instructions at 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/hardware.html#USBMOUSE

>Fix:
      As per http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/hardware.html#USBMOUSE 
section 4 should have moused_enable="NO" since usbd should handle starting up moused (it does this automatically).  This way, you can hot-swap the USB device as well.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-doc 
Responsible-Changed-By: iedowse 
Responsible-Changed-When: Sun Dec 8 10:02:40 PST 2002 
Responsible-Changed-Why:  

Documentation bug: faq/hardware.html should not suggest setting any 
moused_* variables for a USB mouse since moused is started automatically 
by usbd. Instead, use `allscreens_flags="-m on"' to enable the mouse 
cursor. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36154 

From: "Simon L. Nielsen" <simon@nitro.dk>
To: freebsd-gnats-submit@FreeBSD.org, ryankassel@yahoo.com
Cc:  
Subject: Re: misc/36154: Getting USB mouse to workA usbd and moused conflict
Date: Tue, 27 May 2003 02:35:20 +0200

 Perhaps a patch like this ?
 
 Note:
 
 * etc/usbd.conf was changed before 5.0 and 4.8, to enable mouse in the
   console after attaching. Relevant versions in CVS: 1.11 and 1.5.2.3.
 
 * usbd_flags="" is the default and has been since v. 1.1 of
   etc/defaults/rc.conf.
 
 %%%
 Index: book.sgml
 ===================================================================
 RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/faq/book.sgml,v
 retrieving revision 1.538
 diff -u -d -u -r1.538 book.sgml
 --- book.sgml	13 May 2003 19:15:26 -0000	1.538
 +++ book.sgml	27 May 2003 00:22:18 -0000
 @@ -2734,17 +2734,15 @@
  
              <step>
                <para>Edit <filename>/etc/rc.conf</filename> and add the
 -                following lines:</para>
 +                following line:</para>
  
 -              <programlisting>moused_enable="YES"
 -moused_type="auto"
 -moused_port="/dev/ums0"
 -moused_flags=""
 -usbd_enable="YES"
 -usbd_flags=""</programlisting>
 +              <programlisting>usbd_enable="YES"</programlisting>
  
 -              <para>See the <link linkend="moused">previous section</link>
 -                for more detailed discussion on moused.</para>
 +              <para>To enable the mouse in the console, in &os;
 +                versions older than 4.8, add the following line to
 +                <filename>/etc/rc.conf</filename>:</para>
 +
 +              <programlisting>allscreens_flags="-m on"</programlisting>
              </step>
  
              <step>
 %%%
 
 -- 
 Simon L. Nielsen
 No PGP in honor of GNATS.
Responsible-Changed-From-To: freebsd-doc->simon 
Responsible-Changed-By: simon 
Responsible-Changed-When: Sat Oct 18 13:53:00 PDT 2003 
Responsible-Changed-Why:  
I'm looking into this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36154 
State-Changed-From-To: open->closed 
State-Changed-By: simon 
State-Changed-When: Sat Feb 26 22:33:48 GMT 2005 
State-Changed-Why:  
The FAQ entry is only applicable for FreeBSD 3.X.  For 4.X and newer 
USB mice should just work.  This was actually stated in the entry but 
it was easy to miss (I also missed it at first), so I removed the 
FAQ entry to avoid confusion. 

Thanks for the submission, and sorry about the waaaay to long 
processing time for this PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36154 
>Unformatted:
