Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2000 07:16:59 +0900
From:      Randy Bush <randy@psg.com>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        FreeBSD Laptoppers <freebsd-mobile@FreeBSD.ORG>
Subject:   Re: usb on vaio 505tx
Message-ID:  <E12YFuV-0000FJ-00@roam.psg.com>
References:  <E12Y7z9-0000JQ-00@roam.psg.com> <200003231857.LAA42461@harmony.village.org> <E12YEzd-00008i-00@roam.psg.com> <20000323133517.B22554@orion.ac.hmc.edu> <E12YFZp-0000D7-00@roam.psg.com> <20000323141323.B1409@orion.ac.hmc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E12YFuV-0000FJ-00>