From makonnen@pacbell.net  Mon Jun 10 13:37:24 2002
Return-Path: <makonnen@pacbell.net>
Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8])
	by hub.freebsd.org (Postfix) with ESMTP id C528537B406
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 10 Jun 2002 13:37:23 -0700 (PDT)
Received: from kokeb.ambesa.net ([64.173.9.150])
 by mta7.pltn13.pbi.net (iPlanet Messaging Server 5.1 (built May  7 2001))
 with ESMTP id <0GXI00DPNBYA60@mta7.pltn13.pbi.net> for
 FreeBSD-gnats-submit@freebsd.org; Mon, 10 Jun 2002 13:37:23 -0700 (PDT)
Received: from kokeb.ambesa.net (dev1ant@localhost [127.0.0.1])
	by kokeb.ambesa.net (8.12.3/8.12.3) with ESMTP id g5AKghP4006805	for
 <FreeBSD-gnats-submit@freebsd.org>; Mon,
 10 Jun 2002 13:42:43 -0700 (PDT envelope-from makonnen@pacbell.net)
Received: (from mikem@localhost)	by kokeb.ambesa.net (8.12.3/8.12.3/Submit)
 id g5AKggrH006804; Mon,
 10 Jun 2002 13:42:43 -0700 (PDT envelope-from makonnen@pacbell.net)
Message-Id: <200206102042.g5AKggrH006804@kokeb.ambesa.net>
Date: Mon, 10 Jun 2002 13:42:43 -0700 (PDT)
From: Mike Makonnen <makonnen@pacbell.net>
Reply-To: Mike Makonnen <makonnen@pacbell.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] /etc/usbd.conf should enable cursor on console when a usb
 mouse is attached
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         39125
>Category:       conf
>Synopsis:       [PATCH] /etc/usbd.conf should enable cursor on console when a usb mouse is attached
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 10 13:40:01 PDT 2002
>Closed-Date:    Mon Nov 04 00:08:57 PST 2002
>Last-Modified:  Mon Nov 04 00:08:57 PST 2002
>Originator:     Mike Makonnen
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
FreeBSD kokeb.ambesa.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Fri Jun  7 14:38:03 PDT 2002     
mikem@kokeb.ambesa.net:/FreeBSD/builds/current/src.obj/FreeBSD/builds/current/src/sys/NODRM  i386

	
>Description:
	When a usb mouse is attached, the mouse cursor is not enabled. Instead,
	the user has to invoke the vidcontrol -m on command manually.
	
>How-To-Repeat:
	
>Fix:
I think it would be more convenient to have the vidcontrol command executed 
automatically as part of the usb attach process.
	



--- usbdconf.diff begins here ---
Index: etc/usbd.conf
===================================================================
RCS file: /home/ncvs/src/etc/usbd.conf,v
retrieving revision 1.10
diff -u -r1.10 usbd.conf
--- etc/usbd.conf	8 Mar 2002 14:46:13 -0000	1.10
+++ etc/usbd.conf	10 Jun 2002 20:31:28 -0000
@@ -46,7 +46,7 @@
 #
 device "Mouse"
 	devname "ums[0-9]+"
-	attach "/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid"
+	attach "/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid; vidcontrol -m on"
 
 # The fallthrough entry: Nothing is specified, nothing is done.  And it isn't
 # necessary at all :-).  Just for pretty printing in debugging mode.
--- usbdconf.diff ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: dougb 
State-Changed-When: Tue Jun 18 00:50:34 PDT 2002 
State-Changed-Why:  

I just committed your fix to -current, I'll MFC after a bit. 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Tue Jun 18 00:50:34 PDT 2002 
Responsible-Changed-Why:  

I'll handle the MFC. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39125 
State-Changed-From-To: patched->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Nov 4 00:07:56 PST 2002 
State-Changed-Why:  

After a suitable period of reflection, I've decided to 
just MFC the suggested fix rather than use the 
allscreens_flags option for this. 

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