Subject: Re: kbd/mouse no file or directory
To: None <port-macppc@netbsd.org>
From: Derek Peschel <dpeschel@eskimo.com>
List: port-macppc
Date: 12/13/2001 17:08:36
> I've seen on the netBSD faq that the "open: kbd/mouse
> no file or directory found" error upon running
> "startx" is supposed to have something to do with root
> being the only login with appropriate permissions.
> Well I've changed permissions and even tried to launch
> as root and still get the error. Also I noticed under
> /dev there really is no file named kbd or mouse, there
> is wskbd and wsmouse. What should I do?

You aren't supposed to have /dev/kbd or /dev/mouse.  X is
just giving you a generic error message.  I don't know how
to find out what devices X actually tried to use.

If any of these commands

	wsconsctl -d -a
	wsconsctl -k -a
	wsconsctl -m -a

gives you a "device not configured" message, you may be
seeing the same problem I have (G4 tower, USB keyboard/mouse,
1.5 system).  The kernel assigns the keyboard and mouse to
/dev/wskbd1 and /dev/wsmouse1 but the display to /dev/wsdisplay0.

The dmesg command will show you the messages that appeared
during booting.  If the messages are obviously incomplete, then
you'll have to reconfigure the kernel (to increase the size of
the message buffer) and recompile.

BTW, I did a really nasty thing and created a file called
"/dev/wskbd0" which actually contains the major and minor numbers
for /dev/wskbd1.  That allowed X to run. But I really need to see
what the kernel code is doing.

If you need more help, let me know.

-- Derek