Subject: wscons and wsmux
To: None <current-users@netbsd.org>
From: Lennart Augustsson <lennart@augustsson.net>
List: current-users
Date: 07/29/1999 21:49:08
I've just added the wsmux pseudo device to the ports that use wscons.
It enables the multiplexing (merging) of events from several input devices.
So you can have several mice working "in parallel", or even keyboards
if you want to.

The wsmux device is probably of most interest to people who hot plug (and
unplug) mice and keyboard, e.g. USB users.

Here's how to use it:
* Update your config file by adding `mux 0' to all wsmouse lines and
`mux 1' to all wskbd lines (except your console).  Also add the line
  pseudo-device wsmux  2
(You can look in GENERIC to see what it should look like.)

* Then make the /dev/wsmouse and /dev/wskbd devices (they are mux
0 and mux 1; it's just a convention I've picked) which are the two
device where all mice resp. keyboard events will be "concentrated".
`MAKEDEV wsmux' will create them for you.

* If you want keyboards to work, update /etc/rc.wscons and /etc/wscons.conf.

* For mice to work, update your /etc/XF86Config to open /dev/wsmouse
(using the wsmouse protocol).

After these steps it should be possible to just plug in (or out) a new mouse
or keyboard and it will just work.  (If you break into console mode only the
console keyboard will work.)

If you have any problems please report them!

--

        -- Lennart