From owner-freebsd-questions@FreeBSD.ORG Fri Aug 15 19:39:36 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2437E37B401 for ; Fri, 15 Aug 2003 19:39:36 -0700 (PDT) Received: from remt26.cluster1.charter.net (remt26.cluster1.charter.net [209.225.8.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66B5643FBF for ; Fri, 15 Aug 2003 19:39:35 -0700 (PDT) (envelope-from chowse@charter.net) Received: from [66.168.145.25] (HELO moe) by remt26.cluster1.charter.net (CommuniGate Pro SMTP 4.0.6) with ESMTP id 120702607 for freebsd-questions@freebsd.org; Fri, 15 Aug 2003 22:39:34 -0400 From: "Charles Howse" To: Date: Fri, 15 Aug 2003 21:39:25 -0500 Message-ID: <000201c3639f$9ba7c840$04fea8c0@moe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <3F3D70DB.5010403@comcast.net> Importance: Normal Subject: RE: Copying and pasting text w/ mouse X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2003 02:39:36 -0000 > Here's a thought. What happens when you switch away then switch back > kill moused then restart moused? I'm thinking that maybe a cron job > could be created to check mouse states and kill then restart moused. Very interesting... #!/usr/local/bin/bash # Kill and restart moused ps -wax | grep moused > /dev/null 2>&1 if [ $? -eq 0 ] ; then m=`ps -wax | grep moused | cut -d" " -f3` kill $m if [ $? -eq 0 ] ; then echo "Killed mouse daemon" else echo "Unable to kill mouse daemon" exit fi fi moused -p /dev/psm0 -t auto if [ $? -eq 0 ] ; then echo "Restarted mouse daemon successfully" else echo "Unable to restart mouse daemon" fi This works in principle, but I have to do it 4 or 5 times after switching back from windows. Any time I move the mouse, things go haywire, until I finally reset it enough times. I'm satisfied for the time being, thanks for the suggestion, and thanks to everyone who replied!