From owner-freebsd-hackers Tue Aug 13 17:57:43 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA24699 for hackers-outgoing; Tue, 13 Aug 1996 17:57:43 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id RAA24692 for ; Tue, 13 Aug 1996 17:57:40 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id KAA27625; Wed, 14 Aug 1996 10:44:27 +0930 From: Michael Smith Message-Id: <199608140114.KAA27625@genesis.atrad.adelaide.edu.au> Subject: Re: Mouse.. To: khetan@iafrica.com Date: Wed, 14 Aug 1996 10:44:27 +0930 (CST) Cc: msmith@atrad.adelaide.edu.au, freebsd-hackers@freebsd.org In-Reply-To: from "Khetan Gajjar" at Aug 12, 96 09:30:29 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Khetan Gajjar stands accused of saying: > > >Are you telling moused what sort of mouse you have & where it is? > > Yes - check this out : > > [chain] /usr/home/khetan# moused -d -f -p /dev/psm0 -t ps/2 > moused: rodent is ps/2 > moused: read returned -1 : Resource temporarily unavailable exiting Ah. Now, if you'd posted this like a week or so ago when you started complaining, we could have solved the problem straight away. When in doubt, go for the factual overload. It's impossible to diagnose a problem from "it doesn't work". The problem is due to the stupid fashion in which the ps/2 mouse driver decides whether it should be read in blocking or nonblocking mode. If the minor number has the LSB set, it's read in nonblocking mode, and the default /dev/psm0 is 21/1. You could try : # mknod /dev/nbpsm0 c 21 0 and then point moused at that, or you could 'fix' the psm driver to the (flag) argument to psmread() properly. > Khetan Gajjar [ http://www.iafrica.com/~khetan ] -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[