Date: Tue, 09 Jul 1996 17:40:01 -0700 From: Lawrence Pollack <larry@xlnt.com> To: questions@freebsd.org Cc: larry@xlnt.com Subject: PS/2 Mouse support Message-ID: <31E2FBE1.41C67EA6@xlnt.com>
next in thread | raw e-mail | index | archive | help
I am attempting to support a PS/2 mouse for use with XFree86. I have looked through the archives and found many similar questions, but no answers. I have an AST computer with a PS/2 mouse port on the motherboard. I have a Logitech PS/2 mouse. I have configured the kernel to support the psm device and installed the device in /dev. When the system boots, it recognizes the existance of psm0. Here are the boot messages: -- FreeBSD 2.1.0-RELEASE #3: Mon Jul 1 11:20:01 PDT 1996 larry@astbsd:/usr/src/sys/compile/ATAPI CPU: 60-MHz Pentium 510\\60 (Pentium-class CPU) Origin = "GenuineIntel" Id = 0x515 Stepping=5 Features=0x1bf<FPU,VME,PSE,MCE,CX8,APIC> real memory = 12582912 (12288K bytes) avail memory = 10743808 (10492K bytes) Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A sio2 not found at 0x3e8 sio3 not found at 0x2e8 lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface psm0 at 0x60-0x63 irq 12 on motherboard fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: NEC 72065B fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): <Maxtor 7540 AV> wd0: 514MB (1054368 sectors), 1046 cyls, 16 heads, 63 S/T, 512 B/S wdc0: unit 1 (atapi): <CD-ROM CDU55E/1.0u>, removable, accel, dma, iordy wdc1 not found at 0x170 bt0: disabled, not probed. uha0: disabled, not probed. aic0: disabled, not probed. nca0: disabled, not probed. nca1: disabled, not probed. sea0: disabled, not probed. wt0: disabled, not probed. scd0: disabled, not probed. 1 3C5x9 board(s) on ISA found at 0x300 ep0 at 0x300-0x30f irq 11 on isa ep0: aui/utp[*UTP*] address 00:20:af:24:c6:84 irq 11 npx0 on motherboard npx0: INT 16 interface Probing for devices on the PCI bus: pci0:0: VLSI, device=0x0005, class=bridge (host) [no driver assigned] pci0:1: VLSI, device=0x0006, class=bridge (isa) [no driver assigned] vga0 <VGA-compatible display device> rev 142 int a irq 10 on pci0:8 When I start XFree86, the following information is displayed: XFree86 Version 3.1.2 / X Window System (protocol Version 11, revision 0, vendor release 6001) Operating System: FreeBSD 2.0.5 Configured drivers: SVGA: server for 8-bit colour SVGA (Patchlevel 0): et4000, et4000w32, et4000w32i, et4000w32p, et3000, pvga1, wd90c00, wd90c10, wd90c30, wd90c24, wd90c31, wd90c33, gvga, vgawonder, tvga8800cs, tvga8900b, tvga8900c, tvga8900cl, tvga9000, clgd5420, clgd5422, clgd5424, clgd5426, clgd5428, clgd5429, clgd5430, clgd5434, clgd5436, clgd6205, clgd6215, clgd6225, clgd6235, ncr77c22, ncr77c22e, cpq_avga, oti067, oti077, oti087, mx, al2101, ali2228, ali2301, ali2302, ali2308, ali2401, cl6410, cl6412, cl6420, cl6440, video7, ct65520, ct65530, ct65540, ct65545, ark1000vl, ark1000pv, ark2000pv, realtek, generic Using syscons driver with X support (version 2.0) (using VT number 4) XF86Config: /etc/XF86Config (**) stands for supplied, (--) stands for probed/default values (**) Mouse: type: PS/2, device: /dev/psm0, baudrate: 1200, 3 button emulation (timeout: 50ms) (**) SVGA: Graphics device ID: "Cirrus Logic GD543x" (**) SVGA: Monitor ID: "Shamrock17" (--) SVGA: Mode "1280x1024" needs hsync freq of 64.25 kHz. Deleted. (--) SVGA: Mode "1280x1024" needs hsync freq of 78.86 kHz. Deleted. (--) SVGA: Mode "1280x1024" needs hsync freq of 81.13 kHz. Deleted. Warning: The directory "/usr/X11R6/lib/X11/fonts/Type1/" does not exist. Entry deleted from font path. Warning: The directory "/usr/X11R6/lib/X11/fonts/Speedo/" does not exist. Entry deleted from font path. Warning: The directory "/usr/X11R6/lib/X11/fonts/100dpi/" does not exist. Entry deleted from font path. (**) FontPath set to "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75 dpi/" (--) SVGA: chipset: clgd5434 (--) SVGA: videoram: 1024k (--) SVGA: clocks: 25.23 28.32 41.16 36.08 31.50 39.99 45.08 49.87 (--) SVGA: clocks: 64.98 72.16 75.00 80.01 85.23 90.00 (--) SVGA: Maximum allowed dot-clock: 91.112 MHz (**) SVGA: Mode "1024x768": mode clock = 75.000, clock used = 74.999 (**) SVGA: Mode "800x600": mode clock = 40.000, clock used = 39.991 (**) SVGA: Mode "640x480": mode clock = 31.500, clock used = 31.499 (**) SVGA: Virtual resolution set to 1152x900 (--) SVGA: SpeedUp code selection modified because virtualX != 1024 (--) SVGA: clgd5434: Internal memory clock register is 0x1c (Standard RAS) (**) SVGA: clgd5434: Approximate DRAM bandwidth for drawing: 25 of 100 MB/s (--) SVGA: clgd5434: 11776 bytes off-screen memory available (--) SVGA: clgd5434: Using hardware cursor (--) SVGA: clgd5434: Using accelerator functions (--) SVGA: clgd5434: Using BitBLT engine PEXExtensionInit: Couldn't open default PEX font file Roman_M[1] 176 [2] 177 [3] 178 The kernel is configured with the following entries: device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr # options PSM_NO_RESET #don't reset mouse hardware (some laptops) # options ALLOW_CONFLICT_IOADDR The XFConfig86 file has the following Pointer section: # ********************************************************************** # Pointer section # ********************************************************************** Section "Pointer" Protocol "PS/2" Device "/dev/psm0" # When using XQUEUE, comment out the above two lines, and uncomment # the following line. # Protocol "Xqueue" # Baudrate and SampleRate are only for some Logitech mice # BaudRate 9600 # SampleRate 150 # Emulate3Buttons is an option for 2-button Microsoft mice # Emulate3Timeout is the timeout in milliseconds (default is 50ms) Emulate3Buttons Emulate3Timeout 50 # ChordMiddle is an option for some 3-button Logitech mice # ChordMiddle EndSection After starting XFree86, the mouse does not respond. If I enable the PSM_NO_RESET and ALLOW_CONFLICT_IOADDR options in the kernel configuration file, then when I start XFree86, the keyboard works until I touch the mouse. After that, neither the keyboard nor the mouse respond at all. I would greatly appreciate any guidance on getting the PS/2 mouse to work. Please e-mail any responses or requests for additional information. Thanks. /======================================================================\ | Lawrence J. Pollack | | | XLNT Designs, Inc. | Voice : 619-487-9320 | | Internet: larry@xlnt.com | Fax : 619-487-9768 | | Web: http://www.xlnt.com | The usual disclaimers apply. | \======================================================================/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31E2FBE1.41C67EA6>