Subject: kern/14398: close(/dev/wsmouse[0-9]) problem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cagney@mac.com>
List: netbsd-bugs
Date: 10/29/2001 16:08:53
>Number:         14398
>Category:       kern
>Synopsis:       close(/dev/wsmouse[0-9]) problem
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 29 16:10:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Cagney
>Release:        1.5.2 userland current kernel
>Organization:
>Environment:
NetBSD localhost 1.5Y NetBSD 1.5Y (NETLUX) #0: Sat Oct 27 21:19:01 EDT 2001     boor@localhost:/usr/src/sys/arch/macppc/compile/NETLUX macppc

TiG4 lapbrick with mousepad and external USB mouse.  Both Muxed.


>Description:
The action of opening, using and closing a /dev/wsmouse[0-9] device directly, appears to break that devices operation when _later_ accessed as part of /dev/wsmouse.

>How-To-Repeat:
Modify XF86Config to use a specific mouse device such as /dev/wsmouse1 (for me wsmouse1 is the USB mouse, most of the below also applies to wsmouse0).  

Start X.  Mouse works.

Stop X.

Modify XF86Config to use /dev/wsmouse.

Start X.  Mouse doesn't work.

Disconnect mouse.  Reconnect mouse.  Mouse works.

(The last step isn't recommended if you've only got access to a built in mousepad ...).

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted: