From owner-freebsd-mobile Thu Mar 23 14:17:23 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from roam.psg.com (roam.psg.com [147.28.4.2]) by hub.freebsd.org (Postfix) with ESMTP id 44E8337C645 for ; Thu, 23 Mar 2000 14:17:09 -0800 (PST) (envelope-from randy@psg.com) Received: from randy by roam.psg.com with local (Exim 3.12 #1) id 12YFuV-0000FJ-00; Fri, 24 Mar 2000 07:16:59 +0900 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Brooks Davis Cc: FreeBSD Laptoppers Subject: Re: usb on vaio 505tx References: <200003231857.LAA42461@harmony.village.org> <20000323133517.B22554@orion.ac.hmc.edu> <20000323141323.B1409@orion.ac.hmc.edu> Message-Id: Date: Fri, 24 Mar 2000 07:16:59 +0900 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >> actually, if the usb mouse is unpluggd and then plugged in again, moused >> things it is useless, i.e. no action. > > moused can't be expected to handle reattachment properly, it looks like > the standard entry in usbd.conf doesn't have the necessicary detach > entry. This entierly untested line may do it: > > detach "kill `cat /var/run/moused.$(DEVNAME}.pid`" well, my script does the equibalent, though a bit more brutally, see appended. /var/run/moused.id seemed unreliable. > Otherwise, if you have a system with multiple devices using dhcp you're > screwed when you remove one of them. dhcp? ain't no dhcp here! randy while [ x$m = x ]; do echo echo -n "which mouse [ p - ps/2 u - usb ] ? " read m case $m in p) m=psm0 ;; u) m=ums0 ;; else) m="" ;; esac done /bin/ps -auxw | grep "moused" | grep -v grep | awk '{print $2}' | xargs kill /usr/sbin/moused -t auto -p /dev/$m To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message