Subject: Machy Mouse in NetBSD port-i386
To: <>
From: brian wildasinn <bwildasi@csulb.edu>
List: port-i386
Date: 02/17/1999 01:11:28
Hi!
X won't start until the mouse is configured.
Any tips?

Itallation was done via CDROM, which tells
me  a Mach64 Xserver for my ATi card
has been set (I found the Horizontal and
Vertical refresh rates) with a generic
serial mouse at COM2. I've read the
notes in /usr/X11R6/lib/X11/README.mouse
and README.Mach64, but I'm not sure
how to "configure" the /dev/mouse for
port-i386 of NetBSD-1.3.2.

PnP is untested for serial "Auto". The notes
say something about using the /dev/pms device
to emulate the "BusMouse" protocol
for any PS/2 mouse regardless of the
brand of the mouse.

My other NetBSD-1.3.2 box is on port-mac68k
which uses adb, and my Debian GNU/Linux is
using something similar as it is on the same hardware.

If relief is spelled "c u s t o m   k e r n a l", is there
any tips for that?

Ay help is appreciated!

Brian Wildasinn
bwildasi@csulb.edu
notes:  PnP Windows 98 hardware:
Asus p2b 440bx, P11350, WD UDMA & IBM SCSI,
Generic monitor and mouse from Melasia nd China respectively.

Here's some notes from /dev/. Sorry tht this typescript
is sooo long!:

Script started on Wed Feb 17 16:22:22 1999

   bwildasi# cd /dev^M

   bwildasi# find *pm*
   apm
   apmctl
   pms0
   bwildasi# ls -l pm*
   crw-------  1 root  wheel  37,  0 Feb 16 10:07 pms0

   bwildasi# ./MAKEDEV all
   bwildasi# ls com*
   ls: No match.
   bwildasi# # okay, looks like com1 and com2 have to be made
   bwildasi# # by the user, since MAKEDEV didn't create these!
   bwildasi# # This is where it would really be nice if there
   bwildasi# # were some /usr/doc/FAQs or whatever to help
   bwildasi# # the newbie through. /etc/fdstab.examples is great
   bwildasi# # for settig up stuff like cdrom players, so maybe
   bwildasi# # a MAKDEV.examples would help make some
   bwildasi# # device files for things such as serial mice.
   bwildasi# # Since com wasn't created, let's try the others:
   bwildasi# ls -l pm*
   crw-------  1 root  wheel  37, 0 Feb 17 16:24 pms0
   bwildasi#
   bwildasi# ln -s /dev/pms0 /dev/mouse
   bwildasi# ls -l pms* mou*
   lrwxr-xr-x  1 root  wheel      9 Feb 17 16:28 mouse -> /dev/pms0
   crw-------  1 root  wheel  37, 0 Feb 17 16:24 pms0
   bwildasi#
   bwildasi# #Let's try to fire up XWindow
   bwildasi# startx


   XFree86 Version 3.3.2 / X Window System
   (protocol Version 11, revision 0, vendor release 6300)
   Release Date: March 2 1998
           If the server is older than 6-12 months, or if your card is
newer
           than the above date, look for a newer version before
reporting
           problems.  (see http://www.XFree86.Org/FAQ)
   Operating System: NetBSD 1.3 The NetBSD Foundation, Inc.
   Configured drivers:
     SVGA: server for SVGA graphics adaptors (Patchlevel 0):
         NV1, STG2000, RIVA128, ET4000, ET4000W32, ET4000W32i,
         ET4000W32i_rev_b, ET4000W32i_rev_c, ET4000W32p,
ET4000W32p_rev_a,
         ET4000W32p_rev_b, ET4000W32p_rev_c, ET4000W32p_rev_d, ET6000,
ET6100,
         et3000, pvga1, wd90c00, wd90c10, wd90c30, wd90c24, wd90c31,
wd90c33,
         gvga, ati, sis86c201, sis86c202, sis86c205, tvga8200lx,
tvga8800cs,
         tvga8900b, tvga8900c, tvga8900cl, tvga8900d, tvga9000,
tvga9000i,
         tvga9100b, tvga9200cxr, tgui9400cxi, tgui9420, tgui9420dgi,
         tgui9430dgi, tgui9440agi, cyber9320, tgui9660, tgui9680,
tgui9682,
         tgui9685, cyber9382, cyber9385, cyber9388, cyber9397,
cyber9520,
         3dimage975, 3dimage985, clgd5420, clgd5422, clgd5424, clgd5426,

         clgd5428, clgd5429, clgd5430, clgd5434, clgd5436, clgd5446,
clgd5480,
         clgd5462, clgd5464, clgd5465, clgd6205, clgd6215, clgd6225,
clgd6235,
         clgd7541, clgd7542, clgd7543, clgd7548, clgd7555, ncr77c22,
ncr77c22e,
         cpq_avga, mga2064w, mga1064sg, mga2164w, mga2164w AGP, oti067,
oti077,
         oti087, oti037c, al2101, ali2228, ali2301, ali2302, ali2308,
ali2401,
         cl6410, cl6412, cl6420, cl6440, video7, ark1000vl, ark1000pv,
         ark2000pv, ark2000mt, mx, realtek, AP6422, AT24, AT3D,
s3_virge,
         s3_svga, ct65520, ct65525, ct65530, ct65535, ct65540, ct65545,
         ct65546, ct65548, ct65550, ct65554, ct65555, ct68554, ct64200,
         ct64300, generic
   Using pccons driver with X support
   XF86Config: /usr/X11R6/lib/X11/XF86Config.bwildasi
   (**) stands for supplied, (--) stands for probed/default values
   (**) XKB: rules: "xfree86"
   (**) XKB: model: "pc101"
   (**) Mouse: type: Microsoft, device: /dev/pms0, baudrate: 1200
   (**) Mouse: buttons: 3
   (**) SVGA: Graphics device ID: "Generic SVGA"
   (**) SVGA: Monitor ID: "Generic Monitor"
   (**) FontPath set to
"/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"

   (--) SVGA: PCI: ATI Mach64 GT rev 92, Memory @ 0xe2000000,
0xe1800000, I/O @ 0xd800
   Using XFree86 ATI driver version 4.3.
   ATI 3D Rage Pro graphics controller detected.
   Chip type 4742 "GB", version 4, foundry UMC, class 0, revision 0x01.
   AGP interface detected;  Block I/O base is 0xD800.
   ATI Mach64 video adapter detected.
   Internal RAMDAC (subtype 1) detected.
   Using 8MB linear aperture at 0xE2000000.
   8192 kB of SDRAM detected.
   Internal programmable clock generator detected.
   Reference clock 157.5/11 (14.318) MHz.
   (--) SVGA: chipset:  ati
   (--) SVGA: videoram: 8192k
   (**) SVGA: Using 8 bpp, Depth 8, Color weight: 666
   (--) SVGA: Maximum allowed dot-clock: 230.000 MHz
   (**) SVGA: Mode "640x480": mode clock =  25.175
   (**) SVGA: Virtual resolution set to 800x600
   (--) SVGA: SpeedUp code selection modified because virtualX != 1024

   Fatal server error:
   Cannot open mouse (Device not configured)


   When reporting a problem related to a server crash, please send
   the full server output, not just the last messages

   X connection to :0.0 broken (explicit kill or server shutdown).

   bwildasi#
   
   bwildasi# # by the user, since MAKEDEV didn't create these!^M
   bw
   Unmatched '.^M
   Un
   bwildasi# This is where^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H
^H^H ^H^H ^H^H  ^H^H ^H# This is where it
would really be nice if there^M
   #: Command not found.^M
   #:
   bwildasi# # were some /usr/doc/faq^H ^H^H ^H^H ^HFAQs or whatever to
help^M
   bw
   #: Command not found.^M
   #:
   bwildasi# # the newbie through. /etc/fd^H ^Hstab.examples is great^M
   bw
   #: Command not found.^M
   #:
   bwildasi# #for settig up^H ^H^H ^H^H ^H^H ^Hng up stuff like cdrom
players, so m
   aybe^M
   #for: Command not found.^M
   #f
   bwildasi# # a MAK^H ^H^H ^H^H ^H/dev/MAKDE^H ^H^H ^HEDEV.examples
would help mak
   e some^M
   #: Command not found.^M
   #:
   bwildasi# #device files for things such as sea^H ^Hrial mice.^M
   bw
   #device: Command not found.^M
   #d
   bwildasi# Since com wasn't r^H ^H\cre^H ^H^H ^H^H ^H^H ^Hcreated,
let's try the
   others:^M
   Since: Command not found.^M
   Si
   bwildasi# ls -l pm*^M
   bw
   crw-------  1 root  wheel  37, 0 Feb 17 16:24 pms0^M
   cr
   bwildasi# ^M
   bw
   bwildasi# ln -s /dev/pms0 /dev/mouse^M
   bw
   bwildasi# ls 0l^H ^H^H ^H-l pms* mou*^M
   bw
   lrwxr-xr-x  1 root  wheel      9 Feb 17 16:28 mouse -> /dev/pms0^M
   lr
   crw-------  1 root  wheel  37, 0 Feb 17 16:24 pms0^M
   cr
   bwildasi# ^M
   bw
   bwildasi# star
   bw
   q isn't a vi command
   bw
   bw
   :q!
   
   bwildasi# exitScript done on Wed Feb 17 16:29:10 1999



   # $XFree86: xc/programs/Xserver/hw/x-free86/XF86.conf.cpp,v3.29
1996/12/23 06:30:30 dawes Exp $
   [snip]
   #
**********************************************************************
   # Pointer section

   #
**********************************************************************
   Section "Pointer"
       Protocol    "Microsoft"
       #Device     "/dev/com1"
       Device      "/dev/pms0"
       #Device     "/dev/mouse"
   [snip]EndSection[snip]
   # The Mouse Subsection contains the same type of entries as the
   # standard Pointer Section (see above), with the addition of the
   # DeviceName entry.
   #
   #    SubSection "Mouse"
   #        Port "/dev/mouse2"
   #        DeviceName "Second Mouse"
   #        Protocol "Logitech"
   #    EndSubSection# EndSection
   # Brian's bogus additions here:
        SubSection "Mouse"
           #Port "/dev/mouse"
           Port "/dev/pms0"
           DeviceName "Serial Mouse"
           #Prototocol "MouseMan"
           Prototocol "BusMouse"
        EndSection[snip]

<end of bloat>